Skip to content

Commit

Permalink
updated gulpfile and ci tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
ascartabelli committed Sep 20, 2018
1 parent f67947a commit f3b3c10
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
28 changes: 13 additions & 15 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,27 +84,25 @@ gulp.task("lint", gulp.series("lint:code", "lint:tests"));

/* test */

gulp.task("test", function () {
return gulp.src("./src").pipe(jest(jestBaseConfig));
});
function testWith (extraSettings) {
return function () {
return gulp.src("./src").pipe(jest(Object.assign({}, jestBaseConfig, extraSettings)));
};
}

gulp.task("test:coverage", function () {
return gulp.src("./src").pipe(
jest(Object.assign({}, jestBaseConfig, { collectCoverage: true }))
);
});
gulp.task("test", testWith({}));

gulp.task("test:verbose", function () {
return gulp.src("./src").pipe(jest(Object.assign({}, jestBaseConfig, { verbose: true })));
});
gulp.task("test:coverage", testWith({ collectCoverage: true }));

gulp.task("test:watch", function () {
return gulp.src("./src").pipe(jest(Object.assign({}, jestBaseConfig, { watch: true })));
});
gulp.task("test:verbose", testWith({ verbose: true }));

gulp.task("test:travis", testWith({ collectCoverage: true, maxWorkers: 4 }));

gulp.task("test:watch", testWith({ watch: true }));

/* travis */

gulp.task("travis", gulp.series("lint", "test", "minify"));
gulp.task("travis", gulp.series("lint", "test:travis"));

/* default */

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@
"sideEffects": false,
"scripts": {
"test": "gulp test",
"coveralls": "gulp test:coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
"coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
},
"tonicExample": "var _ = require('lamb');",
"version": "0.57.0-alpha.13",
"version": "0.57.0-alpha.14",
"devDependencies": {
"babel-preset-import-export": "^1.0.2",
"coveralls": "^3.0.2",
Expand Down
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ Object.defineProperties(lamb, {
"@@lamb/version": { value: version }
});

Object.assign(lamb, exports);
for (var prop in exports) {
lamb[prop] = exports[prop];
}

export default lamb;

0 comments on commit f3b3c10

Please sign in to comment.