Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ascartabelli committed Jul 3, 2020
1 parent e0598e1 commit a96c0e8
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 22 deletions.
1 change: 0 additions & 1 deletion dist/lamb.esm.min.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion 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.59.0-alpha.10
* @version 0.59.0-alpha.11
* @module lamb
* @license MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/lamb.min.js

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

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

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions dist/lamb.esm.min.js → dist/lamb.min.mjs

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/lamb.min.mjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/lamb.esm.js → dist/lamb.mjs
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.59.0-alpha.10
* @version 0.59.0-alpha.11
* @module lamb
* @license MIT
*/
Expand Down
10 changes: 5 additions & 5 deletions gulpfile.js/index.js → gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const rollup = require("rollup");
const sourcemaps = require("gulp-sourcemaps");
const terser = require("gulp-terser");

const jestBaseConfig = require("../jest.config.cjs");
const pkg = require("../package.json");
const jestBaseConfig = require("./jest.config.js");
const pkg = require("./package.json");

const intro = [
"/**",
Expand All @@ -31,7 +31,7 @@ const commonOptions = {
};

const esOptions = Object.assign({}, commonOptions, {
file: "dist/lamb.esm.js",
file: "dist/lamb.mjs",
format: "esm"
});

Expand All @@ -52,10 +52,10 @@ gulp.task("set-test-env", cb => {

const builder = opts => () => rollup.rollup({ input: "src/index.js" }).then(bundle => bundle.write(opts));

const minifier = isES => () => gulp.src(`dist/lamb${isES ? ".esm" : ""}.js`)
const minifier = isES => () => gulp.src(`dist/lamb${isES ? ".mjs" : ".js"}`)
.pipe(sourcemaps.init())
.pipe(terser({ mangle: { module: isES }, output: { comments: "some" } }))
.pipe(rename({ extname: ".min.js" }))
.pipe(rename({ extname: isES ? ".min.mjs" : ".min.js" }))
.pipe(sourcemaps.write("."))
.pipe(gulp.dest("dist"));

Expand Down
4 changes: 0 additions & 4 deletions gulpfile.js/package.json

This file was deleted.

File renamed without changes.
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.

7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,12 @@
],
"license": "MIT",
"main": "./dist/lamb.js",
"module": "./dist/lamb.esm.js",
"module": "./dist/lamb.mjs",
"exports": {
"require": "./dist/lamb.js",
"import": "./dist/lamb.esm.js",
"import": "./dist/lamb.mjs",
"default": "./dist/lamb.js"
},
"type": "module",
"name": "lamb",
"repository": {
"type": "git",
Expand Down Expand Up @@ -64,7 +63,7 @@
"unpkg": "dist/lamb.min.js",
"sideEffects": false,
"tonicExample": "var _ = require('lamb');",
"version": "0.59.0-alpha.10",
"version": "0.59.0-alpha.11",
"devDependencies": {
"@babel/core": "^7.10.4",
"@babel/preset-env": "^7.10.4",
Expand Down

0 comments on commit a96c0e8

Please sign in to comment.