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

2
.gitignore vendored
View File

@@ -1 +1,3 @@
.idea/ .idea/
node_modules
build

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']);
};

22
package.json Normal file
View File

@@ -0,0 +1,22 @@
{
"name": "BitwiseCmd",
"version": "1.0.0",
"description": "Bitwise Operations Console",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/BorysLevytskyi/BitwiseCmd.git"
},
"author": "Borys Levytskyi",
"license": "MIT",
"bugs": {
"url": "https://github.com/BorysLevytskyi/BitwiseCmd/issues"
},
"homepage": "https://github.com/BorysLevytskyi/BitwiseCmd",
"devDependencies": {
"grunt-contrib-uglify": "^0.9.1"
}
}