File tree 4 files changed +59
-50
lines changed
4 files changed +59
-50
lines changed Original file line number Diff line number Diff line change 1
- dist
2
- entries_tmp
3
- node_modules
4
- config.json
5
- .project
6
- * ~
7
- * .diff
8
- * .patch
9
- .DS_Store
10
- .settings
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
+ "includes/**" ,
13
+ "categories.xml" ,
14
+ "entries2html.xsl" ,
15
+ "notes.xsl"
16
+ ]
17
+ } ,
18
+ "build-pages" : {
19
+ all : "pages/**"
20
+ } ,
21
+ "build-xml-entries" : {
22
+ all : "entries/**"
23
+ } ,
24
+ "build-resources" : {
25
+ all : "resources/**"
26
+ } ,
27
+ wordpress : ( function ( ) {
28
+ var config = require ( "./config" ) ;
29
+ config . dir = "dist/wordpress" ;
30
+ return config ;
31
+ } ) ( )
32
+ } ) ;
33
+
34
+ grunt . registerTask ( "clean" , function ( ) {
35
+ rimraf . sync ( "dist" ) ;
36
+ } ) ;
37
+
38
+ grunt . registerTask ( "build" , [
39
+ "build-pages" ,
40
+ "build-resources" ,
41
+ "build-xml-entries" ,
42
+ "build-xml-categories" ,
43
+ "build-xml-full"
44
+ ] ) ;
45
+
46
+ grunt . registerTask ( "build-wordpress" , [
47
+ "check-modules" ,
48
+ "xmllint" ,
49
+ "clean" ,
50
+ "build"
51
+ ] ) ;
52
+
53
+ } ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 21
21
}
22
22
],
23
23
"dependencies" : {
24
- "grunt" : " 0.3.17" ,
25
- "grunt-wordpress" : " 1.2.1" ,
26
- "grunt-jquery-content" : " 0.13.0" ,
27
- "grunt-check-modules" : " 0.1.0" ,
24
+ "grunt" : " 0.4.5" ,
25
+ "grunt-check-modules" : " 0.2.0" ,
26
+ "grunt-jquery-content" : " 1.0.0" ,
28
27
"rimraf" : " 2.2.8"
29
28
},
30
29
"devDependencies" : {},
You can’t perform that action at this time.
0 commit comments