Created
February 18, 2015 23:08
-
-
Save zxqx/27e5aab530c7ec0fcf10 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
// Configs | |
grunt.config('debugPath' , './dist/debug/'); | |
grunt.config('releasePath' , './dist/release/'); | |
grunt.config('jsOutput' , 'main.js'); | |
grunt.config('jsVendorOutput', 'vendor.js'); | |
grunt.config('cssOutput' , 'style.css'); | |
// Build debug by default | |
grunt.registerTask('default', 'build'); | |
// Debug | |
grunt.registerTask('build', function() { | |
if (!!~this.args.indexOf('debug')) { | |
grunt.config('debug', true); | |
} | |
require('./tasks/getConfig.js')(grunt); | |
require('./tasks/clean.js')(grunt); | |
require('./tasks/replace.js')(grunt); | |
require('./tasks/browserify.js')(grunt); | |
require('./tasks/copy.js')(grunt); | |
require('./tasks/less.js')(grunt); | |
require('./tasks/jshint.js')(grunt); | |
grunt.task.run('cs-get-config'); | |
grunt.task.run('cs-clean'); | |
grunt.task.run('cs-replace'); | |
grunt.task.run('cs-browserify'); | |
grunt.task.run('cs-copy'); | |
grunt.task.run('cs-less'); | |
grunt.task.run('cs-jshint'); | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment