-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
30 lines (26 loc) · 734 Bytes
/
gulpfile.js
File metadata and controls
30 lines (26 loc) · 734 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
var gulp = require('gulp'),
watch = require('gulp-watch'),
jshint = require('gulp-jshint'),
browserify = require('gulp-browserify'),
plumber = require('gulp-plumber');
gulp.task('lint', function() {
return gulp.src('src/**/*.js')
.pipe(plumber())
.pipe(jshint())
.pipe(jshint.reporter('default'));
});
gulp.task('build:js', function() {
return gulp.src('src/js/main.js')
.pipe(plumber())
.pipe(browserify({
standalone: 'ethon'
}))
.pipe(gulp.dest('./dist/js'));
});
gulp.task('build', [
'lint',
'build:js'
]);
gulp.task('dev', ['build'], function() {
gulp.watch('src/**/*.js', ['build']);
});