-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
36 lines (32 loc) · 1.16 KB
/
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
var gulp = require('gulp');
var concat = require('gulp-concat');
var sourcemaps = require('gulp-sourcemaps');
var paths = {
js: [
'./public/app/bower_components/angular/angular.js',
'./public/app/bower_components/angular-bootstrap/ui-bootstrap.min.js',
'./public/app/bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js',
'./public/app/bower_components/angular-ui-router/release/angular-ui-router.min.js',
'./public/vendors/blockly/blockly_compressed.js',
'./public/vendors/blockly/blocks_compressed.js',
'./public/vendors/blockly/msg/js/en.js',
'./public/app/components/blocky/**/*.js',
'./public/app/app.js',
'./public/app/components/controllers/*.js',
'./public/app/components/helpers/*.js',
'./public/app/components/filters/*.js',
'./public/app/components/services/*.js',
'./public/app/components/directives/*.js'
]
};
gulp.task('js', function () {
gulp.src(paths.js)
.pipe(sourcemaps.init())
.pipe(concat('bundle.js'))
.pipe(sourcemaps.write())
.pipe(gulp.dest('./public/dist'))
});
gulp.task('default', ['js'], function () {
gulp.watch(paths.js, ['js']);
});
module.exports.paths = paths;