mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
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:
parent
0ae633105f
commit
47e26799f0
|
@ -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']);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user