Node.js TypeScript boilerplate project.
- Node v16+
- ES Modules
- TypeScript 3 project references for source and tests
- Scripts for development, testing, linting, and building
- Github Actions
For Web components projects, see node-mean-template-wc
| Description | Uploaded to Git | Uploaded to npm | |
|---|---|---|---|
src |
TypeScript source | ✅ | ❌ |
tests |
TypeScript tests | ✅ | ❌ |
dist |
Compiled JavaScript, type definition files | ❌ | ✅ |
dist_tests |
Compiled JavaScript tests | ❌ | ❌ |
This project uses daizong to manage scripts. You need to run scripts via
npx daizong <script>ordz <script>(if you installed daizong globally).
dz devstarts dev mode, which watches and compiles all source files including test files.dz truns tests in dev mode.
You can keep two terminal tabs during development, one for dz dev, the other for dz t.
dz buildcleans, lints, compiles the project and runs tests.
You do not need to manually run these scripts. They are integrated into other scripts.
dz lintlints the project using oxlint, auto triggered bydz build.dz cleandeletes all build artifacts, auto triggered bydz devordz build.
The prepublishOnly package.json script was removed as we now recommend using np to publish packages. np automatically runs npm test, which runs dz build before publishing.
Replace __PKG_NAME__ with your package name:
[](https://github.com/mgenware/__PKG_NAME__/actions)
[](https://github.com/mgenware/__PKG_NAME__)
[](https://npmjs.com/package/__PKG_NAME__)
[](https://nodejs.org/en/)