mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2025-12-10 23:12:09 +01:00
Added initial grunt build process
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1 +1,3 @@
|
|||||||
.idea/
|
.idea/
|
||||||
|
node_modules
|
||||||
|
build
|
||||||
|
|||||||
23
Gruntfile.js
Normal file
23
Gruntfile.js
Normal 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
22
package.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user