This is a companion project for [Build & publish your own private npm package].
If you want validation on form and use this common function for validate all form's fields. 🎉
-
$ 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://DheerajVarshney8800@bitbucket.org/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
- 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