@subfuzion/create-typescript-app
v0.5.5
Published
Create a Node.js app configured for TypeScript
Downloads
11
Readme
create-typescript-app
Get up and running with minimal boilerplate for writing, testing, linting, and formatting TypeScript for Node.js app, and nothing else. There are no other assumptions or opinions about what frameworks you need.
npx @subfuzion/create-typescript-app [path]
Note
- If
path
isn't specified, it defaults to the current working directory (.
).- The directory under
path
must be empty.
Details
Configuration boilerplate for jump starting your app development includes:
- TypeScript
- Jest
- Linting and formatting
The linting and formatting tools have been configured to work together:
.editorconfig
has format settings that feed into Prettier.eslintrc.json
uses Prettier for formatting
The generated app includes a number of package scripts for development, including:
dev
|dev:notify
build
|build:watch
test
|test:watch
lint
|lint:fix
It is also configured with a pre-commit
hook using Husky and
lint-staged.
Notes
To use the latest published version, enter:
npx @subfuzion/create-typescript-app@latest [path]
If you want to use the latest version from the GitHub repo, enter:
npx github:subfuzion/create-typescript-app [path]
WARNING
Currently under development. This implementation assumes:
- You're running the latest LTS version (or greater) of Node.js (the current implementation might work with earlier versions, but this hasn't been verified).
node
andnpm
(automatically installed with Node.js) are in the path.git
is in your path and user.name and user.email are already configured.- Your system can run a
bash
script (for now).
Source
The source for the generated app is in the @subfuzion/typescript-starter-app repo.
License
Licensed under MIT.