forked from thelgevold/angular-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
28 lines (25 loc) · 756 Bytes
/
gulpfile.js
File metadata and controls
28 lines (25 loc) · 756 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
var gulp = require('gulp');
const babel = require('gulp-babel');
gulp.task('bundle', function() {
var SystemBuilder = require('systemjs-builder');
var builder = new SystemBuilder();
builder.loadConfig('./system.config.js')
.then(function(){
var outputFile = 'dist/bundle.js';
return builder.buildStatic('app', outputFile, {
minify: true,
mangle: true,
rollup: false
});
})
.then(function(){
console.log('bundle built successfully!');
});
});
gulp.task('es5', function () {
return gulp.src('dist/temp.js')
.pipe(babel({
presets: ['es2015']
}))
.pipe(gulp.dest('dist'));
});