Skip to content

Commit

Permalink
- fixed travis timeouts
Browse files Browse the repository at this point in the history
- ditched rollup-plugin-filesize as it made the build fail on node 7
- updated gulp tasks
  • Loading branch information
ascartabelli committed Sep 20, 2018
1 parent f67947a commit 267024d
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 612 deletions.
8 changes: 5 additions & 3 deletions dist/lamb.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @overview lamb - A lightweight, and docile, JavaScript library to help embracing functional programming.
* @author Andrea Scartabelli <andrea.scartabelli@gmail.com>
* @version 0.57.0-alpha.13
* @version 0.57.0-alpha.15
* @module lamb
* @license MIT
* @preserve
Expand Down Expand Up @@ -6956,7 +6956,7 @@
isType: isType
});

var version = "0.57.0-alpha.13";
var version = "0.57.0-alpha.15";

var lamb = Object.create(null);

Expand Down Expand Up @@ -6992,7 +6992,9 @@
"@@lamb/version": { value: version }
});

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

return lamb;

Expand Down
4 changes: 2 additions & 2 deletions dist/lamb.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/lamb.min.js.map

Large diffs are not rendered by default.

34 changes: 14 additions & 20 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

var gulp = require("gulp");
var eslint = require("gulp-eslint");
var filesize = require("rollup-plugin-filesize");
var jest = require("gulp-jest").default;
var rename = require("gulp-rename");
var rollup = require("rollup");
Expand All @@ -29,10 +28,7 @@ var intro = [
gulp.task("build", function () {
return rollup.rollup({
input: "src/index.js",
plugins: [
filesize(),
rollupJSON()
]
plugins: [rollupJSON()]
}).then(function (bundle) {
return bundle.write({
banner: intro,
Expand Down Expand Up @@ -84,27 +80,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
Loading

0 comments on commit 267024d

Please sign in to comment.