-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
26 lines (19 loc) · 837 Bytes
/
gulpfile.js
File metadata and controls
26 lines (19 loc) · 837 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
var gulp = require('gulp'),
run = require('./task/run'),
nodemon = require('./task/nodemon'),
jsx = require('./task/jsx'),
sass = require('./task/sass'),
clean = require('./task/clean');
/**
* NOTE: The purpose of this file is to
* specify all tasks. Do not put task-specific
* logic here. Use the /gulp directory for that.
*/
gulp.task('default', run(['jsx', 'sass']));
gulp.task('dev', run(['jsx-watch', 'sass-watch'], 'nodemon'));
gulp.task('jsx', jsx.toJs('./lib/components/App/App.jsx', 'app.js'));
gulp.task('jsx-watch', jsx.toJsWatch('./lib/components/App/App.jsx', 'app.js'));
gulp.task('sass', sass.toCss('./lib/components/App/App.scss', 'app.css'));
gulp.task('sass-watch', sass.toCssWatch('./lib/components/App/App.scss', 'app.css'));
gulp.task('nodemon', nodemon.start);
gulp.task('clean', clean.clean);