-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrade to grunt-check-modules 0.2.0 * Upgrade to grunt-jquery-content 1.0.0 (cherry picked from commit 652f400)
- Loading branch information
1 parent
702ceec
commit ed5debe
Showing
4 changed files
with
59 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
dist | ||
node_modules | ||
config.json | ||
.project | ||
*~ | ||
*.diff | ||
*.patch | ||
.DS_Store | ||
.settings | ||
/dist/ | ||
/node_modules/ | ||
config.js* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
var rimraf = require( "rimraf" ); | ||
|
||
module.exports = function( grunt ) { | ||
|
||
grunt.loadNpmTasks( "grunt-check-modules" ); | ||
grunt.loadNpmTasks( "grunt-jquery-content" ); | ||
|
||
grunt.initConfig({ | ||
xmllint: { | ||
all: [ | ||
"entries/**", | ||
"includes/**", | ||
"categories.xml", | ||
"entries2html.xsl", | ||
"notes.xsl" | ||
] | ||
}, | ||
"build-pages": { | ||
all: "pages/**" | ||
}, | ||
"build-xml-entries": { | ||
all: "entries/**" | ||
}, | ||
"build-resources": { | ||
all: "resources/**" | ||
}, | ||
wordpress: (function() { | ||
var config = require( "./config" ); | ||
config.dir = "dist/wordpress"; | ||
return config; | ||
})() | ||
}); | ||
|
||
grunt.registerTask( "clean", function() { | ||
rimraf.sync( "dist" ); | ||
}); | ||
|
||
grunt.registerTask( "build", [ | ||
"build-pages", | ||
"build-resources", | ||
"build-xml-entries", | ||
"build-xml-categories", | ||
"build-xml-full" | ||
]); | ||
|
||
grunt.registerTask( "build-wordpress", [ | ||
"check-modules", | ||
"xmllint", | ||
"clean", | ||
"build" | ||
]); | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters