File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11var rimraf = require ( "rimraf" ) ;
22
3- /*jshint node:true */
43module . exports = function ( grunt ) {
5- "use strict" ;
64
75var entryFiles = grunt . file . expandFiles ( "entries/*.xml" ) ;
86
9- grunt . loadNpmTasks ( "grunt-wordpress" ) ;
10- grunt . loadNpmTasks ( "grunt-jquery-content" ) ;
117grunt . loadNpmTasks ( "grunt-check-modules" ) ;
8+ grunt . loadNpmTasks ( "grunt-jquery-content" ) ;
9+ grunt . loadNpmTasks ( "grunt-wordpress" ) ;
1210
1311grunt . initConfig ( {
14- lint : {
15- grunt : "grunt.js"
16- } ,
1712 xmllint : {
1813 all : [ ] . concat ( entryFiles , "categories.xml" , "entries2html.xsl" , "notes.xsl" )
1914 } ,
20- xmltidy : {
21- all : [ ] . concat ( entryFiles , "categories.xml" )
22- } ,
2315 "build-pages" : {
2416 all : grunt . file . expandFiles ( "pages/**" )
2517 } ,
@@ -38,9 +30,7 @@ grunt.registerTask( "clean", function() {
3830 rimraf . sync ( "dist" ) ;
3931} ) ;
4032
41- grunt . registerTask ( "default" , "build-wordpress" ) ;
4233grunt . registerTask ( "build" , "build-pages build-xml-entries build-xml-categories build-xml-full build-resources" ) ;
43- grunt . registerTask ( "build-wordpress" , "check-modules clean lint xmllint build" ) ;
44- grunt . registerTask ( "tidy" , "xmllint xmltidy" ) ;
34+ grunt . registerTask ( "build-wordpress" , "check-modules clean xmllint build" ) ;
4535
4636} ;
You can’t perform that action at this time.
0 commit comments