zid-checkout

1.0.26 • Public • Published

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/zid-checkout@1.0.5/dist/ZidCheckoutWidget.min.js

Readme

Keywords

none

Package Sidebar

Install

npm i zid-checkout

Weekly Downloads

24

Version

1.0.26

License

ISC

Unpacked Size

1.02 MB

Total Files

4

Last publish

Collaborators

  • yarob50