Skip to content

Commit a8b273c

Browse files
committed
Add zip functionality to gruntfile
1 parent d30a925 commit a8b273c

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
TODO
2-
*.sh
32
*.zip
43
node_modules
54
build

Gruntfile.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,22 @@ module.exports = function(grunt) {
4545
}
4646
]
4747
}
48+
},
49+
compress: {
50+
main: {
51+
options: {
52+
archive: 'regex-search.zip',
53+
mode: 'zip'
54+
},
55+
files: [
56+
{ src: 'build/**' }
57+
]
58+
}
4859
}
4960
});
5061

5162
grunt.loadNpmTasks("grunt-ts");
5263
grunt.loadNpmTasks("grunt-contrib-copy");
64+
grunt.loadNpmTasks('grunt-contrib-compress');
5365
grunt.registerTask("default", ["ts", "copy"]);
5466
};

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"devDependencies": {
55
"grunt": "~0.4.2",
66
"grunt-contrib-copy": "~0.5.0",
7-
"grunt-ts": "~1.5.1"
7+
"grunt-ts": "~1.5.1",
8+
"grunt-contrib-compress": "^0.8.0"
89
}
910
}

0 commit comments

Comments
 (0)