# Angular CLI (Angular) > ng new, ng generate, ng serve, ng build, ng test、設定、workspaces、schematics、builders - 18 面接問題 - Junior - [面接問題: Angular](https://sharpskill.dev/ja/technologies/angular/interview-questions.md) ## 1. 新しいAngularプロジェクトを作成するコマンドはどれですか? **回答** ng newコマンドは、必要なすべての設定ファイル(angular.json、tsconfig.json、package.json)を含む新しいAngularプロジェクトを作成し、自動的にnpm依存関係をインストールし、Gitリポジトリを初期化します。このコマンドはあらゆるAngularプロジェクトの標準的な出発点であり、Angularチームが推奨する構造をセットアップします。また、ルーティング、CSSプリプロセッサー、TypeScriptのstrictモードを選択するためのインタラクティブなオプションも提供します。 ## 2. Angular開発サーバーを起動するコマンドはどれですか? **回答** ng serveコマンドは、自動リロード(ホットリロード)機能付きのAngular開発サーバーを起動します。アプリケーションを開発モードでコンパイルし、デフォルトでlocalhost:4200でアクセス可能にします。サーバーはTypeScript、HTML、CSSファイルの変更を監視し、効率的な開発ワークフローのために自動的に再コンパイルしてブラウザを更新します。このコマンドは、コンパイルパフォーマンスを最適化するためにバックグラウンドでwebpack-dev-serverを使用します。 ## 3. Angularプロジェクトのメイン設定が含まれているファイルはどれですか? **回答** angular.jsonファイルには、ビルドオプション、アセットパス、環境設定、各種ビルダー設定など、Angularプロジェクトのすべての設定が含まれています。この中心的なファイルにより、CLIの動作をカスタマイズし、開発と本番用の設定を定義し、グローバルなスタイルとスクリプトのパスを設定し、マルチプロジェクトワークスペースで複数のプロジェクトを管理できます。Angular CLIの設定で最も重要なファイルです。 ## さらに15問利用可能 - Angularアプリケーションを本番用にコンパイルするコマンドはどれですか? - Angularプロジェクトでユニットテストを実行するコマンドはどれですか? 無料で登録: https://sharpskill.dev/ja/login ## その他のAngular面接トピック - [TypeScriptの基礎](https://sharpskill.dev/ja/technologies/angular/interview-questions/typescript-basics.md): 25問, Junior - [TypeScript上級](https://sharpskill.dev/ja/technologies/angular/interview-questions/typescript-advanced.md): 20問, Junior - [Angularの基礎](https://sharpskill.dev/ja/technologies/angular/interview-questions/angular-fundamentals.md): 20問, Junior - [コンポーネントとライフサイクル](https://sharpskill.dev/ja/technologies/angular/interview-questions/components-lifecycle.md): 20問, Junior - [Services & Dependency Injection](https://sharpskill.dev/ja/technologies/angular/interview-questions/services-dependency-injection.md): 20問, Junior - [Angularモジュールの構成](https://sharpskill.dev/ja/technologies/angular/interview-questions/modules-organization.md): 22問, Mid-Level - [ディレクティブとPipe](https://sharpskill.dev/ja/technologies/angular/interview-questions/directives-pipes.md): 22問, Mid-Level - [ルーティングとナビゲーション](https://sharpskill.dev/ja/technologies/angular/interview-questions/routing-navigation.md): 24問, Mid-Level - [リアクティブフォーム](https://sharpskill.dev/ja/technologies/angular/interview-questions/forms-reactive.md): 26問, Mid-Level - [テンプレート駆動フォーム](https://sharpskill.dev/ja/technologies/angular/interview-questions/forms-template-driven.md): 16問, Mid-Level - [RxJS の基礎](https://sharpskill.dev/ja/technologies/angular/interview-questions/rxjs-fundamentals.md): 22問, Mid-Level - [RxJS オペレーター](https://sharpskill.dev/ja/technologies/angular/interview-questions/rxjs-operators.md): 24問, Mid-Level - [HttpClientとAPI呼び出し](https://sharpskill.dev/ja/technologies/angular/interview-questions/http-client.md): 22問, Mid-Level - [基本的な状態管理](https://sharpskill.dev/ja/technologies/angular/interview-questions/state-management-basics.md): 20問, Mid-Level - [Change Detection](https://sharpskill.dev/ja/technologies/angular/interview-questions/change-detection.md): 20問, Mid-Level - [Angular Signals](https://sharpskill.dev/ja/technologies/angular/interview-questions/angular-signals.md): 20問, Mid-Level - [Standalone Components](https://sharpskill.dev/ja/technologies/angular/interview-questions/standalone-components.md): 18問, Mid-Level - [Angularのユニットテスト](https://sharpskill.dev/ja/technologies/angular/interview-questions/testing-unit.md): 22問, Mid-Level - [エンドツーエンドテスト](https://sharpskill.dev/ja/technologies/angular/interview-questions/testing-e2e.md): 18問, Mid-Level - [ビルドと最適化](https://sharpskill.dev/ja/technologies/angular/interview-questions/build-optimization.md): 20問, Mid-Level - [NgRxの基礎](https://sharpskill.dev/ja/technologies/angular/interview-questions/ngrx-fundamentals.md): 24問, Senior - [NgRx応用](https://sharpskill.dev/ja/technologies/angular/interview-questions/ngrx-advanced.md): 24問, Senior - [Angularアーキテクチャ](https://sharpskill.dev/ja/technologies/angular/interview-questions/angular-architecture.md): 22問, Senior - [パフォーマンス最適化](https://sharpskill.dev/ja/technologies/angular/interview-questions/performance-optimization.md): 22問, Senior - [セキュリティとベストプラクティス](https://sharpskill.dev/ja/technologies/angular/interview-questions/security-best-practices.md): 20問, Senior - [高度な RxJS パターン](https://sharpskill.dev/ja/technologies/angular/interview-questions/advanced-rxjs-patterns.md): 22問, Senior - [Angular Universal と SSR](https://sharpskill.dev/ja/technologies/angular/interview-questions/angular-universal-ssr.md): 20問, Senior - [Angular マイクロフロントエンド](https://sharpskill.dev/ja/technologies/angular/interview-questions/micro-frontends-angular.md): 20問, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/ja/technologies/angular/interview-questions/angular-cli