Skip to content

Commit b16422d

Browse files
committed
feat(project): simplify setup
* drop development / testing builds of library * consume lib / tests via esm * simplify rollup config
1 parent d0b43d0 commit b16422d

File tree

8 files changed

+194
-330
lines changed

8 files changed

+194
-330
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
"jsondiffpatch": "./bin/jsondiffpatch"
1919
},
2020
"scripts": {
21+
"all": "run-s build test",
2122
"build": "rollup -c",
22-
"build-dist": "rollup -c rollup-dist.config.js",
2323
"test-browser": "gulp test-browser",
2424
"lint": "eslint .",
2525
"bump": "gulp bump",
2626
"test": "nyc mocha",
2727
"watch": "nodemon --exec \"mocha\"",
28-
"prepublish": "npm run build && npm run build-dist",
28+
"prepublishOnly": "npm run all",
2929
"cover-report": "open coverage/lcov-report/index.html",
3030
"cover-publish": "nyc mocha && codeclimate < coverage/lcov.info"
3131
},
@@ -62,10 +62,12 @@
6262
"eslint-plugin-node": "^5.2.1",
6363
"eslint-plugin-promise": "^3.6.0",
6464
"eslint-plugin-standard": "^3.0.1",
65+
"esm": "^3.0.25",
6566
"istanbul": "^0.4.5",
6667
"mkdirp": "^0.5.1",
6768
"mocha": "^5.0.0",
6869
"nodemon": "^1.17.1",
70+
"npm-run-all": "^4.1.2",
6971
"nyc": "^11.4.1",
7072
"prettier": "^1.10.2",
7173
"rollup": "^0.54.1",

rollup-config-factory.js

Lines changed: 0 additions & 237 deletions
This file was deleted.

rollup-dist.config.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)