|
|
@@ -35,6 +35,8 @@ module.exports = (grunt) ->
|
|
|
command:"node_modules/clean-css/bin/cleancss --s0 --source-map -o public/stylesheets/style.css public/stylesheets/style.css"
|
|
|
cssmin_ol:
|
|
|
command:"node_modules/clean-css/bin/cleancss --s0 --source-map -o public/stylesheets/ol-style.css public/stylesheets/ol-style.css"
|
|
|
+ cssmin_ol_light:
|
|
|
+ command:"node_modules/clean-css/bin/cleancss --s0 --source-map -o public/stylesheets/ol-light-style.css public/stylesheets/ol-light-style.css"
|
|
|
|
|
|
forever:
|
|
|
app:
|
|
|
@@ -168,6 +170,17 @@ module.exports = (grunt) ->
|
|
|
files:
|
|
|
"public/stylesheets/ol-style.css": "public/stylesheets/ol-style.less"
|
|
|
|
|
|
+ 'ol-light':
|
|
|
+ options:
|
|
|
+ sourceMap: true
|
|
|
+ sourceMapFilename: "public/stylesheets/ol-light-style.css.map"
|
|
|
+ sourceMapBasepath: "public/stylesheets"
|
|
|
+ globalVars:
|
|
|
+ 'is-overleaf': true
|
|
|
+ 'show-rich-text': Settings.showRichText
|
|
|
+ files:
|
|
|
+ "public/stylesheets/ol-light-style.css": "public/stylesheets/ol-light-style.less"
|
|
|
+
|
|
|
postcss:
|
|
|
options:
|
|
|
map:
|
|
|
@@ -178,7 +191,7 @@ module.exports = (grunt) ->
|
|
|
require('autoprefixer')({browsers: [ 'last 2 versions', 'ie >= 10' ]})
|
|
|
]
|
|
|
dist:
|
|
|
- src: [ "public/stylesheets/style.css", "public/stylesheets/ol-style.css" ]
|
|
|
+ src: [ "public/stylesheets/style.css", "public/stylesheets/ol-style.css", "public/stylesheets/ol-light-style.css" ]
|
|
|
|
|
|
env:
|
|
|
run:
|
|
|
@@ -413,7 +426,7 @@ module.exports = (grunt) ->
|
|
|
grunt.registerTask 'compile:server', 'Compile the server side coffee script', ['clean:app', 'coffee:app', 'coffee:app_dir', 'compile:modules:server']
|
|
|
grunt.registerTask 'compile:client', 'Compile the client side coffee script', ['coffee:client', 'coffee:sharejs', 'wrap_sharejs', "compile:modules:client", 'compile:modules:inject_clientside_includes']
|
|
|
grunt.registerTask 'compile:css', 'Compile the less files to css', ['less', 'postcss:dist']
|
|
|
- grunt.registerTask 'compile:minify', 'Concat and minify the client side js and css', ['requirejs', "file_append", "exec:cssmin_sl", "exec:cssmin_ol"]
|
|
|
+ grunt.registerTask 'compile:minify', 'Concat and minify the client side js and css', ['requirejs', "file_append", "exec:cssmin_sl", "exec:cssmin_ol", "exec:cssmin_ol_light"]
|
|
|
grunt.registerTask 'compile:unit_tests', 'Compile the unit tests', ['clean:unit_tests', 'coffee:unit_tests']
|
|
|
grunt.registerTask 'compile:acceptance_tests', 'Compile the acceptance tests', ['clean:acceptance_tests', 'coffee:acceptance_tests']
|
|
|
grunt.registerTask 'compile:smoke_tests', 'Compile the smoke tests', ['coffee:smoke_tests']
|