2013-10-23 12:15:56 +00:00
|
|
|
module.exports = function (grunt) {
|
2014-04-01 02:02:36 +00:00
|
|
|
|
2014-03-23 04:39:43 +00:00
|
|
|
var loadConfig = require('load-grunt-config');
|
2013-10-23 12:15:56 +00:00
|
|
|
|
2014-03-23 04:39:43 +00:00
|
|
|
loadConfig(grunt, {
|
|
|
|
configPath: __dirname + '/tasks/options',
|
|
|
|
config: {
|
|
|
|
release_dir: 'build',
|
2014-04-01 02:02:36 +00:00
|
|
|
compile_dir: 'dist',
|
|
|
|
banner: require('fs').readFileSync(__dirname + '/tasks/banner.txt', 'utf8')
|
2014-03-23 06:23:45 +00:00
|
|
|
}
|
2014-02-28 09:30:53 +00:00
|
|
|
});
|
|
|
|
|
2014-03-23 04:39:43 +00:00
|
|
|
grunt.loadTasks('tasks');
|
|
|
|
|
2014-03-17 16:10:04 +00:00
|
|
|
grunt.registerTask('default', ['build']);
|
2014-03-23 06:23:45 +00:00
|
|
|
|
|
|
|
grunt.registerTask('build', ['clean', 'jshint', 'concat', 'uglify']);
|
2014-04-01 02:02:36 +00:00
|
|
|
|
2014-03-23 06:23:45 +00:00
|
|
|
grunt.registerTask('dist', ['build', 'copy']);
|
2013-10-23 12:15:56 +00:00
|
|
|
|
|
|
|
};
|