zid-checkout
v1.0.26
Published
Downloads
6
Readme
Zid Checkout
Deploying A New Version
In Only One Step
You can deploy your latest changes by using the command npm run deploy
which will generate the bundle file and increment the (patch) version number in package.json
file and then upload the new version to the npm package registery.
Steps Details
When you are done from editing, you can deploy the latest changes of your code by doing the following:
1- run npm run build
to generate the minified-single-js file in dist
directory that contains your latest changes
2- update the version
key in package.json
file to a new version manually or you can use npm run patch
3- you have to have an account in https://npmjs.com
4- run npm login
(if you aren't already loggedin from the console) and input your username/email and password to login
5- run npm publish
which will upload the package to your account in npmjs
6- thanks to unpkg
key in package.json
file which will upload the package as a CDN url and the url of the latest version will be as follows:
https://unpkg.com/{packageName}@{newVersion}/dist/{packageNameJsFile}.min.js
Example: for version 1.0.5
, the link would be:
https://unpkg.com/[email protected]/dist/ZidCheckoutWidget.min.js