File tree Expand file tree Collapse file tree 1 file changed +5
-27
lines changed Expand file tree Collapse file tree 1 file changed +5
-27
lines changed Original file line number Diff line number Diff line change 1
- var rimraf = require ( "rimraf" ) ,
2
- config = require ( "./config" ) ;
1
+ var rimraf = require ( "rimraf" ) ;
3
2
4
3
module . exports = function ( grunt ) {
5
4
6
- "use strict" ;
7
-
8
- grunt . loadNpmTasks ( "grunt-wordpress" ) ;
9
- grunt . loadNpmTasks ( "grunt-jquery-content" ) ;
10
5
grunt . loadNpmTasks ( "grunt-check-modules" ) ;
6
+ grunt . loadNpmTasks ( "grunt-jquery-content" ) ;
7
+ grunt . loadNpmTasks ( "grunt-wordpress" ) ;
11
8
12
9
grunt . initConfig ( {
13
- jshint : {
14
- options : {
15
- undef : true ,
16
- node : true
17
- }
18
- } ,
19
- lint : {
20
- grunt : "grunt.js"
21
- } ,
22
- watch : {
23
- pages : {
24
- files : "page/**" ,
25
- tasks : "deploy"
26
- }
27
- } ,
28
10
"build-pages" : {
29
11
all : grunt . file . expandFiles ( "page/**" )
30
12
} ,
@@ -187,11 +169,7 @@ grunt.registerHelper( "build-pages-preprocess", (function() {
187
169
} ;
188
170
} ) ( ) ) ;
189
171
190
- grunt . registerTask ( "default" , "wordpress-deploy" ) ;
191
- grunt . registerTask ( "build-wordpress" , "check-modules clean lint build-pages build-resources" ) ;
192
- grunt . registerTask ( "deploy" , "wordpress-deploy" ) ;
172
+ grunt . registerTask ( "build" , "build-pages build-resources" ) ;
173
+ grunt . registerTask ( "build-wordpress" , "check-modules clean build" ) ;
193
174
194
175
} ;
195
-
196
-
197
-
You can’t perform that action at this time.
0 commit comments