Simple Frontend CLI
I wrote a small open source command-line interface (CLI) tool to assist with setting up my recommended tools and patterns for new and existing projects.
You can simply run the setup command to get prompted for one or more patterns to setup:
npx simplefrontend setup
Or you can setup a specific pattern:
npx simplefrontend setup [pattern]
Available patterns are:
- format (Code formatting with Prettier)
- lint (Code linting with ESLint or Oxlint)
- typescript (TypeScript setup )
- pre-push (Pre-push hook with lefthook)
- github-actions (Github actions setup)
Even though I recommend pnpm, it also supports npm, yarn, and bun.
It will not only help you setup TypeScript, code formatting, and code linting, but also help you setup pre-push hooks and github actions workflows with sensible defaults to save you time.