-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathgruntfile.js
30 lines (26 loc) · 1.16 KB
/
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
29
30
module.exports = function (grunt) {
grunt.initConfig({
compress: {
main: {
options: {
archive: 'simple-comment-editing.zip'
},
files: [
{src: ['simple-comment-editing.php'], dest: '/', filter: 'isFile'}, // includes files in path
{src: ['index.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: ['images/**'], dest: '/'}, // includes files in path and its subdirs
{src: ['includes/**'], dest: '/'}, // includes files in path and its subdirs
{src: ['includes/**'], dest: '/'}, // includes files in path and its subdirs
{src: ['js/**'], dest: '/'}, // includes files in path and its subdirs
{src: ['dist/**'], dest: '/'}, // includes files in path and its subdirs
{src: ['fancybox/**'], dest: '/'}, // includes files in path and its subdirs
{src: ['lib/**'], dest: '/'}, // includes files in path and its subdirs
]
}
}
});
grunt.registerTask('default', ["compress"]);
grunt.loadNpmTasks( 'grunt-contrib-compress' );
};