Added initial grunt build process

This commit is contained in:
BorisLevitskiy
2015-04-09 16:02:42 +03:00
parent ddc8e5b8b5
commit 253d90047c
3 changed files with 47 additions and 0 deletions

23
Gruntfile.js Normal file
View File

@@ -0,0 +1,23 @@
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
build: {
src: 'src/**/*.js',
dest: 'build/bitwisecmd.min.js'
}
}
});
// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-contrib-uglify');
// Default task(s).
grunt.registerTask('default', ['uglify']);
};