Skip to content

Commit e16de62

Browse files
committed
removed guppy-pre-commit, because it caused troubles, when you require elasticio-rest-node in other projects
1 parent 181e953 commit e16de62

File tree

2 files changed

+9
-16
lines changed

2 files changed

+9
-16
lines changed

gulpfile.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,17 @@ var paths = {
1010
coverageReport: 'coverage/lcov.info'
1111
};
1212

13-
gulp.task('jscs', function() {
13+
gulp.task('jscs', () => {
1414
return gulp
1515
.src([
16-
'./lib/**/*.js',
17-
//'./spec/**/*.js'
16+
'./lib/**/*.js'
1817
])
1918
.pipe(jscs())
2019
.pipe(jscs.reporter())
2120
.pipe(jscs.reporter('fail'));
2221
});
2322

24-
gulp.task('jasmine', function() {
23+
gulp.task('jasmine', () => {
2524
return gulp
2625
.src(paths.spec)
2726
.pipe(jasmine({
@@ -30,16 +29,16 @@ gulp.task('jasmine', function() {
3029
}));
3130
});
3231

33-
gulp.task('coveralls', ['coverage'], function() {
32+
gulp.task('coveralls', ['coverage'], () => {
3433
return gulp.src(paths.coverageReport).pipe(coveralls());
3534
});
3635

37-
gulp.task('coverage', function(cb) {
36+
gulp.task('coverage', cb => {
3837
gulp
3938
.src(paths.code)
4039
.pipe(istanbul()) // Covering files
4140
.pipe(istanbul.hookRequire()) // Force `require` to return covered files
42-
.on('finish', function() {
41+
.on('finish', () => {
4342
gulp
4443
.src(paths.spec)
4544
.pipe(jasmine())
@@ -48,7 +47,5 @@ gulp.task('coverage', function(cb) {
4847
});
4948
});
5049

51-
gulp.task('pre-commit', ['jscs']);
52-
5350
gulp.task('test', ['jasmine']);
5451
gulp.task('default', ['test']);

package.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "elasticio-rest-node",
33
"description": "elastic.io REST API client",
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"author": "elastic.io GmbH <[email protected]>",
66
"engine": "node >=4.1.0",
77
"scripts": {
8-
"pretest": "./node_modules/gulp/bin/gulp.js jscs",
9-
"test": "./node_modules/gulp/bin/gulp.js test"
8+
"pretest": "gulp jscs",
9+
"test": "gulp test"
1010
},
1111
"main": "./lib/client.js",
1212
"dependencies": {
@@ -22,10 +22,6 @@
2222
"gulp-coveralls": "^0.1.4",
2323
"gulp-param": "0.6.3",
2424
"gulp-jscs": "~3.0.2",
25-
"git-guppy": "~1.0.0",
2625
"code-quality-js": "1.0.2"
27-
},
28-
"optionalDependencies": {
29-
"guppy-pre-commit": "~0.2.1"
3026
}
3127
}

0 commit comments

Comments
 (0)