A repository template for a Node.js library.
This repository is written in TypeScript and uses gts for linting and formatting. It is set up to be published to npm automatically using GitHub Actions.
Commits are standardized through Conventional Commits and Semantic Versioning. This is enforced by commitlint.
Pushes to the master
branch create a new release and publish to npm.
The lib directory contains the library source code. The test directory contains the tests. Tests are written with mocha and chai.
-
Initial setup
- Clone this repository.
- Run
npm install
. - Run
npm run setup
to set up the project.
-
License
- Choose a license and add it to the
LICENSE
file. - Change the license badge to the
README.md
file. - Change the license in the
package.json
file. - Change the license code in the
.vscode/settings.json
file.
- Choose a license and add it to the
-
Final changes
- Make sure to remove this section from the
README.md
file. - Change the
README.md
file to describe your project. - Add a description in the
package.json
file. - Add the repository secret
NPM_TOKEN
in order for automated npm publishing to work. - Run
npm install
to clean up thepackage-lock.json
file.
- Make sure to remove this section from the
-
Begin development!
BELOW IS THE README FOR THE TEMPLATE REPOSITORY. REMOVE THIS SECTION FROM YOUR README.
A repository template for a Node.js library.
This package is still in development and is not yet ready for production use. There will be breaking changes before the package is stable.
Most commands are implemented, but a few are not yet. Not many of the command options are implemented yet, but the most common ones are.
Please open an issue if you would like a specific option implemented.
npm install @pextra/node-library-template
Your usage instructions here.
For enterprise licensing, support, and consulting, please visit our website. Alternatively, you can contact us at enterprise@pextra.cloud.
If you have any questions, please feel free open an issue or a discussion. You can also contact us at support@pextra.cloud.
We welcome contributions! If you find any bugs, have feature requests, or would like to contribute enhancements, please feel free to open issues or submit pull requests.
We use gts for linting and formatting.
node-library-template is licensed under the MIT License.