A simple CLI to start your TS project with minimal configuration.
Basic configuration includes:
- TS
- Eslint + Prettier
- Jest
- Path Aliases
- Choose the template you want
For now we have 3 templates:
- Pure TS
- Express with TS
- Complete Express (Express, Prisma, Docker, Docker Compose, Postgres, JWT + Auth Flow)
You don't need to install or configure tools like TS version, ESlint, Prettier and Path aliases.
They are preconfigured and you can change anything you want (TS version, ESlint version, anything).
Just run the command, and you're good to go.
npx ts-simple-starter my-app
cd my-app
npm run dev
npm run test
You can simple import everything that is inside src/
or tests/
just using import anything from '@/any-folder'
or import tests from '@/tests/any-folder'
- Fork the project
- Clone your forked repo locally
- Create a new branch in your own forked repo with a brief name like
feat/feature-name
npm run install
to install the packages- Make changes in the
index.js
file, that's the main entrypoint - If you want to create a new template, create under the root folder, just like
template/
- Add the new template to the
index.js
entrypoint ->getTemplatePathFromAnswers()
function - Run
node . my-app
to run the entrypoint with the new code you just wrote - Create the PR from your fork to the main repo