Skip to content
This repository has been archived by the owner on May 11, 2020. It is now read-only.

Commit

Permalink
Add recipe for npm publish
Browse files Browse the repository at this point in the history
to avoid forgetting the build before publication
  • Loading branch information
alexisjanvier committed Nov 7, 2019
1 parent a197aa7 commit 8ec457e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ image-publish: get-current-version
docker push alexisjanvier/web-myna:${WM_VERSION}
docker push alexisjanvier/web-myna:latest

publish: image-build image-publish ## Build then publish image to Github registry
publish-docker: image-build image-publish ## Build then publish image to Github registry

publish-npm: build ## Build cli then publish new version on npm (nedd np install on global)
np

documentation: ## Generate documentation from JsDoc
yarn run jsdoc
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"start": "nodemon --exec \"node --experimental-modules\" --watch src src/index.js",
"lint:js": "eslint ./src --ext .js",
"jsdoc": "jsdoc2md src/**/*.js > ./docs/references.md",
"build": "parcel build cli/index.js --target node --no-source-maps"
"build": "parcel build cli/index.js --target node --no-source-maps && git add dist"
},
"husky": {
"hooks": {
Expand Down

0 comments on commit 8ec457e

Please sign in to comment.