forked from base9/lytics-API
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
50 lines (39 loc) · 1.04 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
var gulp = require('gulp');
var gutil = require('gulp-util');
var nodemon = require('gulp-nodemon');
var jshint = require('gulp-jshint');
var jade = require('gulp-jade');
var stylus = require('gulp-stylus');
var wiredep = require('wiredep').stream;
var path = {
};
gulp.task('test', function() {
console.log('hello');
});
gulp.task('lint', function() {
return gulp.src([path._____])
.pipe(jshint())
.pipe(jshint.reporter('default'));
});
gulp.task('wiredepBower', function () {
gulp.src('./client/index.html')
.pipe(wiredep({
directory: './bower_components',
bowerJson: require('./bower.json')
}))
.pipe(gulp.dest('./dist'));
});
gulp.task('templates', function() {
gulp.src('./lib/*.jade')
.pipe(jade(path.________))
.pipe(gulp.dest(path._______))
});
gulp.task('one', function() {
gulp.src(path._____)
.pipe(stylus())
.pipe(gulp.dest(path._____));
})
gulp.watch('watch', function() {
gulpwatch(path._____, ['lint']);
});
gulp.task('default', ['lint', 'templates', 'one', 'watch']);