Skip to content

Commit c598901

Browse files
committed
Deploy command
1 parent 17f154b commit c598901

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

.jshintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"esversion":6,
3+
"node": true,
34
"undef": true,
45
"unused": true,
56
"mocha": true,

Gruntfile.js

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
var package_json = require(__dirname+"/package.json");
2+
var bundleFiles=[
3+
"openNote.bundle.*",
4+
"webpack_files/**/*.*",
5+
"openNote/**/*.html"
6+
];
7+
8+
19
module.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
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

0 commit comments

Comments
 (0)