Skip to content

Commit 4646ca1

Browse files
committed
Use "grunt-zip" instead of "grunt-contrib-compress"
1 parent 1189728 commit 4646ca1

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

Gruntfile.js

+12-14
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,17 @@ module.exports = function (grunt) {
4545
config: ".jscs.json"
4646
}
4747
},
48-
compress: {
48+
zip: {
4949
main: {
50-
options: {
51-
archive: "brackets-git.zip"
52-
},
53-
files: [
54-
{ src: ["nls/**"], dest: "/" },
55-
{ src: ["shell/**"], dest: "/" },
56-
{ src: ["src/**"], dest: "/" },
57-
{ src: ["styles/**"], dest: "/" },
58-
{ src: ["templates/**"], dest: "/" },
59-
{ src: ["thirdparty/**"], dest: "/" },
60-
{ src: ["LICENSE", "*.js", "*.json", "*.md"], dest: "/", filter: "isFile" }
50+
dest: "brackets-git.zip",
51+
src: [
52+
"nls/**",
53+
"shell/**",
54+
"src/**",
55+
"styles/**",
56+
"templates/**",
57+
"thirdparty/**",
58+
"LICENSE", "*.js", "*.json", "*.md"
6159
]
6260
}
6361
},
@@ -88,10 +86,10 @@ module.exports = function (grunt) {
8886
grunt.loadNpmTasks("grunt-contrib-jshint");
8987
grunt.loadNpmTasks("grunt-lesslint");
9088
grunt.loadNpmTasks("grunt-jscs");
91-
grunt.loadNpmTasks("grunt-contrib-compress");
89+
grunt.loadNpmTasks("grunt-zip");
9290
grunt.loadNpmTasks("grunt-lineending");
9391

94-
grunt.registerTask("package", ["lineending", "compress"]);
92+
grunt.registerTask("package", ["lineending", "zip"]);
9593
grunt.registerTask("jslint-test", ["jslint"]);
9694
grunt.registerTask("jshint-test", ["jshint"]);
9795
grunt.registerTask("less-test", ["lesslint"]);

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"grunt-jslint": "latest",
3838
"grunt-lesslint": "latest",
3939
"grunt-jscs": "latest",
40-
"grunt-contrib-compress": "latest",
40+
"grunt-zip": "latest",
4141
"grunt-lineending": "latest"
4242
},
4343

0 commit comments

Comments
 (0)