-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathgruntfile.js
More file actions
26 lines (25 loc) · 1.13 KB
/
Copy pathgruntfile.js
File metadata and controls
26 lines (25 loc) · 1.13 KB
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
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: [ 'lib/**' ], dest: '/' }, // includes files in path and its subdirs
],
},
},
} );
grunt.registerTask( 'default', [ 'compress' ] );
grunt.loadNpmTasks( 'grunt-contrib-compress' );
};