Skip to content

Commit 54a3dc6

Browse files
committed
AutoZip
1 parent 96c7001 commit 54a3dc6

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

Gruntfile.js

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ module.exports = function(grunt) {
44
compress: {
55
main: {
66
options: {
7-
archive: "version.zip"
7+
archive: "build/version.zip"
88
},
9-
src: ["OpenNote/**/*"]
9+
files: [{
10+
src: ["**/*"],
11+
cwd:"OpenNote/",
12+
expand: true
13+
}]
1014
}
1115
},
1216
jshint: {
@@ -105,15 +109,7 @@ module.exports = function(grunt) {
105109
"cd OpenNote",
106110
"rm -rf bower_components",
107111
"cd openNote/style/invert/",
108-
"rm -rf dark",
109-
"rm -rf light"].join("&&")
110-
},
111-
phpPackage:{
112-
command: [ "mkdir build",
113-
"cd build",
114-
"cp -r ../OpenNote/* ./",
115-
"cp -r ../../OpenNoteService-PHP/Service ./",
116-
"cp -r ../../OpenNoteService-PHP/vendor ./"].join("&&")
112+
"rm -rf dark light"].join("&&")
117113
}
118114
},
119115
//HTML 5
@@ -157,7 +153,7 @@ module.exports = function(grunt) {
157153
// you can run individual command using the plug-in command syntax suck as manifest:generate or shell:clean
158154
grunt.registerTask("build", ["shell:bowerInstall", "buildDevCSS", "manifest:generate"]);
159155
grunt.registerTask("default", ["build"]);
160-
grunt.registerTask("deploy", ["shell:clean", "shell:bowerInstall", "buildProdCSS", "manifest:generate"]);
156+
grunt.registerTask("deploy", ["shell:clean", "shell:bowerInstall", "buildProdCSS", "manifest:generate","compress"]);
161157

162158
//testing
163159
grunt.registerTask("devmode", ["karma:unit", "watch"]);

0 commit comments

Comments
 (0)