-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
40 lines (27 loc) · 910 Bytes
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
var gulp = require('gulp');
var uglify = require('gulp-uglify');
var livereload = require('gulp-livereload');
var browserify = require('gulp-browserify');
//var stylus = require('gulp-stylus');
gulp.task('scripts', function() {
// Single entry point to browserify
gulp.src('mithril-toolkit.js')
.pipe( browserify({insertGlobals:false, debug : true}) )
.pipe( gulp.dest('./dist') )
.pipe( livereload() )
});
gulp.task('jade', function () {
var YOUR_LOCALS = {};
gulp.src('jade/**/*.jade')
.pipe(jade({
locals: YOUR_LOCALS
}))
.pipe(gulp.dest('./public'))
.pipe(livereload())
});
gulp.task('default', ['scripts'], function() {
gulp.watch('src/**/*.js', ['scripts']);
//gulp.watch('jade/**/*.jade', ['jade']);
//gulp.watch('stylus/**/*.styl', ['stylus']);
livereload.listen();
});