This repository was archived by the owner on Dec 21, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +59
-57
lines changed Expand file tree Collapse file tree 4 files changed +59
-57
lines changed Original file line number Diff line number Diff line change 1
- dist
2
- node_modules
3
- config.json
1
+ / dist /
2
+ / node_modules /
3
+ config.js *
Original file line number Diff line number Diff line change
1
+ var rimraf = require ( "rimraf" ) ;
2
+
3
+ module . exports = function ( grunt ) {
4
+
5
+ grunt . loadNpmTasks ( "grunt-check-modules" ) ;
6
+ grunt . loadNpmTasks ( "grunt-jquery-content" ) ;
7
+
8
+ grunt . initConfig ( {
9
+ xmllint : {
10
+ all : [
11
+ "entries/**" ,
12
+ "categories.xml" ,
13
+ "entries2html.xsl" ,
14
+ "notes.xsl"
15
+ ]
16
+ } ,
17
+ "build-pages" : {
18
+ all : "pages/**"
19
+ } ,
20
+ "build-xml-entries" : {
21
+ all : "entries/**"
22
+ } ,
23
+ "build-resources" : {
24
+ all : "resources/**"
25
+ } ,
26
+ wordpress : ( function ( ) {
27
+ var config = require ( "./config" ) ;
28
+ config . dir = "dist/wordpress" ;
29
+ return config ;
30
+ } ) ( )
31
+ } ) ;
32
+
33
+ grunt . registerTask ( "clean" , function ( ) {
34
+ rimraf . sync ( "dist" ) ;
35
+ } ) ;
36
+
37
+ grunt . registerTask ( "build" , [
38
+ "build-pages" ,
39
+ "build-resources" ,
40
+ "build-xml-entries" ,
41
+ "build-xml-categories" ,
42
+ "build-xml-full"
43
+ ] ) ;
44
+
45
+ grunt . registerTask ( "build-wordpress" , [
46
+ "check-modules" ,
47
+ "xmllint" ,
48
+ "clean" ,
49
+ "build"
50
+ ] ) ;
51
+
52
+ } ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 20
20
}
21
21
],
22
22
"dependencies" : {
23
- "grunt" : " 0.3.17" ,
24
- "grunt-clean" : " 0.3.0" ,
25
- "grunt-wordpress" : " 1.2.1" ,
26
- "grunt-jquery-content" : " 0.13.0" ,
27
- "grunt-check-modules" : " 0.1.0"
23
+ "grunt" : " 0.4.5" ,
24
+ "grunt-check-modules" : " 0.2.0" ,
25
+ "grunt-jquery-content" : " 1.0.0" ,
26
+ "rimraf" : " 2.2.8"
28
27
}
29
28
}
You can’t perform that action at this time.
0 commit comments