Skip to content

Commit

Permalink
Merge pull request #8 from Psychopoulet/develop
Browse files Browse the repository at this point in the history
improve doc & dev dependencies
  • Loading branch information
Psychopoulet committed Apr 30, 2018
2 parents 8f5e351 + d17006b commit 467dcb2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ Asynchronous version of EventEmitter, secured by promises

[![Build Status](https://api.travis-ci.org/Psychopoulet/asynchronous-eventemitter.svg?branch=master)](https://travis-ci.org/Psychopoulet/asynchronous-eventemitter)
[![Coverage Status](https://coveralls.io/repos/github/Psychopoulet/asynchronous-eventemitter/badge.svg?branch=master)](https://coveralls.io/github/Psychopoulet/asynchronous-eventemitter)
[![Dependency Status](https://img.shields.io/david/Psychopoulet/asynchronous-eventemitter/master.svg)](https://github.com/Psychopoulet/asynchronous-eventemitter)
[![Dependency Status](https://david-dm.org/Psychopoulet/asynchronous-eventemitter/status.svg)](https://david-dm.org/Psychopoulet/asynchronous-eventemitter)
[![Dev dependency Status](https://david-dm.org/Psychopoulet/asynchronous-eventemitter/dev-status.svg)](https://david-dm.org/Psychopoulet/asynchronous-eventemitter?type=dev)

## Installation

Expand Down
18 changes: 9 additions & 9 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

const ISTRAVIS = (0, process).env.TRAVIS || false;

const APP_FILES = [ path.join(__dirname, "lib", "*.js") ];
const APP_FILES = [ path.join(__dirname, "lib", "**", "*.js") ];
const UNITTESTS_FILES = [ path.join(__dirname, "tests", "**", "*.js") ];

const ALL_FILES = [ path.join(__dirname, "gulpfile.js") ]
Expand All @@ -48,34 +48,34 @@

});

gulp.task("istanbul", [ "eslint" ], () => {
gulp.task("istanbul", gulp.series("eslint", () => {

return gulp.src(APP_FILES)
.pipe(plumber())
.pipe(istanbul({ "includeUntested": true }))
.pipe(istanbul.hookRequire());

});
}));

gulp.task("mocha", [ "istanbul" ], () => {
gulp.task("mocha", gulp.series("istanbul", () => {

return gulp.src(UNITTESTS_FILES)
.pipe(plumber())
.pipe(mocha())
.pipe(istanbul.writeReports())
.pipe(istanbul.enforceThresholds({ "thresholds": { "global": 85 } }));

});
}));

gulp.task("coveralls", [ "mocha" ], () => {
gulp.task("coveralls", gulp.series("mocha", () => {

return gulp.src(path.join(__dirname, "coverage", "lcov.info"))
.pipe(plumber())
.pipe(coveralls());

});
}));

gulp.task("tests", [ ISTRAVIS ? "coveralls" : "mocha" ]);
gulp.task("tests", gulp.series(ISTRAVIS ? "coveralls" : "mocha"));

// watcher

Expand All @@ -86,4 +86,4 @@

// default

gulp.task("default", [ "mocha" ]);
gulp.task("default", gulp.series("mocha"));
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "asynchronous-eventemitter",
"version": "0.3.2",
"version": "0.3.3",
"description": "Asynchronous version of EventEmitter, secured by promises",
"main": "lib/main.js",
"typings": "lib/index.d.ts",
Expand Down Expand Up @@ -28,13 +28,13 @@
},
"dependencies": {},
"devDependencies": {
"@types/node": "9.6.6",
"gulp": "3.9.1",
"@types/node": "9.6.7",
"gulp": "4.0.0",
"gulp-coveralls": "0.1.4",
"gulp-eslint": "4.0.0",
"gulp-istanbul": "1.1.2",
"gulp-eslint": "4.0.2",
"gulp-istanbul": "1.1.3",
"gulp-mocha": "3.0.1",
"gulp-plumber": "1.1.0",
"gulp-plumber": "1.2.0",
"pre-push": "0.1.1"
},
"homepage": "https://github.com/Psychopoulet/asynchronous-eventemitter#readme",
Expand Down

0 comments on commit 467dcb2

Please sign in to comment.