- Visual Studio Code
- Dev Containers(VS Code拡張機能)
- VS Code 画面左下の「><」をクリック
- 「Reopen in Container」をクリック(しばらく待つ)
- 型を認識しないときは「Reopen Folder Localy」を押した後、「Reopen in Container」をやり直してみる
- VS Code 内のターミナルで下記の操作を実行
- 開発環境立ち上げ ...
npm run dev - Vitestの実行 ...
npm run test - その他は package.json の scripts を参照
- 開発環境立ち上げ ...
- 各環境(development, staging, production)の .env を作成
- .env.development等
- クライアントサイドのログレベル
- NUXT_PUBLIC_LOGGER_LEVEL
- サーバーサイドのログレベル
- NUXT_SERVER_LOGGER_LEVEL
※ ログレベルの種類(debug, info, warn, error, none)
- 作業ブランチを作成
- 例:
git checkout -b feat-XXXXX
- 例:
- commitを作成(NPMスクリプトを利用すること)
npm run commit
- 作業ブランチをPush
- 例:
git push origin HEAD
- 例:
- PRを作成
- approveされたら mainブランチにマージ
※ 依存モジュールの用途を常に明確にしておく
- pinia
- @pinia/nuxt
- @pinia-plugin-persistedstate/nuxt
※ overrides: { vue: latest } を追加
- aspida
- @aspida/fetch
- neverthrow
- typescript
- @nuxt/devtools
- nuxt
- @nuxtjs/eslint-config-typescript
- @typescript-eslint/eslint-plugin
- @typescript-eslint/parser
- eslint
- eslint-plugin-vue
- eslint-plugin-import
- stylelint
- stylelint-config-recommended
- stylelint-config-recommended-vue
- stylelint-config-standard
- stylelint-config-recommended-scss
- postcss-html
- stylelint-config-recess-order
- @vue/eslint-config-prettier
- eslint-plugin-prettier
- prettier
- commitizen
- cz-conventional-changelog
- husky
- lint-staged
- nuxt-vitest
- happy-dom
- vitest
- npm-run-all