Skip to content

Commit

Permalink
Deploy command
Browse files Browse the repository at this point in the history
  • Loading branch information
FoxUSA committed Dec 9, 2017
1 parent 17f154b commit c598901
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
1 change: 1 addition & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"esversion":6,
"node": true,
"undef": true,
"unused": true,
"mocha": true,
Expand Down
21 changes: 14 additions & 7 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -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({
Expand All @@ -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
}]
}
Expand Down Expand Up @@ -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"
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "OpenNote",
"version": "17.02.01",
"version": "18.03.00-Alpha",
"description": "",
"main": "Gruntfile.js",
"author": "Jacob Liscom",
Expand Down

0 comments on commit c598901

Please sign in to comment.