File tree Expand file tree Collapse file tree 2 files changed +5
-19
lines changed
Expand file tree Collapse file tree 2 files changed +5
-19
lines changed Original file line number Diff line number Diff line change 1- var rimraf = require ( "rimraf" ) ;
2-
31module . exports = function ( grunt ) {
42
5- grunt . loadNpmTasks ( "grunt-check-modules" ) ;
63grunt . loadNpmTasks ( "grunt-jquery-content" ) ;
74
85grunt . initConfig ( {
@@ -15,8 +12,8 @@ grunt.initConfig({
1512 "notes.xsl"
1613 ]
1714 } ,
18- "build-pages " : {
19- all : "pages/**"
15+ "build-posts " : {
16+ page : "pages/**"
2017 } ,
2118 "build-xml-entries" : {
2219 all : "entries/**"
@@ -31,23 +28,14 @@ grunt.initConfig({
3128 } ) ( )
3229} ) ;
3330
34- grunt . registerTask ( "clean" , function ( ) {
35- rimraf . sync ( "dist" ) ;
36- } ) ;
31+ grunt . registerTask ( "lint" , [ "xmllint" ] ) ;
3732
3833grunt . registerTask ( "build" , [
39- "build-pages " ,
34+ "build-posts " ,
4035 "build-resources" ,
4136 "build-xml-entries" ,
4237 "build-xml-categories" ,
4338 "build-xml-full"
4439] ) ;
4540
46- grunt . registerTask ( "build-wordpress" , [
47- "check-modules" ,
48- "xmllint" ,
49- "clean" ,
50- "build"
51- ] ) ;
52-
5341} ;
Original file line number Diff line number Diff line change 2222 ],
2323 "dependencies" : {
2424 "grunt" : " 0.4.5" ,
25- "grunt-check-modules" : " 0.2.0" ,
26- "grunt-jquery-content" : " 1.0.0" ,
27- "rimraf" : " 2.2.8"
25+ "grunt-jquery-content" : " 2.0.0"
2826 }
2927}
You can’t perform that action at this time.
0 commit comments