/clean-js-parcel-pkg

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

Primary LanguageJavaScriptMIT LicenseMIT

How to publish the javascript package on the npm with parcel and travis

npm Build Status Maintainability

Tiny Javascript package to help to configure the Javascript package with parcel
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 NPM_TOKEN value.

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