Skip to content

c3s4/create-typescript-starter

Repository files navigation

create-typescript-starter

This is an opinionated starter project for creating a TypeScript project. It works as other crete-* projects, but it is focused on TypeScript.

How to use

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

Choices I made

  • Use tsx as Typescript executor, instead of ts-node, because it is more powerful and has better support for TypeScript features.

  • Use vitest as testing platform.

  • Use my eslint and prettier configurations. You caon obviously change them anytime, after the project is created.

  • Prepare the project to be build as cjs and esm modules.

  • Use differente tsconfig files to configure different types of builds.

TODO

  • Use tsup as bundler to build the project. This will solve the problem related to the cjs and esm 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 the package.json scripts.

About

Create script to create an node typescript app

Resources

License

Stars

Watchers

Forks

Packages

No packages published