query ranges lib and tests

This commit is contained in:
Eric Hulburd
2016-02-19 10:49:07 -06:00
parent e57e1a0742
commit c26b3b94c3
7 changed files with 634 additions and 36 deletions

View File

@@ -40,6 +40,8 @@ gulp.task('build', function(done) {
env = 'production';
} else if (yargs.argv.design){
env = 'design';
} else if (yargs.argv.test){
env = 'test';
} else {
throw new gutil.PluginError("webpack", "Must include '--production' or '--design' option.");
}
@@ -52,5 +54,15 @@ gulp.task('build', function(done) {
}));
done();
});
});
gulp.task('test', function(done) {
var Jasmine = require('jasmine');
var jasmine = new Jasmine();
jasmine.loadConfigFile('test/jasmine.json');
jasmine.configureDefaultReporter({
showColors: true
});
jasmine.execute();
});