Start writing stuff in TypeScript without bothered by configurations
TypeScript templates I use to immediately start doing something, with opinionated configuration.
Download zip / tar.xz files from Github releases. Each file contains 1 variant.
nextjs
, for a frontend + server monolithBased on create-next-app template.
Plugins:
Libraries:
Not configured for serverless or SSG, I don't use Next.js for them.
preact-spa
, for frontend-only SPAbased on create-vite template
Libraries:
If you need to host built assets with path rewriting,
I recommend hono-worker
variant,
or serve-handler (example).
hono-worker
, for edge-worker like environmentsvite-preact
empty
, an empty npm packageAll the variants contains a similar set of configurations and npm scripts:
tsconfig.json
jest
/ ts-jest
for testinggts
prettier
eslint
for linting and formattingnpm dev
npm typecheck
/ npm typecheck:watch
npm lint
/ npm lint:fix
npm test
/ npm test:watch
/ npm test:coverage
npm build
/ npm analyze
The principles behind current (opinionated) settings are:
obsolete/web-gatsby
obsolete/craco-react
obsolete/aws-api-gateway
obsolete/mobile-react-native
obsolete/web-tsup