create-ts-fast

Create TS Fast Logo

Create TypeScript Fast

Create React App but for creating TypeScript-based packages to be published to the npm registry.

npm create ts-fast@latest

Supported templates:

Features

Contains just enough features to help you author and publish TypeScript-based npm packages in under 15 minutes. Features include:

Where’s pnpm, ESLint, Prettier, and <trendy library>?

The project is unopinionated about the following:

Why? Because no matter the choice, someone will have a different opinion and want to use something else, so we rather leave it to you. Moreover, these tools can be easily added yourself.

If/when one of them becomes the standard (e.g. TypeScript), we can then include them as a default.

Getting started

Run the scaffolding command, use the scaffolded project as a starting point and customize it to your liking.

Start by running the appropriate command and answering a few questions:

npm

npm create ts-fast@latest

Yarn

yarn create ts-fast

pnpm

pnpm create ts-fast@latest

bun

bun create ts-fast@latest

Scaffolded project structure

Scaffolded projects have these base files:

├── .github/workflows/ci.yml
├── dist
├── src
│   ├── __tests__
│   └── index.ts
├── package.json
├── README.md
├── tsconfig.json
├── tsup.config.ts
└── vitest.config.ts

Next steps

  1. Implement your library within src. Add tests if you take pride in being a developer
  2. Modify package.json – update name, version, author and any other relevant fields
  3. Update README.md
  4. npm run publish. You will have to login to npm if you aren’t already logged in
  5. Profit!

Roadmap

Credits and inspiration