This repository was archived by the owner on Dec 21, 2021. It is now read-only.
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 ( {
@@ -14,8 +11,8 @@ grunt.initConfig({
14
11
"notes.xsl"
15
12
]
16
13
} ,
17
- "build-pages " : {
18
- all : "pages/**"
14
+ "build-posts " : {
15
+ page : "pages/**"
19
16
} ,
20
17
"build-xml-entries" : {
21
18
all : "entries/**"
@@ -30,23 +27,14 @@ grunt.initConfig({
30
27
} ) ( )
31
28
} ) ;
32
29
33
- grunt . registerTask ( "clean" , function ( ) {
34
- rimraf . sync ( "dist" ) ;
35
- } ) ;
30
+ grunt . registerTask ( "lint" , [ "xmllint" ] ) ;
36
31
37
32
grunt . registerTask ( "build" , [
38
- "build-pages " ,
33
+ "build-posts " ,
39
34
"build-resources" ,
40
35
"build-xml-entries" ,
41
36
"build-xml-categories" ,
42
37
"build-xml-full"
43
38
] ) ;
44
39
45
- grunt . registerTask ( "build-wordpress" , [
46
- "check-modules" ,
47
- "xmllint" ,
48
- "clean" ,
49
- "build"
50
- ] ) ;
51
-
52
40
} ;
Original file line number Diff line number Diff line change 21
21
],
22
22
"dependencies" : {
23
23
"grunt" : " 0.4.5" ,
24
- "grunt-check-modules" : " 0.2.0" ,
25
- "grunt-jquery-content" : " 1.0.0" ,
26
- "rimraf" : " 2.2.8"
24
+ "grunt-jquery-content" : " 2.0.0"
27
25
}
28
26
}
You can’t perform that action at this time.
0 commit comments