1
1
chokidar = require (' chokidar' )
2
2
fs = require (' fs' )
3
3
{spawn } = require (' child_process' )
4
- jade = require (' jade ' )
4
+ pug = require (' pug ' )
5
5
sass = require (' node-sass' )
6
6
7
7
binPath = ' ./node_modules/.bin/'
@@ -24,10 +24,10 @@ run = (bin, options, onExit) ->
24
24
onExit? (code, options)
25
25
26
26
compileView = (done ) ->
27
- options = [' --pretty' , ' src/views/api_mate.jade ' , ' --out' , ' lib' , ' --obj' , ' src/jade_options .json' ]
28
- run ' jade ' , options, ->
29
- options = [' --pretty' , ' src/views/redis_events.jade ' , ' --out' , ' lib' , ' --obj' , ' src/jade_options .json' ]
30
- run ' jade ' , options, ->
27
+ options = [' --pretty' , ' src/views/api_mate.pug ' , ' --out' , ' lib' , ' --obj' , ' src/pug_options .json' ]
28
+ run ' pug ' , options, ->
29
+ options = [' --pretty' , ' src/views/redis_events.pug ' , ' --out' , ' lib' , ' --obj' , ' src/pug_options .json' ]
30
+ run ' pug ' , options, ->
31
31
done? ()
32
32
33
33
compileCss = (done ) ->
@@ -66,7 +66,7 @@ watch = () ->
66
66
compileJs ()
67
67
else if path .match (/ \. scss/ )
68
68
compileCss ()
69
- else if path .match (/ \. jade / )
69
+ else if path .match (/ \. pug / )
70
70
compileView ()
71
71
72
72
task ' build' , ' Build everything from src/ into lib/' , ->
0 commit comments