1.0.1 • Published 1 year ago

@swalls/node-package-template v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Node package

version build status coverage status dependency status minzipped size downloads GitHub Action: Push

Description

Install

Use npm or yarn

  • npm install node-package-template or
  • yarn add node-package-template

From sources

Clone repository with Git:

$ git clone https://github.com/SWalls/node-package-template.git
$ cd node-package-template

Or download repository with ZIP:

$ curl -LO https://github.com/SWalls/node-package-template/archive/master.zip
$ unzip master.zip
$ rm master.zip
$ cd node-package-template

Reinitialize Git repository:

$ rm -rf .git
$ git init

Install package dependencies:

$ npm install

Use

import packageName from '@swalls/node-package-template';

packageName();

Test

Run tests:

$ npm test

Run tests in watch mode:

$ npm run test:watch

Run tests with coverage:

$ npm run test:coverage

View coverage in browser:

$ npm run test:coverage
$ open coverage/index.html

Lint files:

$ npm run lint

Fix lint errors:

$ npm run lint:fix

Contribute

  • yarn set version latest
  • yarn up "*" "@*/*"
  • If you use VIM, run yarn sdks vim.
  • If you use Visual Studio Code, run yarn sdks vscode.

License

MIT

Template created by combining: