jh-common-global
v1.3.104
Published
This is a companion project for [Build & publish your own private npm package].
Downloads
207
Readme
NPM Package Demo
This is a companion project for [Build & publish your own private npm package].
Example
If you want validation on form and use this common function for validate all form's fields. 🎉
Usage only if we want to use bitbucket
$ npm install
in both /jh-common$ npm install -g parcel-bundler
to install parcel globally- In your current repo, import jh-common either:
- Locally
$ npm link /YOUR-PATH/jh-common
- From your repo
$ npm i git+https://[email protected]/jh-frontend/jh-global-frontend.git
- Or from npm
$ npm i jh-common
- Run parcel
$ parcel index.html
- View in browser at the parcel gives you, probably localhost:1234
Publish packages steps and use npm install jh-common-global
- Changes file if any you want
- do
$ npm run build
- You will see - changes on dist folder's file
- add +1 version in package.json file
$ npm publish
- you will see a sucess message- now update this package in used project -
$ npm install jh-common-global
- you will see updated version number