-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathGruntfile.js
43 lines (37 loc) · 1.37 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
31
32
33
34
35
36
37
38
39
40
41
42
43
"use strict";
module.exports = function(grunt) {
// Project configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'), // DO NOT REMOVE
SERVE_DIR: 'dist/trunk', // The serve folder
SERVE_POST_TASKS: ['serveRenameReadme'], // This grunt tasks runs after the serve is complete
clean: {
/**
* DO NOT REMOVE. Task to clean the already copied node modules to the public library folder
*/
npmLibs: [
] // Your library folders, do not use 'public/lib' as source directly
},
copy: {
/**
* DO NOT REMOVE. Task to copy npm modules to the public library folder.
*/
npmLibs: {
expand: true,
cwd: 'node_modules',
src: [
], // Your library files
dest: 'public/lib/'
}
}
});
// Load WP ReactJS Starter tasks (DO NOTE REMOVE this and initConfig should be called until here already)
require('./build/grunt.js')(grunt);
// Load npm tasks
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-clean');
// Register default task
grunt.registerTask('default', function() {
grunt.log.write("Your default task...");
});
};