-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathGulpfile.js
36 lines (32 loc) · 952 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
'use strict';
var gulp = require('gulp');
var uglify = require('gulp-uglify');
var concat = require('gulp-concat');
var shell = require('gulp-shell');
gulp.task('compress', function () {
gulp.src([
'bower_components/angular/angular.js',
'bower_components/angular-route/angular-route.js',
'bower_components/angular-local-storage/angular-local-storage.js',
'bower_components/prism/prism.js',
'bower_components/prism/components/prism-scss.js',
'bower_components/prism/components/prism-javascript.js',
'build/templates.js',
'build/factories.js',
'build/directives.js',
'build/app.js'
])
.pipe(concat('style-prototype.js'))
.pipe(uglify({
mangle: true,
outSourceMap: true
}))
.pipe(gulp.dest('dist'));
});
gulp.task('compass', function () {
return gulp.src('sass/**/*')
.pipe(shell([
'bundle exec compass compile --force'
]));
});
gulp.task('default', ['compress', 'compass']);