1.0.1 • Published 3 years ago
@swalls/node-package-template v1.0.1
Node package
Description
Install
Use npm or yarn
npm install node-package-templateoryarn add node-package-template
From sources
Clone repository with Git:
$ git clone https://github.com/SWalls/node-package-template.git
$ cd node-package-templateOr 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-templateReinitialize Git repository:
$ rm -rf .git
$ git initInstall package dependencies:
$ npm installUse
import packageName from '@swalls/node-package-template';
packageName();Test
Run tests:
$ npm testRun tests in watch mode:
$ npm run test:watchRun tests with coverage:
$ npm run test:coverageView coverage in browser:
$ npm run test:coverage
$ open coverage/index.htmlLint files:
$ npm run lintFix lint errors:
$ npm run lint:fixContribute
yarn set version latestyarn up "*" "@*/*"- If you use VIM, run
yarn sdks vim. - If you use Visual Studio Code, run
yarn sdks vscode.
License
Template created by combining: