How to publish the javascript package on the npm
DESCRIPTION
See [CodeSandbox usage](CODESANDBOX LINK)
Features
- tests
- travis deploy
- dotenv
Usage
1. Copy the package
Clone the repo
git clone git clone git@github.com:edtoken/clean-js-pkg.git
Please! Do not add the .env file to the GIT, it's local file, for local development/common builds
travis
configuration
2. Update Update the .travis.yml
file, replace the email
and repo
package.json
3. Update Update name
, description
, repository
, author
, and licenses
travis
environment, Add NPM_TOKEN value.
4. Update To able, to deploy the npm package from the travis
you should add the environment variable NPM_TOKEN
in the travis UI.
5. Publish
Other examples
See the Main article Build and publish your NPM package