Skip to content

Commit 786ffe6

Browse files
committed
Update jade, now it's called pug
1 parent 6c21f18 commit 786ffe6

10 files changed

+697
-267
lines changed

Cakefile

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
chokidar = require('chokidar')
22
fs = require('fs')
33
{spawn} = require('child_process')
4-
jade = require('jade')
4+
pug = require('pug')
55
sass = require('node-sass')
66

77
binPath = './node_modules/.bin/'
@@ -24,10 +24,10 @@ run = (bin, options, onExit) ->
2424
onExit?(code, options)
2525

2626
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, ->
3131
done?()
3232

3333
compileCss = (done) ->
@@ -66,7 +66,7 @@ watch = () ->
6666
compileJs()
6767
else if path.match(/\.scss/)
6868
compileCss()
69-
else if path.match(/\.jade/)
69+
else if path.match(/\.pug/)
7070
compileView()
7171

7272
task 'build', 'Build everything from src/ into lib/', ->

0 commit comments

Comments
 (0)