Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Angular CLI

Angular CLI

Alejandra Bustos

July 16, 2016
Tweet

More Decks by Alejandra Bustos

Other Decks in Programming

Transcript

  1. Configuración Angular 2 • Crear la estructura del proyecto •

    Instalar y configurar Typescript • Configurar System.js • Creación de componentes
  2. // configuration files |- config/ |----- environment.dev.ts |----- environment.js |-----

    environment.prod.ts |----- karma-test-shim.js |----- karma.conf.js |----- protractor.conf.js // end-to-end-tests |- e2e/ |----- app.e2e.ts |----- app.po.ts |----- tsconfig.json |----- typings.d.ts // npm dependencies |- node_modules/ // public facing app. built things go here |- public/ // where most of the work will be done |- src/ |----- app/ |----- shared/ |----- index.ts |----- environment.ts |----- index.ts // our first generated component |----- project_name.component.css|html|spec.ts|ts |----- favicon.ico |----- icon.png |----- index.html |----- main.ts |----- manifest.webapp |----- system-config.ts |----- tsconfig.json |----- typings.d.ts // overall configuration |- typings/ |- .clang-format |- .editorconfig |- .gitignore |- angular-cli-build.js
  3. ng generate Component ng g component my-new-component Directive ng g

    directive my-new-directive Pipe ng g pipe my-new-pipe Service ng g service my-new-service Class ng g class my-new-class Interface ng g interface my-new-interface Enum ng g enum my-new-enum
  4. Integración con CSS • sass (node-sass) • less (less) •

    compass (compass-importer + node-sass) • stylus (stylus) npm install node-sass