mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Standardize grunt file
This commit is contained in:
parent
3199aad601
commit
fb02e40423
1 changed files with 9 additions and 5 deletions
|
@ -45,10 +45,12 @@ module.exports = (grunt) ->
|
||||||
logConcurrentOutput: true
|
logConcurrentOutput: true
|
||||||
|
|
||||||
mochaTest:
|
mochaTest:
|
||||||
test:
|
unit:
|
||||||
|
src: ["test/unit/js/#{grunt.option('feature') or '**'}/*.js"]
|
||||||
options:
|
options:
|
||||||
reporter: process.env.MOCHA_RUNNER || "spec"
|
reporter: grunt.option('reporter') or 'spec'
|
||||||
src: ['test/*.js', 'test/**/*.js']
|
grep: grunt.option("grep")
|
||||||
|
|
||||||
|
|
||||||
grunt.loadNpmTasks 'grunt-contrib-coffee'
|
grunt.loadNpmTasks 'grunt-contrib-coffee'
|
||||||
grunt.loadNpmTasks 'grunt-contrib-watch'
|
grunt.loadNpmTasks 'grunt-contrib-watch'
|
||||||
|
@ -57,8 +59,10 @@ module.exports = (grunt) ->
|
||||||
grunt.loadNpmTasks 'grunt-concurrent'
|
grunt.loadNpmTasks 'grunt-concurrent'
|
||||||
grunt.loadNpmTasks 'grunt-mocha-test'
|
grunt.loadNpmTasks 'grunt-mocha-test'
|
||||||
|
|
||||||
grunt.registerTask "ci", ["coffee", "mochaTest"]
|
grunt.registerTask "test:unit", ["coffee", "mochaTest:unit"]
|
||||||
|
grunt.registerTask "ci", "test:unit"
|
||||||
grunt.registerTask 'default', ['coffee', 'concurrent']
|
grunt.registerTask 'default', ['coffee', 'concurrent']
|
||||||
|
|
||||||
grunt.registerTask "install", "coffee"
|
grunt.registerTask "compile", "coffee"
|
||||||
|
grunt.registerTask "install", "compile"
|
||||||
|
|
Loading…
Reference in a new issue