Skip to content

Node.js CLI for generating an opinionated TypeScript setup for a range of frameworks

Notifications You must be signed in to change notification settings

barclayd/typescript-scaffold

Repository files navigation

TypeScript Scaffold

npx typescript-scaffold

Node.js CLI for generating an opinionated TypeScript setup for a range of frameworks.

Supports:

  • Node
  • React
  • Next
  • Electron
  • Npx package

It automatically configures TypeScript, ESLint, Prettier, providing a tsconfig.json with tsconfig-paths configured out of the box.

npx package creation is made available too with the ability to create a TypeScript npx package complete with formatting, linting, building and publishing with just one command.

Suitable for use in an empty project or one that has already been configured.

Demo

typescript-scaffold

Develop locally

git clone https://github.com/barclayd/tsconfig-generator.git
cd typesript-scaffold
npm i
npm run dev

Build

npm build

Publish new package

npm run npx-publish

Future improvements

  • Provide custom configurations for React and Next.js
  • Support React Native