以下の記事を参照:
https://qiita.com/nyarlathotep/private/451181c4f2e53a8e4298
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
- Configure the top-level
parserOptions
property like this:
export default {
// other rules...
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
}
.vscode\extensions.json
- JavaScript and TypeScript Nightly
- Biome
以下のコマンドでローカル起動できる。
npm run dev
以下のコマンドで dist
ディレクトリにビルド内容が出力される。
num run build
Push したら Git が勝手にやってくれる
.github\workflows\pages.yml