Skip to content

Commit

Permalink
Fixes #15,#16
Browse files Browse the repository at this point in the history
  • Loading branch information
srfrnk committed Dec 28, 2014
1 parent 0b43cac commit 396ecb1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
var gulp = require('gulp');
var uglify = require('gulp-uglify');
var concat = require('gulp-concat');
var karma = require('karma').server;

gulp.task('default', ["minify","test"]);

gulp.task('minify', function() {
gulp.src('ng-device-detector.js')
.pipe(uglify())
.pipe(concat("ng-device-detector.min.js"))
.pipe(gulp.dest('.'))
});

/**
* Run test once and exit
*/
gulp.task('test', function (done) {
karma.start({
configFile: __dirname + '/karma.conf.js',
singleRun: true
}, done);
});
1 change: 1 addition & 0 deletions ng-device-detector.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 396ecb1

Please sign in to comment.