minimal typescript template
npm i typescript-minimal-template
|
pnpm add typescript-minimal-template
|
yarn add typescript-minimal-template
|
# node
# view source
example/node.ts
import { add } from 'typescript-minimal-template'
console.log(add(1, 2))
# web
# view source
example/web.ts
import { add } from 'typescript-minimal-template'
const main = document.querySelector('main')!
main.innerHTML = `<h1>1 + 2 = ${add(1, 2)}</h1>`
- TypeScript with SWC
- JSX/TSX out of the box
- Outputs both CommonJS and ES Modules, ready to publish on npm
- Automatic dist bundling using bunzee
- Documentation generation using dokio
- Isomorphic Node.js and real browser testing incl. coverage and snapshots with utr
- Examples / Playground using devito
- Evergreen using pull-configs
- ESLint
- dprint
- Husky
All contributions are welcome!