Skip to content

Commit

Permalink
chore: define gulp file
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Mantilla committed Jul 1, 2015
1 parent 47ae553 commit eff796d
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Created by .ignore support plugin (hsz.mobi)
### Yeoman template
node_modules/
bower_components/
*.log

build/
dist/


18 changes: 18 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
var gulp = require('gulp');
var clean = require('gulp-clean');
var uglify = require('gulp-uglify');
var ngAnnotate = require('gulp-ng-annotate');

gulp.task('clean:dist', function () {
return gulp.src('dist')
.pipe(clean());
});

gulp.task('build', ['clean:dist'], function() {
return gulp.src('src/**/*.js')
.pipe(ngAnnotate())
.pipe(uglify())
.pipe(gulp.dest('dist'));
});

gulp.task('default', ['build']);
File renamed without changes.

0 comments on commit eff796d

Please sign in to comment.