A starter frontend boilerplate built with:
This also uses husky and lint-staged for running pre-commit checks.
- Support for both TypeScript and JavaScript as needed.
- Use popular tailwind plugin; eg: @tailwindcss/typography, @tailwindcss/forms, @tailwindcss/line-clamp, prettier-plugin-tailwindcss
- Add many usefull postcss plugin; eg: cssnano, autoprefixer, postcss-preset-env, postcss-extend, postcss-mixins, postcss-import, postcss-simple-vars
- Minification of TS/JS and CSS processed files.
- May be extended to be used with React, Vue.js, or Angular.
src
├── assets
├── components
├── global
├── utils
├── ...
├── vite-env.d.ts
└── main.ts
public
├── ...
└── vite.svg
You may change the configuration for Vite within the vite.config.ts file.
Run:
pnpm install
Run:
pnpm run dev
Run:
pnpm run build
Will output all build files into the dist
folder.
Run:
pnpm run format:scripts
Run:
pnpm run format
Run:
pnpm run lint:scripts
Run:
pnpm run lint:styles