-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
30 lines (21 loc) · 888 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
'use strict';
const watch = require('gulp-watch');
const gulp = require('gulp');
const handlebars = require('gulp-handlebars');
const wrap = require('gulp-wrap');
const declare = require('gulp-declare');
const concat = require('gulp-concat');
const browserify = require('browserify');
const babel = require('babelify');
const buffer = require('vinyl-buffer');
const source = require('vinyl-source-stream');
const uglify = require('gulp-uglify');
const lessTasks = require('./tasks/styles');
const scriptsTasks = require('./tasks/scripts');
gulp.task('build-style-dev', lessTasks.devLess);
gulp.task('build-style-prod',lessTasks.prodLess);
gulp.task('build-js-dev', scriptsTasks.devJs);
gulp.task('build-js-prod', scriptsTasks.prodJs);
gulp.task('dev', ['build-js-dev', 'build-style-dev']);
gulp.task('prod', ['build-js-prod', 'build-style-prod']);
gulp.task('default', ['dev']);