-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgulpFile.js
More file actions
30 lines (25 loc) · 815 Bytes
/
gulpFile.js
File metadata and controls
30 lines (25 loc) · 815 Bytes
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
// gulpFile.js
var gulp = require('gulp'),
jshint = require('gulp-jshint'),
imagemin = require('gulp-imagemin'),
notify = require('gulp-notify'),
shell = require('gulp-shell');
gulp.task('test', function() {
return gulp.src('app/controllers/*.js')
.pipe(jshint())
.pipe(jshint.reporter('default'))
.pipe(notify({ message: 'Testing done.' }));
});
gulp.task('images', function() {
return gulp.src('app/assets/*')
.pipe(imagemin({ optimizationLevel: 3, progressive: true, interlaced: true }))
.pipe(gulp.dest('app/assets/'))
.pipe(notify({ message: 'Images task complete' }));
});
gulp.task('start', function() {
return gulp.src('app')
.pipe(shell('python -m SimpleHTTPServer 8000'))
});
gulp.task('default', [], function() {
gulp.start('test', 'start');
});