https://github.com/zoubin/javascript-package-boilerplate
Boilerplate for developing javascript packages
https://github.com/zoubin/javascript-package-boilerplate
Last synced: 10 months ago
JSON representation
Boilerplate for developing javascript packages
- Host: GitHub
- URL: https://github.com/zoubin/javascript-package-boilerplate
- Owner: zoubin
- License: mit
- Created: 2015-10-07T13:41:21.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-11-10T13:53:15.000Z (over 6 years ago)
- Last Synced: 2024-12-13T18:50:16.644Z (over 1 year ago)
- Language: JavaScript
- Size: 48.8 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# javascript-package-boilerplate
[](https://www.npmjs.org/package/js-pb)
[](https://travis-ci.org/zoubin/javascript-package-boilerplate)
[](https://david-dm.org/zoubin/javascript-package-boilerplate)
[](https://david-dm.org/zoubin/javascript-package-boilerplate#info=devDependencies)
Boilerplate for developing javascript packages.
## Usage
```bash
npm i -g js-pb
mkdir your_project
cd your_project
npm init
js-pb
npm install
```
Execute `js-pb -h` for more information.
## Develope with stable Node.js version
Develope a package for the latest Node.js.
`package.json`:
```json
{
"main": "index.js",
"scripts": {
"test": "npm run lint && tap test/*.js",
"cov": "tap --cov test/*.js",
"lint": "eslint *.js 'lib/**/*.js' test/*.js bin/*.js",
"coveralls": "COVERALLS_REPO_TOKEN=REPO_TOKEN npm run cov"
},
"devDependencies": {
"eslint": "^2.1.0",
"tap": "^5.0.0"
}
}
```
### Run tests
Command: `npm test`
Run tests with [`tap`].
### Code lint
Command: `npm run lint`
Apply [`eslint`].
### Code coverage
Command: `npm run coveralls`
Upload code coverage data to [coveralls.io](https://coveralls.io/).
Visit the site for more information.
## Related
* [my-badges](https://github.com/zoubin/my-badges)
* [ezchangelog](https://github.com/zoubin/ezchangelog)
* [changen](https://github.com/th507/changen)
* [2 spaces or 4 spaces](https://github.com/zoubin/vim-tabstop)
[`tap`]: https://github.com/isaacs/node-tap
[`eslint`]: https://github.com/eslint/eslint