diff --git a/.jshintrc b/.jshintrc index a04066a..684ba52 100644 --- a/.jshintrc +++ b/.jshintrc @@ -1,5 +1,6 @@ { "esversion":6, + "node": true, "undef": true, "unused": true, "mocha": true, diff --git a/Gruntfile.js b/Gruntfile.js index 592fedc..b585d46 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,3 +1,11 @@ +var package_json = require(__dirname+"/package.json"); +var bundleFiles=[ + "openNote.bundle.*", + "webpack_files/**/*.*", + "openNote/**/*.html" +]; + + module.exports = function(grunt) { //Initializing the configuration object grunt.initConfig({ @@ -13,10 +21,13 @@ module.exports = function(grunt) { compress: { main: { options: { - archive: "dist/version.zip" + archive: "dist/"+package_json.version+".zip" }, files: [{ - src: ["**/*"], //TODO just include needed files + src: [ + "openNote.appcache", + "index.html", + ].concat(bundleFiles), expand: true }] } @@ -107,11 +118,7 @@ module.exports = function(grunt) { hash: true, master: ["index.html"] }, - src: [ - "openNote.bundle.*", - "webpack_files/**/*.*", - "openNote/**/*.html", - ], + src: bundleFiles, dest: "openNote.appcache" } } diff --git a/package.json b/package.json index f4d4674..4dcef36 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "OpenNote", - "version": "17.02.01", + "version": "18.03.00-Alpha", "description": "", "main": "Gruntfile.js", "author": "Jacob Liscom",