forked from RobertMcCoy/ReactBoilerplate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgulpfile.js
33 lines (26 loc) · 873 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
/// <binding BeforeBuild='default' ProjectOpened='watch' />
var gulp = require('gulp');
var run = require('gulp-run');
gulp.task('start', function(){
run('npm run start', {}).exec();
run('echo Started Dev Environment', {}).exec();
});
gulp.task('test', function () {
run('npm run test', {}).exec();
run('echo Started Jest', {}).exec();
});
gulp.task('json', function () {
run('npm run json', {}).exec();
run('echo Started JSON Server', {}).exec();
});
gulp.task('build', function () {
run('npm run build', {}).exec();
run('echo Running Production Build', {}).exec();
});
gulp.task('analyze', function () {
run('npm run analyze', {}).exec(null, null);
run('echo Analysis Complete', {}).exec(null, null);
});
gulp.task('default', ['start']);
gulp.task('dev', ['json', 'test', 'start']);
gulp.task('prop', ['build', 'analyze']);