1.0.2 • Published 4 years ago
jsdelivr-npm v1.0.2
Instructions
- git init
- mkdir tests
- touch .gitignore README.md index.js index.test.js
- yarn add jest -D
- yarn init
Local publish
- yarn version --patch/minor/major/prepatch/preminor/premajor/prerelease
- Auto commit in git
- Add preversion, postversion, postpublish hooks in package.json
~/.yarnrc
- Input password when
yarn publish
... email <EMAIL> lastUpdateCheck ... username <USERNAME>
- Input password when
npm adduser
- Generate token in
~/.npmrc
... //registry.npmjs.org/:_authToken=<TOKEN>
- Access token
- Generate token in
CI publish
jsDelivr
- jsDelivr npm CDN to get the index.js file.
- jsDelivr gh CDN to get the file list.