forked from frida/cryptoshark
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
30 lines (23 loc) · 732 Bytes
/
gulpfile.js
File metadata and controls
30 lines (23 loc) · 732 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');
var gutil = require('gulp-util');
var $ = require('gulp-load-plugins')();
gulp.task('build-agent', function () {
var production = gutil.env.type === 'production';
gulp.src(['agent/main.js'], {read: false})
.pipe($.browserify({debug: !production}))
.pipe($.rename('agent.js'))
.pipe(gulp.dest('./'));
});
gulp.task('lint', function () {
return gulp.src([
'agent/**/*.js'
])
.pipe($.jshint({}))
.pipe($.jshint.reporter('jshint-stylish'));
});
gulp.task('watch', function () {
gulp.watch('agent/**/*.js', ['build-agent']);
gulp.watch('agent/**/*.js', ['lint']);
});
gulp.task('build', ['build-agent']);
gulp.task('default', ['build']);