@thmoon/templates
Usage:
npx @thmoon/templates gen my-app
Available Templates:
- Next.js
- CRA
- Custom webpack5 configuration
- Next.js + StyledComponents + StoryBook
- Nest + MongoDB
- Nest + PostgreSQL
Templates include:
- typescript
- css or sass auto modules
- eslint
- stylelint
- prettier
- redux-toolkit
- husky
- lint-staged
- postcss
- editorconfig
- basic directory structure
- example component
How to create a new template:
Just go to src/templates
and set up your own template as an application!
Then add your template directory name to the TEMPLATES_LIST
array and it will be available in CLI
Working with repo:
scripts:
// starts generator in developer mode
"start": "NODE_ENV=development ts-node src/index.ts",
// starts builded generator
"start:prod": "node ./dist/index.js",
// reinstalls deps in all templates and root
"deps": "sh ./deps.sh",
// build to dist folder
"build": "sh ./build.sh",
// script for CI package release
"semantic-release": "semantic-release",
// runs commitizen
"commit": "git-cz"