/clean-js-pkg

Tiny Javascript package to help to configure the javascript package to deploy on the npm with travis

Primary LanguageJavaScriptMIT LicenseMIT

How to publish the javascript package on the npm with travis

npm Build Status Maintainability

Tiny Javascript package to help to configure the javascript package
to deploy on the npm with travis

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

2. Update travis configuration

Update the .travis.yml file, replace the email and repo

3. Update package.json

Update name, description, repository, author, and licenses

4. Update travis environment, Add SECURE_KEY value.

To able, to deploy the npm package from the travis
you should add the environment variable SECURE_KEY in the travis UI.

5. Publish

Other examples

See the Main article Build and publish your NPM package