Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Angular CLI
Search
Alejandra Bustos
July 16, 2016
Programming
420
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Angular CLI
Alejandra Bustos
July 16, 2016
Transcript
14 slides
Angular CLI A command line interface for Angular
Configuración Angular 2 • Crear la estructura del proyecto •
Instalar y configurar Typescript • Configurar System.js • Creación de componentes
None
None
¡Empecemos! npm install -g angular-cli ng new PROJECT_NAME
// 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
None
ng new OPTIONS --dry-run --verbose --skip-npm --skip-git --directory
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
ng serve http://localhost:4200/ ng serve --port 4201 --live-reload-port 49153
Testing ng test
GitHub Pages ng github-pages:deploy --message "Optional commit message"
Integración con CSS • sass (node-sass) • less (less) •
compass (compass-importer + node-sass) • stylus (stylus) npm install node-sass
Importante https://cli.angular.io/ https://github.com/angular/angular-cli
More Decks by Alejandra Bustos
See All by Alejandra Bustos
Saca tu potencial contribuyendo a proyectos Open Source
alessbn
0
300
Other Decks in Programming
See All in Programming
The Cost of the DOM
ypresto
7
4.1k
Engineering Biometric UX Across Android Versions | DroidKnights 2026
ryunen344
1
220
RaspberryPi 5で軽くはじめるk3sとtailscaleを用いたホームサーバー構築 (1)
nasum
0
450
はじめてのPLATEAU
nokonoko1203
1
680
protojson における文字化けの扱い
kazuki1023
0
470
Scalaの型でマルチテナントの認可を守る
nextbeatdev
0
180
LLM 101: Exploring LLMs, Starting with Tokens.
dalinaum
0
120
LLM 101
dalinaum
0
560
高橋メソッドでCVE解説シリーズ 〜CVE-2026-112816〜
hakkadaikon
0
280
선언형 햅틱 라이브러리 진동을 소개합니다
l2hyunwoo
1
330
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
240
Claude Codeのおかげでやりたいことがやれるようになったんだよォー!
sms_tech
0
200
Featured
See All Featured
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
A better future with KSS
kneath
240
18k
For a Future-Friendly Web
brad_frost
184
11k
Visualization
eitanlees
153
17k
We Have a Design System, Now What?
morganepeng
55
8.4k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
620
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
20k
Into the Great Unknown - MozCon
thekraken
41
2.8k
A Modern Web Designer's Workflow
chriscoyier
699
190k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
990
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.2k
From π to Pie charts
rasagy
1
460