This is an opinionated starter project for creating a TypeScript project. It works as other crete-* projects, but it is focused on TypeScript.
To create a project based on this starter, you can run one of the following commands:
pnpm create @c3s4/typescript-starter
or
yarn create @c3s4/typescript-starter
or
npm create @c3s4/typescript-starter
-
Use
tsx
as Typescript executor, instead ofts-node
, because it is more powerful and has better support for TypeScript features. -
Use
vitest
as testing platform. -
Use my
eslint
andprettier
configurations. You caon obviously change them anytime, after the project is created. -
Prepare the project to be build as
cjs
andesm
modules. -
Use differente
tsconfig
files to configure different types of builds.
-
Use
tsup
as bundler to build the project. This will solve the problem related to thecjs
andesm
modules. But causes to have only one bundle. -
Ask if you want the project to be a library or an application. This will change the
tsconfig.json
and thepackage.json
scripts.