https://github.com/kazuma1989/trial-react-anti-pattern
https://github.com/kazuma1989/trial-react-anti-pattern
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kazuma1989/trial-react-anti-pattern
- Owner: kazuma1989
- Created: 2022-04-27T12:22:37.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-23T00:37:50.000Z (about 3 years ago)
- Last Synced: 2025-01-22T09:33:01.611Z (5 months ago)
- Language: TypeScript
- Size: 116 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vite template
```console
npx degit kazuma1989/template-vite
```ビルドして使うには次のコマンドを実行してください。10 秒ほどでインストールとビルドが終わります。
```console
npm install
npm run build
```できあがった `build/` ディレクトリをドキュメントルートとして Web サーバーから見れば OK です。
## 利用可能なスクリプト
### `npm start [-- --no-open]`
アプリを開発モードで起動します。ブラウザーが起動して http://localhost:3000 が表示されます。
ブラウザーを起動したくないときは `-- --no-open` オプションを渡してください。
もしくは環境変数 `BROWSER` を `none` に設定してください。(e.g. `BROWSER=none npm start`)ソースコードを編集するとページがリロードします。
TypeScript による型検査は別コンソールで実行してください。
### `npm run build`
アプリを静的資材として `build/` ディレクトリにコピーします。
そのディレクトリをデプロイすれば OK です!### `npm run format`
ソースコードを整形します。
### `npm run lint`
ソースコードを静的検査します。
## IDE
IDE は Visual Studio Code が推奨です。必要な拡張機能をすぐインストールできるようにしてあります。