File tree Expand file tree Collapse file tree 3 files changed +16
-8
lines changed
Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 11{
22 "esversion" :6 ,
3+ "node" : true ,
34 "undef" : true ,
45 "unused" : true ,
56 "mocha" : true ,
Original file line number Diff line number Diff line change 1+ var package_json = require ( __dirname + "/package.json" ) ;
2+ var bundleFiles = [
3+ "openNote.bundle.*" ,
4+ "webpack_files/**/*.*" ,
5+ "openNote/**/*.html"
6+ ] ;
7+
8+
19module . exports = function ( grunt ) {
210 //Initializing the configuration object
311 grunt . initConfig ( {
@@ -13,10 +21,13 @@ module.exports = function(grunt) {
1321 compress : {
1422 main : {
1523 options : {
16- archive : "dist/version.zip"
24+ archive : "dist/" + package_json . version + " .zip"
1725 } ,
1826 files : [ {
19- src : [ "**/*" ] , //TODO just include needed files
27+ src : [
28+ "openNote.appcache" ,
29+ "index.html" ,
30+ ] . concat ( bundleFiles ) ,
2031 expand : true
2132 } ]
2233 }
@@ -107,11 +118,7 @@ module.exports = function(grunt) {
107118 hash : true ,
108119 master : [ "index.html" ]
109120 } ,
110- src : [
111- "openNote.bundle.*" ,
112- "webpack_files/**/*.*" ,
113- "openNote/**/*.html" ,
114- ] ,
121+ src : bundleFiles ,
115122 dest : "openNote.appcache"
116123 }
117124 }
Original file line number Diff line number Diff line change 11{
22 "name" : " OpenNote" ,
3- "version" : " 17.02.01 " ,
3+ "version" : " 18.03.00-Alpha " ,
44 "description" : " " ,
55 "main" : " Gruntfile.js" ,
66 "author" : " Jacob Liscom" ,
You can’t perform that action at this time.
0 commit comments