JavaScript + React + Redux + Mui + Axios + ESLint + Prettier
npx degit emre-cil/viterjs-template my-app
cd my-app
pnpm install
pnpm dev
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": {
"@/*": ["./*"]
}
Script | Description |
---|---|
pnpm dev | Runs the application. |
pnpm build | Create builds for the application. |
pnpm preview | Runs the Vite preview |
pnpm lint | Display eslint errors |
pnpm lint:fix | Fix the eslint errors |
pnpm format | Runs prettier for all files |
pnpm test | Run tests |