chore(Gruntfile.js): change and organize grunt tasks

- build task now tests before building
 - removed build with closure task
 - test now runs lint before testing
 - Default grunt task is now build.
This commit is contained in:
Estevão Soares dos Santos 2015-05-27 15:50:14 +01:00
parent 0ae633105f
commit 47e26799f0

View File

@ -86,15 +86,12 @@ module.exports = function (grunt) {
// test // test
grunt.registerTask('lint', ['jshint']); grunt.registerTask('lint', ['jshint']);
grunt.registerTask('test', ['simplemocha']); grunt.registerTask('test', ['concat', 'lint', 'simplemocha']);
// build with uglify // build with uglify
grunt.registerTask('build', ['concat', 'uglify']); grunt.registerTask('build', ['test', 'concat', 'uglify']);
// Build with closure compiler
grunt.registerTask('build-with-closure', ['test', 'concat', 'closure-compiler']);
// Default task(s). // Default task(s).
grunt.registerTask('default', []); grunt.registerTask('default', ['build']);
}; };