mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Add autoprefixer to Grunt tasks.
This commit is contained in:
parent
3413687833
commit
e0f3593bff
2 changed files with 17 additions and 6 deletions
|
@ -1,5 +1,6 @@
|
||||||
fs = require "fs"
|
fs = require "fs"
|
||||||
PackageVersions = require "./app/coffee/infrastructure/PackageVersions"
|
PackageVersions = require "./app/coffee/infrastructure/PackageVersions"
|
||||||
|
require('es6-promise').polyfill()
|
||||||
|
|
||||||
module.exports = (grunt) ->
|
module.exports = (grunt) ->
|
||||||
grunt.loadNpmTasks 'grunt-contrib-coffee'
|
grunt.loadNpmTasks 'grunt-contrib-coffee'
|
||||||
|
@ -18,6 +19,7 @@ module.exports = (grunt) ->
|
||||||
grunt.loadNpmTasks 'grunt-contrib-watch'
|
grunt.loadNpmTasks 'grunt-contrib-watch'
|
||||||
grunt.loadNpmTasks 'grunt-parallel'
|
grunt.loadNpmTasks 'grunt-parallel'
|
||||||
grunt.loadNpmTasks 'grunt-exec'
|
grunt.loadNpmTasks 'grunt-exec'
|
||||||
|
grunt.loadNpmTasks 'grunt-postcss'
|
||||||
# grunt.loadNpmTasks 'grunt-contrib-imagemin'
|
# grunt.loadNpmTasks 'grunt-contrib-imagemin'
|
||||||
# grunt.loadNpmTasks 'grunt-sprity'
|
# grunt.loadNpmTasks 'grunt-sprity'
|
||||||
|
|
||||||
|
@ -136,8 +138,14 @@ module.exports = (grunt) ->
|
||||||
files:
|
files:
|
||||||
"public/stylesheets/style.css": "public/stylesheets/style.less"
|
"public/stylesheets/style.css": "public/stylesheets/style.less"
|
||||||
|
|
||||||
|
postcss:
|
||||||
|
options:
|
||||||
|
map: true,
|
||||||
|
processors: [
|
||||||
|
require('autoprefixer')({browsers: [ 'last 2 versions', 'ie >= 10' ]})
|
||||||
|
]
|
||||||
|
dist:
|
||||||
|
src: 'public/stylesheets/style.css'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
run:
|
run:
|
||||||
|
@ -366,7 +374,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: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: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']
|
grunt.registerTask 'compile:css', 'Compile the less files to css', ['less', 'postcss:dist']
|
||||||
grunt.registerTask 'compile:minify', 'Concat and minify the client side js', ['requirejs', "file_append", "exec:cssmin",]
|
grunt.registerTask 'compile:minify', 'Concat and minify the client side js', ['requirejs', "file_append", "exec:cssmin",]
|
||||||
grunt.registerTask 'compile:unit_tests', 'Compile the unit tests', ['clean:unit_tests', 'coffee:unit_tests']
|
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:acceptance_tests', 'Compile the acceptance tests', ['clean:acceptance_tests', 'coffee:acceptance_tests']
|
||||||
|
|
|
@ -67,10 +67,12 @@
|
||||||
"passport-saml": "^0.15.0"
|
"passport-saml": "^0.15.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"autoprefixer": "^6.6.1",
|
||||||
"bunyan": "0.22.1",
|
"bunyan": "0.22.1",
|
||||||
"translations-sharelatex": "git+https://github.com/sharelatex/translations-sharelatex.git#master",
|
|
||||||
"chai": "",
|
"chai": "",
|
||||||
"chai-spies": "",
|
"chai-spies": "",
|
||||||
|
"clean-css": "^3.4.18",
|
||||||
|
"es6-promise": "^4.0.5",
|
||||||
"grunt-available-tasks": "0.4.1",
|
"grunt-available-tasks": "0.4.1",
|
||||||
"grunt-bunyan": "0.5.0",
|
"grunt-bunyan": "0.5.0",
|
||||||
"grunt-contrib-clean": "0.5.0",
|
"grunt-contrib-clean": "0.5.0",
|
||||||
|
@ -79,7 +81,6 @@
|
||||||
"grunt-contrib-requirejs": "0.4.1",
|
"grunt-contrib-requirejs": "0.4.1",
|
||||||
"grunt-contrib-watch": "^1.0.0",
|
"grunt-contrib-watch": "^1.0.0",
|
||||||
"grunt-env": "0.4.4",
|
"grunt-env": "0.4.4",
|
||||||
"clean-css": "^3.4.18",
|
|
||||||
"grunt-exec": "^0.4.7",
|
"grunt-exec": "^0.4.7",
|
||||||
"grunt-execute": "^0.2.2",
|
"grunt-execute": "^0.2.2",
|
||||||
"grunt-file-append": "0.0.6",
|
"grunt-file-append": "0.0.6",
|
||||||
|
@ -87,9 +88,11 @@
|
||||||
"grunt-mocha-test": "0.9.0",
|
"grunt-mocha-test": "0.9.0",
|
||||||
"grunt-newer": "^1.2.0",
|
"grunt-newer": "^1.2.0",
|
||||||
"grunt-parallel": "^0.5.1",
|
"grunt-parallel": "^0.5.1",
|
||||||
|
"grunt-postcss": "^0.8.0",
|
||||||
"grunt-sed": "^0.1.1",
|
"grunt-sed": "^0.1.1",
|
||||||
"sandboxed-module": "0.2.0",
|
"sandboxed-module": "0.2.0",
|
||||||
"sinon": "",
|
"sinon": "",
|
||||||
"timekeeper": ""
|
"timekeeper": "",
|
||||||
|
"translations-sharelatex": "git+https://github.com/sharelatex/translations-sharelatex.git#master"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue