Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trentm/template-node-package
Trent's template for node package (for use with https://help.github.com/en/articles/creating-a-repository-from-a-template)
https://github.com/trentm/template-node-package
Last synced: about 1 month ago
JSON representation
Trent's template for node package (for use with https://help.github.com/en/articles/creating-a-repository-from-a-template)
- Host: GitHub
- URL: https://github.com/trentm/template-node-package
- Owner: trentm
- License: other
- Created: 2019-08-17T02:28:21.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T04:32:11.000Z (almost 2 years ago)
- Last Synced: 2024-10-19T19:54:58.710Z (2 months ago)
- Language: Makefile
- Size: 208 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE
Awesome Lists containing this project
README
TODO:
- proj setup steps in "https://github.com/.../settings":
- disable merge commits
- remove wikis if not using
- remove projects if not using
- Find and replace all "foobar" boilerplate in this repo:
rg -i foobar
find . -name "*foobar*"
- update copyright year in LICENSETODO: Add a short (one or a few paragraphs) description of this package here
including: why, what it does, perhaps what it doesn't do, and current status if
relevant.# Install
npm install foobar
# Usage
TODO: some usage examples
# ...
TODO: other user-guide-ish top-level sections as you see fit
# Reference
TODO: if it will be maintained, provide an h2 section for each API method
# License
MIT. See [LICENSE](./LICENSE).
# Dev Guide
## How to contribute
**[File an issue](https://github.com/trentm/node-foobar/issues/new)** if you
find a bug, or want to discuss a new feature or change.**[Open a pull request](https://github.com/trentm/node-foobar/pulls)** if you
have a suggested change.Before commiting or proposing PRs, please ensure the following pass:
make fmt # format code via prettier
make check # lint, style, and formatting (via eslint and prettier)
make test## Testing
Usage:
npm test # run all tests
make test # run all tests (same)
node test/foobar.test.js # run a specific test fileTest output is node-tap's default "classic" output. You can use `TAP=1` to
have TAP output emited to stdout.## Release process
Here is how to cut a release:
1. Push a commit to set the intended version in "package.json#version" and
changing `## not yet released` at the top of "CHANGES.md" to:```
## not yet released(nothing yet)
## v$version
```2. Once that is merged and you've updated your local copy, run:
```
make cutarelease
```This will run a couple checks (clean working copy, versions in package.json
and CHANGES.md match), then will git tag and npm publish.