Skip to content

Commit 5485ce9

Browse files
author
benholloway
committed
removed dependency on global gulp
1 parent 177bbb7 commit 5485ce9

File tree

4 files changed

+14
-197
lines changed

4 files changed

+14
-197
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"scripts": {
1818
"test": "npm run lint && node node_modules/jasmine-node/bin/jasmine-node --verbose --captureExceptions test/specs",
1919
"testonly": "node node_modules/jasmine-node/bin/jasmine-node --captureExceptions test/specs",
20-
"lint": "gulp lint --gulpfile ./test/jshint.js"
20+
"lint": "node ./test/jshint.js"
2121
},
2222
"contributors": [
2323
"bholloway",

test/helpers/helper.js

Lines changed: 0 additions & 165 deletions
This file was deleted.

test/jshint.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1+
#!/usr/bin/env node
12
'use strict';
2-
var jshint = require('gulp-jshint');
3-
var gulp = require('gulp');
4-
var path = require('path');
5-
var cwd = path.resolve(process.cwd(), '..');
6-
var config = path.resolve(cwd, '.jshintrc');
7-
var stylish = require('jshint-stylish');
3+
4+
var jshint = require('gulp-jshint'),
5+
gulp = require('gulp'),
6+
path = require('path'),
7+
stylish = require('jshint-stylish');
88

99
gulp.task('lint', function() {
10-
return gulp.src([
11-
'lib/**/*.js',
12-
'tasks/**/*.js',
13-
'bin/**/*.js',
14-
'test/specs/**/*.js'
15-
], {cwd:cwd})
10+
var cwd = path.resolve(__dirname, '..'),
11+
config = path.resolve(cwd, '.jshintrc'),
12+
glob = ['lib/**/*.js', 'tasks/**/*.js', 'bin/**/*.js', 'test/specs/**/*.js'];
13+
return gulp.src(glob, {cwd: cwd})
1614
.pipe(jshint(config))
1715
.pipe(jshint.reporter(stylish));
18-
});
16+
});
17+
18+
gulp.start('lint');

test/rebuildExpected.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)