Skip to content

Commit

Permalink
chore(build): add minification
Browse files Browse the repository at this point in the history
  • Loading branch information
btford committed Mar 30, 2015
1 parent e9a6e26 commit f1befb2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ var connect = require('gulp-connect');
var concat = require('gulp-concat');
var rename = require('gulp-rename');
var ngAnnotate = require('gulp-ng-annotate');
var gulpMerge = require('gulp-merge')
var gulpMerge = require('gulp-merge');
var modulate = require('./scripts/angular-modulate');
var uglify = require('gulp-uglify');

var CONFIG = require('./config');
var SERVER_CONFIG = CONFIG.server;
Expand Down Expand Up @@ -38,6 +39,9 @@ gulp.task('angularify', ['transpile'], function() {
return gulpMerge(directive, generated)
.pipe(concat('router.es5.js'))
.pipe(ngAnnotate())
.pipe(gulp.dest(BUILD_DIR))
.pipe(uglify())
.pipe(rename({extname: '.min.js'}))
.pipe(gulp.dest(BUILD_DIR));
});

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"gulp-ng-annotate": "^0.5.2",
"gulp-rename": "^1.2.0",
"gulp-traceur": "^0.13.0",
"gulp-uglify": "^1.1.0",
"highlight.js": "^8.4.0",
"karma": "^0.12.24",
"karma-chrome-launcher": "^0.1.5",
Expand Down

0 comments on commit f1befb2

Please sign in to comment.