Skip to content

Commit ecb8acc

Browse files
committed
gulpfile was added
1 parent 523c5ad commit ecb8acc

File tree

3 files changed

+34
-6
lines changed

3 files changed

+34
-6
lines changed

dist/angular-spa-auth.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gulpfile.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
"use strict";
2+
3+
var gulp = require('gulp'),
4+
uglify = require('gulp-uglify'),
5+
concat = require('gulp-concat'),
6+
del = require('del');
7+
8+
var DIST = 'dist';
9+
var DIST_NAME = 'angular-spa-auth.min.js';
10+
11+
var JS = [
12+
'src/**/*.js'
13+
];
14+
15+
gulp.task('concat', function () {
16+
return gulp.src(JS, {base: 'app'})
17+
.pipe(concat(DIST_NAME))
18+
.pipe(uglify())
19+
.pipe(gulp.dest(DIST));
20+
});
21+
22+
gulp.task('clean', function () {
23+
return del(DIST + '/*');
24+
});
25+
26+
gulp.task('watch', function () {
27+
gulp.watch(JS, gulp.series('build'));
28+
});
29+
30+
gulp.task('build', gulp.series('clean', 'concat'));
31+
32+
gulp.task('default', gulp.series('build', 'watch'));

package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@
55
"bower": "1.7.9",
66
"del": "2.2.0",
77
"gulp": "gulpjs/gulp#4.0",
8-
"gulp-cache-bust": "1.0.2",
98
"gulp-concat": "2.6.0",
10-
"gulp-cssmin": "0.1.7",
11-
"gulp-if": "2.0.0",
12-
"gulp-replace": "0.5.4",
13-
"gulp-uglify": "1.5.3",
14-
"minimist": "1.2.0"
9+
"gulp-uglify": "1.5.3"
1510
}
1611
}

0 commit comments

Comments
 (0)