File tree 2 files changed +5
-19
lines changed
2 files changed +5
-19
lines changed Original file line number Diff line number Diff line change 1
- var rimraf = require ( "rimraf" ) ;
2
-
3
1
module . exports = function ( grunt ) {
4
2
5
- grunt . loadNpmTasks ( "grunt-check-modules" ) ;
6
3
grunt . loadNpmTasks ( "grunt-jquery-content" ) ;
7
4
8
5
grunt . initConfig ( {
@@ -15,8 +12,8 @@ grunt.initConfig({
15
12
"notes.xsl"
16
13
]
17
14
} ,
18
- "build-pages " : {
19
- all : "pages/**"
15
+ "build-posts " : {
16
+ page : "pages/**"
20
17
} ,
21
18
"build-xml-entries" : {
22
19
all : "entries/**"
@@ -31,23 +28,14 @@ grunt.initConfig({
31
28
} ) ( )
32
29
} ) ;
33
30
34
- grunt . registerTask ( "clean" , function ( ) {
35
- rimraf . sync ( "dist" ) ;
36
- } ) ;
31
+ grunt . registerTask ( "lint" , [ "xmllint" ] ) ;
37
32
38
33
grunt . registerTask ( "build" , [
39
- "build-pages " ,
34
+ "build-posts " ,
40
35
"build-resources" ,
41
36
"build-xml-entries" ,
42
37
"build-xml-categories" ,
43
38
"build-xml-full"
44
39
] ) ;
45
40
46
- grunt . registerTask ( "build-wordpress" , [
47
- "check-modules" ,
48
- "xmllint" ,
49
- "clean" ,
50
- "build"
51
- ] ) ;
52
-
53
41
} ;
Original file line number Diff line number Diff line change 22
22
],
23
23
"dependencies" : {
24
24
"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"
28
26
}
29
27
}
You can’t perform that action at this time.
0 commit comments