Home

Awesome

viterjs-template

JavaScript + React + Redux + Mui + Axios + ESLint + Prettier

viterjs-template

Getting Started

Clone the repo

npx degit emre-cil/viterjs-template my-app
cd my-app

Install Dependencies

pnpm install

Run

pnpm dev

Paths

Application using absolute paths Example: '@/components/Counter/Counter';

if you don't want to use you can remove these lines from

vite.config.js

 resolve: {
    alias: {
      '@': path.resolve(__dirname, 'src'),
    },
    extensions: ['.js', '.jsx', '.ts', '.tsx', '.json'],
  },

jsconfig.json

"paths": {
      "@/*": ["./*"]
    }

Scripts

ScriptDescription
pnpm devRuns the application.
pnpm buildCreate builds for the application.
pnpm previewRuns the Vite preview
pnpm lintDisplay eslint errors
pnpm lint:fixFix the eslint errors
pnpm formatRuns prettier for all files
pnpm testRun tests

Check List