-
Notifications
You must be signed in to change notification settings - Fork 4
/
Gulpfile.js
41 lines (34 loc) · 914 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
34
35
36
37
38
39
40
41
'use strict';
var gulp = require('gulp');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var jshint = require('gulp-jshint');
// var babel = require('gulp-babel');
var shell = require('gulp-shell');
var paths = {
scripts: ['client/app/**/*.js'],
es6scripts: [''],
html: ['client/index.html'],
// styles: ['client/styles/style.css'],
test: ['client/test/**/*.js']
};
gulp.task('build', function() {
return gulp.src(paths.scripts)
.pipe(concat('all.js'))
.pipe(jshint())
.pipe(uglify())
.pipe(gulp.dest('client/dist/'));
});
// gulp.task('babel', function() {
// return gulp.src(paths.es6scripts)
// .pipe(babel({
// presets: ['es2015']
// }))
// .pipe(gulp.dest('client/app/'));
// });
gulp.task('docker-deploy', shell.task([
'echo hello',
'echo world'
]))
gulp.task('default', ['build']);
gulp.task('deploy', ['build','docker-deploy']);