Bootstrap npm packages.
yarn create npm github-user/my-pkg
Running the above command will:
- Bootstrap a JavaScript project with:
- Package management using Yarn Classic
- Testing via AVA
- Linting via XO
- Create a GitHub repository for the project
- Enable continuous integration and deployment via GitHub Actions and semantic-release
- Automatic updates of dependencies using Dependabot
- Security updates
- Versions of
dependencies
anddevDependencies
To use create-npm
, the following tools must be installed:
The following credentials must be given as environment variables:
NPM_TOKEN
GITHUB_TOKEN
The GitHub token is used to add the NPM token to your newly created repository.