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

Commit

Permalink
No need to use the 'yargs' package
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Castelluccio committed Oct 15, 2015
1 parent 819dc56 commit c19f3ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
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 @@ -55,7 +54,7 @@ gulp.task('serve', function () {
});

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

0 comments on commit c19f3ff

Please sign in to comment.