unzip: 'grunt-zip'
replace: 'grunt-text-replace'
});
- require('time-grunt')(grunt);
expressPort = '<%= grunt.option("port") || 3000 %>'
'requirejs:markdown'
]
casper:
- options:
- grunt: true
+ options: grunt: true
tasks: [
'casper:apiDocumentation'
'casper:application'
'casper:ui'
'casper:workspace'
]
- 'build-test':
- options:
- grunt: true
- tasks: ['build-suffix', 'test-suffix']
- 'build-coverage':
- options:
- grunt: true
- tasks: ['build-suffix', 'coverage-suffix']
handlebars:
pieces = name.split '/'
fileName = pieces[pieces.length - 1]
fileName.split('.')[0]
-
build:
files:
'<%= BUILD_PATH %>/js/components/navigator/templates.js': [
concise: true
'no-colors': true
port: expressPort
- test:
- src: ['src/test/js/**/*.js']
- testCoverage:
- options:
- 'fail-fast': false
- src: ['src/test/js/**/*.js']
testCoverageLight:
options:
verbose: true
less:
files: '<%= SOURCE_PATH %>/less/**/*.less'
- tasks: ['less:build']
+ tasks: ['less:build', 'copy:assets-css']
coffee:
files: '<%= SOURCE_PATH %>/coffee/**/*.coffee'
- tasks: ['coffee:build', 'copy:js', 'concat:build']
+ tasks: ['coffee:build', 'copy:js', 'concat:build', 'copy:assets-all-js']
js:
files: '<%= SOURCE_PATH %>/js/**/*.js'
- tasks: ['copy:js', 'concat:build']
+ tasks: ['copy:js', 'concat:build', 'copy:assets-all-js']
handlebars:
files: '<%= SOURCE_PATH %>/hbs/**/*.hbs'
- tasks: ['handlebars:build']
+ tasks: ['handlebars:build', 'copy:assets-all-js']
# Basic tasks
['express:test', 'parallel:casper']
grunt.registerTask 'coverage-suffix',
- ['express:testCoverage', 'curl:resetCoverage', 'casper:testCoverage', 'curl:downloadCoverage', 'unzip',
+ ['express:testCoverage', 'curl:resetCoverage', 'parallel:casper', 'curl:downloadCoverage', 'unzip',
'replace:lcov']
# Output tasks
['prepare', 'build-suffix']
grunt.registerTask 'build-test',
- ['prepare', 'parallel:build-test']
+ ['prepare', 'build-suffix', 'test-suffix']
grunt.registerTask 'build-coverage',
- ['prepare', 'parallel:build-coverage']
+ ['prepare', 'build-suffix', 'coverage-suffix']
grunt.registerTask 'test',
['prepare', 'test-suffix']
"grunt-express-server": "0.4.17",
"grunt-parallel": "0.4.1",
"grunt-text-replace": "0.4.0",
- "grunt-uglify-parallel": "0.0.1",
"grunt-zip": "0.16.2",
"istanbul": "0.3.5",
"istanbul-middleware": "0.2.0",
"jade": "1.4.2",
"jit-grunt": "0.9.1",
- "serve-static": "1.5.0",
- "time-grunt": "1.2.0"
+ "serve-static": "1.5.0"
},
"scripts": {
"build-fast": "./node_modules/.bin/grunt build-fast",