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
- Outputs both CommonJS and ES Modules, ready to publish on npm
- Automatic dist bundling using bunzee
- Documentation generation using dokio
- Universal Test Runner for isomorphic Node.js and real browser testing incl. coverage and snapshots
- JSX out of the box
- Examples / Playground using vite-open
- Evergreen using pull-configs
- ESLint
- dprint
- Husky
# add
(a, b) – Adds two numbers together.
src/mod.ts#L12 All contributions are welcome!