このページとあなたの好きなAIアシスタントを使ってドキュメントを要約します
バージョン履歴
- "checkTypesオプションを追加"v8.1.52026/2/23
このページのコンテンツはAIを使用して翻訳されました。
英語の元のコンテンツの最新バージョンを見るこのドキュメントを改善するアイデアがある場合は、GitHubでプルリクエストを送信することで自由に貢献してください。
ドキュメントへのGitHubリンクドキュメントのMarkdownをクリップボードにコピー
辞書のビルド
辞書をビルドするには、以下のコマンドを実行します。
コードをクリップボードにコピー
npx intlayer buildまたはウォッチモードで
コードをクリップボードにコピー
npx intlayer build --watchこのコマンドはデフォルトで ./src/**/*.content.{ts|js|mjs|cjs|json|tsx|jsx} にある宣言コンテンツファイルを検出し、.intlayer ディレクトリに辞書をビルドします。
エイリアス:
npx intlayer dictionaries buildnpx intlayer dictionary buildnpx intlayer dic build
引数:
--base-dir: プロジェクトのベースディレクトリを指定します。intlayerの設定を取得するために、コマンドはベースディレクトリ内のintlayer.config.{ts,js,json,cjs,mjs}ファイルを探します。例:
npx intlayer build --base-dir ./src--env: 環境を指定します(例:development、production)。intlayerの設定ファイルで環境変数を使用している場合に便利です。例:
npx intlayer build --env production--env-file: 変数を読み込むためのカスタム環境ファイルを指定します。intlayerの設定ファイルで環境変数を使用している場合に便利です。例:
npx intlayer build --env-file .env.production.local--with: ビルドと並行してコマンドを開始します。--base-dir: プロジェクトのベースディレクトリを指定します。intlayerの設定を取得するために、コマンドはベースディレクトリ内のintlayer.config.{ts,js,json,cjs,mjs}ファイルを探します。例:
npx intlayer build --base-dir ./src--env: 環境を指定します(例:development、production)。intlayerの設定ファイルで環境変数を使用している場合に便利です。例:
npx intlayer build --env production--env-file: 変数を読み込むためのカスタム環境ファイルを指定します。intlayerの設定ファイルで環境変数を使用している場合に便利です。例:
npx intlayer build --env-file .env.production.local--with: ビルドと並行してコマンドを開始します。例:
npx intlayer build --with "next dev --turbopack"--skip-prepare: prepareステップをスキップします。例:
npx intlayer build --skip-prepare--no-cache: キャッシュを無効にします。例:
npx intlayer build --no-cache--check-types: コンテンツ宣言ファイルの型をチェックします。例:
npx intlayer build --check-types