사용자 도구

사이트 도구


angular:angular-cli

Angular CLI

Angular CLI1)기반으로 angular이용을 효율적으로 할 수 있다.

Package의 추가 및 업데이트

ng update <package>

  • analyses your package.json
  • recommend updates to your application
  • 3rd parties can provide update scripts using schematis
  • automatically update your code

ng add

  • add new capabilities to your application
  • ng add @angular/material

Support for multiple projects

angular.json instead of .angular-cli.json

{
  "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  "version": 1,
  "newProjectRoot": "projects",
  "projects": {
    "routing-demo": {...
    },
    "services-and-http": {...
    }
   },
  "defaultProject": "routing-demo",
  "schematies": {..
  }
}

ng generate

심벌기반의 파일을 생성 또는 수정한다. ng generate <schemectic> [options]

ng g c about
ng g library @ng-maro-forms/modal

schemetic

아래의 것들중에 하나를 사용한다.

  • appShell
  • application
  • class
  • component
  • directive
  • enum
  • guard
  • interface
  • library
  • module
  • pipe
  • service
  • serviceWorker
  • universal
  • webWorker
1)
CLI -Command-Line Interface or Command-Line user Interface은 TUI(Text User Interface)나 GUI(Graphic User Interface)와는 다른 개념으로 pipe와 shell script로 다양하게 사용될 수 있다.
angular/angular-cli.txt · 마지막으로 수정됨: 2025/04/15 10:05 저자 127.0.0.1