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 1
1
{
2
2
"esversion" :6 ,
3
+ "node" : true ,
3
4
"undef" : true ,
4
5
"unused" : true ,
5
6
"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
+
1
9
module . exports = function ( grunt ) {
2
10
//Initializing the configuration object
3
11
grunt . initConfig ( {
@@ -13,10 +21,13 @@ module.exports = function(grunt) {
13
21
compress : {
14
22
main : {
15
23
options : {
16
- archive : "dist/version.zip"
24
+ archive : "dist/" + package_json . version + " .zip"
17
25
} ,
18
26
files : [ {
19
- src : [ "**/*" ] , //TODO just include needed files
27
+ src : [
28
+ "openNote.appcache" ,
29
+ "index.html" ,
30
+ ] . concat ( bundleFiles ) ,
20
31
expand : true
21
32
} ]
22
33
}
@@ -107,11 +118,7 @@ module.exports = function(grunt) {
107
118
hash : true ,
108
119
master : [ "index.html" ]
109
120
} ,
110
- src : [
111
- "openNote.bundle.*" ,
112
- "webpack_files/**/*.*" ,
113
- "openNote/**/*.html" ,
114
- ] ,
121
+ src : bundleFiles ,
115
122
dest : "openNote.appcache"
116
123
}
117
124
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " OpenNote" ,
3
- "version" : " 17.02.01 " ,
3
+ "version" : " 18.03.00-Alpha " ,
4
4
"description" : " " ,
5
5
"main" : " Gruntfile.js" ,
6
6
"author" : " Jacob Liscom" ,
You can’t perform that action at this time.
0 commit comments