@enalmada/npm-module-template
v0.1.1
Published
npm module template
Readme
npm-module-template
A starter template for npm modules. Currently setup with the following tech:
- bun build - with types the best I could (see build notes below)
- vitest test framework
- biome for linting and formatting
- fixpack to normalize package.json changes along with
npm pkg fix - lefthook pre commit hooks
- turbo task orchestration and caching
- changesets change and release workflow
- renovate dependency management
- Github Actions
- Starlight Documentation
Installation
Click the Use this template button to create a new repository
(or run bun create Enalmada/npm-module-template <your-new-library-name>)
Documentation
Read the documentation website
TODO
- [ ] tests framework to bun (when bun supports mocking modules)
inspiration
Notes
Build
- Using latest module and target settings for current LTS
- using tsc for types until bun support comes around
Contribute
Using changesets so please remember to run "changeset" with any PR that might be interesting to people on an older template. Although this isn't being deployed as a module, I would like to call out things worth keeping in sync.
