jv-project-template
v0.1.0
Published
## Motivation
Readme
Typescript project template
Motivation
A basic modern setup for TypeScript libraries. The goal is not have a clonable template and that's it, it's to have a starter, a base to add on to. Some common cases which require extra tinkering (that I'm not going to do in this) are:
- Projects that contain Infrastructure-as-Code. These are often structured to have a
srcandinfrafolder.- Such projects also commonly have integration tests (would need tooling, script entry in
package.json, workflow, ...)
- Such projects also commonly have integration tests (would need tooling, script entry in
- Projects that use private package registries (Need pre-install setup so install can succeed, often publish to a privat registry too)
- Projects that use a tool like
semantic-releaseto handle their versioning. I haven't considered such a tool at all in this starter (though commitlint is set up to validate the Angular commit format, whichsemantic-releaseby default works with).
Features
- Dual-packaging to support both CJS and ESM consumers
- Linting and formatting
- Basic Github Actions workflows
Prerequisites
- The Node version specified in the
.nvmrcfile (nvmcan be used for this)
Installation
- Run
corepack enable pnpm(requires a modern Node version) - Run
pnpm install
