- git init
- mkdir tests
- touch .gitignore README.md index.js index.test.js
- yarn add jest -D
- yarn init
- 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
- jsDelivr npm CDN to get the index.js file.
- jsDelivr gh CDN to get the file list.