diff --git a/.gitignore b/.gitignore index 9f11b75..45cb6b8 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ .idea/ +node_modules +build diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..43d2928 --- /dev/null +++ b/Gruntfile.js @@ -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']); + +}; \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..90972a4 --- /dev/null +++ b/package.json @@ -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" + } +}