vite について
viteは、Viteのガイド、設定、プラグイン、API、デプロイを扱う開発者向けスキルです。質問を公式ドキュメントに対応するローカルのサンプルへ案内し、中国語版Viteサイトの内容も含みます。
主な機能
- 01トピックをガイドサンプルに対応付け
- 02Vite設定リファレンスの案内
- 03プラグイン選定のガイダンス
- 04CLI、HMR、JavaScript APIの説明
- 05SSRとデプロイのトピック
活用シーン
- 01Viteの機能に関する情報の確認
- 02設定オプションの参照
- 03Viteプラグインの選択
- 04SSRやデプロイのガイダンス確認
インストール
コマンドをコピーしてターミナルで実行します。
$
npx skills add https:/ / github.com/ full-stack-skills/ build-skills --skill viteインストール後、Claude Code で/viteを入力して読み込まれたか確認します。
同梱ファイル
SKILL.md と一緒にインストールされる参考資料やスクリプト。
agents/openai.yamlapi/cli.mdconfig.mdplugin-api.mdexamples/config/build-options.mdconfiguring-vite.mddep-optimization-options.mdpreview-options.mdserver-options.mdshared-options.mdssr-options.mdworker-options.mdexamples/guide/api-environment-frameworks.mdapi-environment-instances.mdapi-environment-plugins.mdapi-environment-runtimes.mdapi-environment.mdapi-hmr.mdapi-javascript.mdapi-plugin.mdassets.mdbackend-integration.mdbuild.mdcli.mddep-pre-bundling.mdenv-and-mode.mdfeatures.mdgetting-started.mdmigration.mdperformance.md詳細
このスキルを使用する場面
ユーザーが次のことを求めている場合は、いつでもこのスキルを使用してください。
- はじめにからパフォーマンスまで、Vite ガイドのトピックに沿って進める
- 公式の設定リファレンスを使用して Vite を設定する
- 公式プラグインページから Vite プラグインを選択する、または内容を理解する
- Vite CLI、HMR API、または JavaScript API を使用する
- Vite で SSR、バックエンド統合、またはデプロイのシナリオに対応する
このスキルの使用方法
- ユーザーのリクエストからトピックを特定します。
examples/guide/にある対応するガイドの例ファイルを開きます。- 設定が必要な場合は、
examples/config/にある対応するファイルを開きます。 - プラグインの選択が必要な場合は、
examples/plugins.mdを開きます。 - 公式ドキュメントに忠実に従い、参照先ページと一貫した出力にします。
ガイドの対応表(https://cn.vitejs.dev/guide/ と一対一で対応)
はじめに
examples/guide/getting-started.md→ https://cn.vitejs.dev/guide/examples/guide/philosophy.md→ https://cn.vitejs.dev/guide/philosophy.htmlexamples/guide/why-vite.md→ https://cn.vitejs.dev/guide/why.html
ガイド
examples/guide/features.md→ https://cn.vitejs.dev/guide/features.htmlexamples/guide/cli.md→ https://cn.vitejs.dev/guide/cli.htmlexamples/guide/using-plugins.md→ https://cn.vitejs.dev/guide/using-plugins.htmlexamples/guide/dep-pre-bundling.md→ https://cn.vitejs.dev/guide/dep-pre-bundling.htmlexamples/guide/assets.md→ https://cn.vitejs.dev/guide/assets.htmlexamples/guide/build.md→ https://cn.vitejs.dev/guide/build.htmlexamples/guide/static-deploy.md→ https://cn.vitejs.dev/guide/static-deploy.htmlexamples/guide/env-and-mode.md→ https://cn.vitejs.dev/guide/env-and-mode.htmlexamples/guide/ssr.md→ https://cn.vitejs.dev/guide/ssr.htmlexamples/guide/backend-integration.md→ https://cn.vitejs.dev/guide/backend-integration.htmlexamples/guide/troubleshooting.md→ https://cn.vitejs.dev/guide/troubleshooting.htmlexamples/guide/performance.md→ https://cn.vitejs.dev/guide/performance.htmlexamples/guide/migration.md→ https://cn.vitejs.dev/guide/migration.html
API
examples/guide/api-plugin.md→ https://cn.vitejs.dev/guide/api-plugin.htmlexamples/guide/api-hmr.md→ https://cn.vitejs.dev/guide/api-hmr.htmlexamples/guide/api-javascript.md→ https://cn.vitejs.dev/guide/api-javascript.html
環境 API
examples/guide/api-environment.md→ https://cn.vitejs.dev/guide/api-environment.htmlexamples/guide/api-environment-instances.md→ https://cn.vitejs.dev/guide/api-environment-instances.htmlexamples/guide/api-environment-plugins.md→ https://cn.vitejs.dev/guide/api-environment-plugins.htmlexamples/guide/api-environment-frameworks.md→ https://cn.vitejs.dev/guide/api-environment-frameworks.htmlexamples/guide/api-environment-runtimes.md→ https://cn.vitejs.dev/guide/api-environment-runtimes.html
設定の対応表(https://cn.vitejs.dev/config/ と一対一で対応)
examples/config/configuring-vite.md→ https://cn.vitejs.dev/config/examples/config/shared-options.md→ https://cn.vitejs.dev/config/shared-options.htmlexamples/config/server-options.md→ https://cn.vitejs.dev/config/server-options.htmlexamples/config/build-options.md→ https://cn.vitejs.dev/config/build-options.htmlexamples/config/preview-options.md→ https://cn.vitejs.dev/config/preview-options.htmlexamples/config/dep-optimization-options.md→ https://cn.vitejs.dev/config/dep-optimization-options.htmlexamples/config/ssr-options.md→ https://cn.vitejs.dev/config/ssr-options.htmlexamples/config/worker-options.md→ https://cn.vitejs.dev/config/worker-options.html
プラグインの対応表(https://cn.vitejs.dev/plugins/ と一対一で対応)
examples/plugins.md→ https://cn.vitejs.dev/plugins/
リソース
- ガイド:https://cn.vitejs.dev/guide/
- 設定:https://cn.vitejs.dev/config/
- プラグイン:https://cn.vitejs.dev/plugins/
キーワード
Vite、ビルドツール、開発サーバー、HMR、設定、プラグイン、SSR、CLI、依存関係の事前バンドル、アセット
コメント
Markdown 対応