barclayd / typescript-scaffold

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

Home Page:https://www.npmjs.com/package/typescript-scaffold

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

https://www.npmjs.com/package/typescript-scaffold


Languages

Language:TypeScript 66.8%Language:JavaScript 22.5%Language:Shell 10.7%