-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathGruntfile.js
28 lines (24 loc) · 1013 Bytes
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
module.exports = function (grunt) {
grunt.initConfig({
compress: {
main: {
options: {
archive: 'highlight-and-share.zip'
},
files: [
{src: ['highlight-and-share.php'], dest: '/', filter: 'isFile'}, // includes files in path
{src: ['readme.txt'], dest: '/', filter: 'isFile'}, // includes files in path
{src: ['uninstall.php'], dest: '/', filter: 'isFile'}, // includes files in path
{src: ['build/**'], dest: '/'}, // includes files in path and its subdirs
{src: ['dist/**'], dest: '/'}, // includes files in path and its subdirs
{src: ['img/**'], dest: '/'}, // includes files in path and its subdirs
{src: ['js/**'], dest: '/'}, // includes files in path and its subdirs
{src: ['lib/**'], dest: '/'}, // includes files in path and its subdirs
{src: ['php/**'], dest: '/'}, // includes files in path and its subdirs
]
}
}
});
grunt.registerTask('default', ["compress"]);
grunt.loadNpmTasks( 'grunt-contrib-compress' );
};