Skip to content

Commit

Permalink
fix(npm): publish bundle to npm
Browse files Browse the repository at this point in the history
fixes #14
  • Loading branch information
Flavio Corpa committed Sep 18, 2020
1 parent 35c747d commit 16779ed
Show file tree
Hide file tree
Showing 3 changed files with 1,553 additions and 38 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ node_modules
npm-debug.log
.node_history
package-lock.json
dist

############################
# tmp, editor & OS files
Expand Down
19 changes: 12 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"description": "Lenses, Prisms and Traversals in JavaScript!",
"homepage": "https://nicedoc.io/kutyel/optics.js",
"version": "0.0.0",
"main": "index.js",
"source": "index.js",
"main": "dist/optic.js",
"module": "dist/optic.module.js",
"unpkg": "dist/optic.umd.js",
"contributors": [
{
"name": "Flavio Corpa",
Expand Down Expand Up @@ -49,21 +52,23 @@
"husky": "^4.3.0",
"jest": "^26.4.2",
"lint-staged": "^10.3.0",
"microbundle": "^0.12.3",
"npm-check-updates": "^9.0.1",
"nyc": "^15.1.0",
"semantic-release": "^17.1.1",
"standard-version": "^9.0.0"
},
"engines": {
"node": ">= 10"
"node": ">= 12"
},
"scripts": {
"build": "microbundle",
"clean": "rm -rf node_modules",
"contributors": "(git-authors-cli && finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
"coverage": "jest --coverage --coverageReporters=text-lcov | coveralls",
"lint": "eslint src/*.js",
"postrelease": "npm run release:tags && npm run release:github && npm publish",
"prerelease": "git-dirty && npm run update:check && npm test && npm run contributors",
"prerelease": "git-dirty && npm run update:check && npm test && npm run contributors && npm run build",
"pretest": "npm run lint",
"release": "git-authors-cli finepack && git add package.json && standard-version -a",
"release:github": "conventional-github-releaser -p angular",
Expand All @@ -89,10 +94,10 @@
"jest": {
"coverageThreshold": {
"global": {
"branches": 40,
"functions": 50,
"lines": 60,
"statements": 60
"branches": 64,
"functions": 74,
"lines": 73,
"statements": 75
}
},
"testEnvironment": "node"
Expand Down
Loading

0 comments on commit 16779ed

Please sign in to comment.