TypeScript templates I use to immediately start doing something, with opinionated configuration.
If you need monorepo:
start with the whole repo , duplicate or remove variant subpackages as needed
else:
start with a package subdirectory, or download ejected zip / tar.xz from Github releases.
Based on create-next-app template.
Plugins:
- A hand-roll alternative to next-compose-plugins
- next-bundle-analyzer
Libraries:
- trpc for typed API
- tailwindcss
- No CSS or UI libraries. User can freely bring own UI libraries.
- util libraries: clsx foxact lodash-es @jokester/ts-commonutil
Not configured for serverless or SSG, I don't use Next.js for them.
based on create-vite template
Libraries:
If you need to host built assets with path rewriting,
check hono-worker variant,
or serve-handler (example).
- based on hono
- Capable of hosting SPA created by
preact-spa
- Can be used for any purpose, a new library or CLI or else.
All the variants contains a similar set of configurations and npm scripts:
tsconfig.jsonjest/ts-jestfor testinggtsprettiereslintfor linting and formattingnpm devnpm typecheck/npm typecheck:watchnpm lint/npm lint:fixnpm test/npm test:watch/npm test:coveragenpm build/npm analyze
The principles behind current (opinionated) settings are:
- Be strict as possible in TypeScript.
- Be close to upstream defaults
obsolete/web-gatsbyobsolete/craco-reactobsolete/aws-api-gatewayobsolete/mobile-react-nativeobsolete/web-tsup- Browser-only React SPA with egoist/tsup
- MIT