Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Commit

Permalink
Use yargs instead of gulp.env. Fixes #81
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Castelluccio committed Oct 15, 2015
1 parent b4bb6ec commit 9f9733b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
var connect = require('gulp-connect');
var gulp = require('gulp');
var mocha = require('gulp-mocha');
var argv = require('yargs').argv;
var oghliner = require('./index.js');

gulp.task('default', ['build', 'offline']);
Expand Down Expand Up @@ -54,7 +55,7 @@ gulp.task('serve', function () {
});

gulp.task('test', function () {
return gulp.src(gulp.env.file ? gulp.env.file : 'test/test*.js', {read: false})
return gulp.src(argv.file ? argv.file : 'test/test*.js', {read: false})
// gulp-mocha needs filepaths so you can't have any plugins before it
.pipe(mocha());
})
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
"gulp-mocha": "^2.1.3",
"mocha": "^2.3.3",
"simple-git": "^1.11.0",
"temp": "^0.8.3"
"temp": "^0.8.3",
"yargs": "^3.27.0"
},
"engines": {
"node": ">= 0.12"
Expand Down

0 comments on commit 9f9733b

Please sign in to comment.