├── src
├── assets
│ └── .gitkeep
├── app
│ ├── app.component.css
│ ├── auth
│ │ ├── login
│ │ │ ├── login.component.css
│ │ │ ├── login.component.html
│ │ │ └── login.component.ts
│ │ ├── register
│ │ │ ├── register.component.css
│ │ │ ├── register.component.html
│ │ │ └── register.component.ts
│ │ └── auth.routes.ts
│ ├── admin
│ │ ├── calendar
│ │ │ ├── calendar.component.css
│ │ │ ├── calendar.component.html
│ │ │ └── calendar.component.ts
│ │ ├── dashboard
│ │ │ ├── dashboard.component.css
│ │ │ ├── dashboard.component.html
│ │ │ └── dashboard.component.ts
│ │ ├── admin-layout
│ │ │ ├── admin-layout.component.css
│ │ │ ├── admin-layout.component.html
│ │ │ └── admin-layout.component.ts
│ │ └── admin.routes.ts
│ ├── shared
│ │ └── components
│ │ │ ├── footer
│ │ │ ├── footer.component.css
│ │ │ ├── footer.component.html
│ │ │ └── footer.component.ts
│ │ │ └── nav-bar
│ │ │ ├── nav-bar.component.css
│ │ │ ├── nav-bar.component.ts
│ │ │ └── nav-bar.component.html
│ ├── articles
│ │ ├── article-list
│ │ │ ├── article-list.component.css
│ │ │ ├── article-list.component.html
│ │ │ └── article-list.component.ts
│ │ ├── article-detail
│ │ │ ├── article-detail.component.css
│ │ │ ├── article-detail.component.html
│ │ │ └── article-detail.component.ts
│ │ └── articles.routes.ts
│ ├── app.component.html
│ ├── core
│ │ ├── guards
│ │ │ └── logged.guard.ts
│ │ ├── interceptors
│ │ │ └── auth.interceptor.ts
│ │ ├── services
│ │ │ └── articles.service.ts
│ │ └── models
│ │ │ └── article.interface.ts
│ ├── app.config.ts
│ ├── app.routes.ts
│ └── app.component.ts
├── favicon.ico
├── styles.css
├── main.ts
└── index.html
├── .vscode
├── extensions.json
├── launch.json
└── tasks.json
├── tsconfig.app.json
├── tsconfig.spec.json
├── .editorconfig
├── .gitignore
├── tsconfig.json
├── README.md
├── package.json
└── angular.json
/src/assets/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/app/app.component.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/app/auth/login/login.component.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/app/admin/calendar/calendar.component.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/app/admin/dashboard/dashboard.component.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/app/auth/register/register.component.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/app/admin/admin-layout/admin-layout.component.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/app/shared/components/footer/footer.component.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/app/articles/article-list/article-list.component.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/app/articles/article-detail/article-detail.component.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/app/auth/login/login.component.html:
--------------------------------------------------------------------------------
1 |
Formulario para login de usuario
--------------------------------------------------------------------------------
/src/app/articles/article-detail/article-detail.component.html:
--------------------------------------------------------------------------------
1 | Detalle de artículo
--------------------------------------------------------------------------------
/src/app/auth/register/register.component.html:
--------------------------------------------------------------------------------
1 | Formulario de registro de usuarios
--------------------------------------------------------------------------------
/src/app/admin/calendar/calendar.component.html:
--------------------------------------------------------------------------------
1 | Calendario de la zona de administración
--------------------------------------------------------------------------------
/src/app/articles/article-list/article-list.component.html:
--------------------------------------------------------------------------------
1 | Lista de artículos publicados
--------------------------------------------------------------------------------
/src/app/admin/dashboard/dashboard.component.html:
--------------------------------------------------------------------------------
1 | Dashboard principal de la zona de administración
--------------------------------------------------------------------------------
/src/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GarajedeIdeas/AngularArquitectura/HEAD/src/favicon.ico
--------------------------------------------------------------------------------
/src/app/admin/admin-layout/admin-layout.component.html:
--------------------------------------------------------------------------------
1 | LAYOUT ADMIN
2 |
--------------------------------------------------------------------------------
/src/app/shared/components/footer/footer.component.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/app/app.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Cabecera principal
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
3 | "recommendations": ["angular.ng-template"]
4 | }
5 |
--------------------------------------------------------------------------------
/src/app/core/guards/logged.guard.ts:
--------------------------------------------------------------------------------
1 | import { CanActivateFn } from '@angular/router';
2 |
3 | export const loggedGuard: CanActivateFn = (route, state) => {
4 | return true;
5 | };
6 |
--------------------------------------------------------------------------------
/src/app/core/interceptors/auth.interceptor.ts:
--------------------------------------------------------------------------------
1 | import { HttpInterceptorFn } from '@angular/common/http';
2 |
3 | export const authInterceptor: HttpInterceptorFn = (req, next) => {
4 | return next(req);
5 | };
6 |
--------------------------------------------------------------------------------
/src/styles.css:
--------------------------------------------------------------------------------
1 | /* You can add global styles to this file, and also import other style files */
2 | body {
3 | height: 90vh;
4 | display: flex;
5 | justify-content: center;
6 | align-items: center;
7 | }
--------------------------------------------------------------------------------
/src/app/core/services/articles.service.ts:
--------------------------------------------------------------------------------
1 | import { Injectable } from '@angular/core';
2 |
3 | @Injectable({
4 | providedIn: 'root'
5 | })
6 | export class ArticlesService {
7 |
8 | constructor() { }
9 | }
10 |
--------------------------------------------------------------------------------
/src/app/core/models/article.interface.ts:
--------------------------------------------------------------------------------
1 | export interface Article {
2 | id: string;
3 | title: string;
4 | description: string;
5 | body: string;
6 | author: string;
7 | published: boolean;
8 | createdAt: Date;
9 | }
--------------------------------------------------------------------------------
/src/app/shared/components/nav-bar/nav-bar.component.css:
--------------------------------------------------------------------------------
1 | ul {
2 | display: flex;
3 | list-style-type: none;
4 | gap: 20px;
5 |
6 | li {
7 | background-color: lightblue;
8 | padding: 10px 20px;
9 | cursor: pointer;
10 | }
11 | }
--------------------------------------------------------------------------------
/src/main.ts:
--------------------------------------------------------------------------------
1 | import { bootstrapApplication } from '@angular/platform-browser';
2 | import { appConfig } from './app/app.config';
3 | import { AppComponent } from './app/app.component';
4 |
5 | bootstrapApplication(AppComponent, appConfig)
6 | .catch((err) => console.error(err));
7 |
--------------------------------------------------------------------------------
/src/app/auth/login/login.component.ts:
--------------------------------------------------------------------------------
1 | import { Component } from '@angular/core';
2 |
3 | @Component({
4 | selector: 'app-login',
5 | standalone: true,
6 | imports: [],
7 | templateUrl: './login.component.html',
8 | styleUrl: './login.component.css'
9 | })
10 | export class LoginComponent {
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/src/app/admin/calendar/calendar.component.ts:
--------------------------------------------------------------------------------
1 | import { Component } from '@angular/core';
2 |
3 | @Component({
4 | selector: 'app-calendar',
5 | standalone: true,
6 | imports: [],
7 | templateUrl: './calendar.component.html',
8 | styleUrl: './calendar.component.css'
9 | })
10 | export class CalendarComponent {
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/src/app/auth/register/register.component.ts:
--------------------------------------------------------------------------------
1 | import { Component } from '@angular/core';
2 |
3 | @Component({
4 | selector: 'app-register',
5 | standalone: true,
6 | imports: [],
7 | templateUrl: './register.component.html',
8 | styleUrl: './register.component.css'
9 | })
10 | export class RegisterComponent {
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/src/app/shared/components/footer/footer.component.ts:
--------------------------------------------------------------------------------
1 | import { Component } from '@angular/core';
2 |
3 | @Component({
4 | selector: 'app-footer',
5 | standalone: true,
6 | imports: [],
7 | templateUrl: './footer.component.html',
8 | styleUrl: './footer.component.css'
9 | })
10 | export class FooterComponent {
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/src/app/admin/dashboard/dashboard.component.ts:
--------------------------------------------------------------------------------
1 | import { Component } from '@angular/core';
2 |
3 | @Component({
4 | selector: 'app-dashboard',
5 | standalone: true,
6 | imports: [],
7 | templateUrl: './dashboard.component.html',
8 | styleUrl: './dashboard.component.css'
9 | })
10 | export class DashboardComponent {
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/tsconfig.app.json:
--------------------------------------------------------------------------------
1 | /* To learn more about this file see: https://angular.io/config/tsconfig. */
2 | {
3 | "extends": "./tsconfig.json",
4 | "compilerOptions": {
5 | "outDir": "./out-tsc/app",
6 | "types": []
7 | },
8 | "files": [
9 | "src/main.ts"
10 | ],
11 | "include": [
12 | "src/**/*.d.ts"
13 | ]
14 | }
15 |
--------------------------------------------------------------------------------
/tsconfig.spec.json:
--------------------------------------------------------------------------------
1 | /* To learn more about this file see: https://angular.io/config/tsconfig. */
2 | {
3 | "extends": "./tsconfig.json",
4 | "compilerOptions": {
5 | "outDir": "./out-tsc/spec",
6 | "types": [
7 | "jasmine"
8 | ]
9 | },
10 | "include": [
11 | "src/**/*.spec.ts",
12 | "src/**/*.d.ts"
13 | ]
14 | }
15 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | # Editor configuration, see https://editorconfig.org
2 | root = true
3 |
4 | [*]
5 | charset = utf-8
6 | indent_style = space
7 | indent_size = 2
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
11 | [*.ts]
12 | quote_type = single
13 |
14 | [*.md]
15 | max_line_length = off
16 | trim_trailing_whitespace = false
17 |
--------------------------------------------------------------------------------
/src/app/auth/auth.routes.ts:
--------------------------------------------------------------------------------
1 | import { Routes } from "@angular/router";
2 | import { RegisterComponent } from "./register/register.component";
3 | import { LoginComponent } from "./login/login.component";
4 |
5 | export const AUTH_ROUTES: Routes = [
6 | { path: 'register', component: RegisterComponent },
7 | { path: 'login', component: LoginComponent }
8 | ];
--------------------------------------------------------------------------------
/src/app/articles/article-list/article-list.component.ts:
--------------------------------------------------------------------------------
1 | import { Component } from '@angular/core';
2 |
3 | @Component({
4 | selector: 'app-article-list',
5 | standalone: true,
6 | imports: [],
7 | templateUrl: './article-list.component.html',
8 | styleUrl: './article-list.component.css'
9 | })
10 | export class ArticleListComponent {
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/src/app/articles/article-detail/article-detail.component.ts:
--------------------------------------------------------------------------------
1 | import { Component } from '@angular/core';
2 |
3 | @Component({
4 | selector: 'app-article-detail',
5 | standalone: true,
6 | imports: [],
7 | templateUrl: './article-detail.component.html',
8 | styleUrl: './article-detail.component.css'
9 | })
10 | export class ArticleDetailComponent {
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/src/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AngularArquitectura
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/app/shared/components/nav-bar/nav-bar.component.ts:
--------------------------------------------------------------------------------
1 | import { Component } from '@angular/core';
2 | import { RouterLink } from '@angular/router';
3 |
4 | @Component({
5 | selector: 'app-nav-bar',
6 | standalone: true,
7 | imports: [RouterLink],
8 | templateUrl: './nav-bar.component.html',
9 | styleUrl: './nav-bar.component.css'
10 | })
11 | export class NavBarComponent {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/src/app/articles/articles.routes.ts:
--------------------------------------------------------------------------------
1 | import { Routes } from '@angular/router';
2 | import { ArticleListComponent } from './article-list/article-list.component';
3 | import { ArticleDetailComponent } from './article-detail/article-detail.component';
4 |
5 | export const ARTICLES_ROUTES: Routes = [
6 | { path: '', component: ArticleListComponent },
7 | { path: ':slug', component: ArticleDetailComponent }
8 | ];
9 |
--------------------------------------------------------------------------------
/src/app/admin/admin-layout/admin-layout.component.ts:
--------------------------------------------------------------------------------
1 | import { Component } from '@angular/core';
2 | import { RouterOutlet } from '@angular/router';
3 |
4 | @Component({
5 | selector: 'app-admin-layout',
6 | standalone: true,
7 | imports: [RouterOutlet],
8 | templateUrl: './admin-layout.component.html',
9 | styleUrl: './admin-layout.component.css'
10 | })
11 | export class AdminLayoutComponent {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/src/app/app.config.ts:
--------------------------------------------------------------------------------
1 | import { ApplicationConfig } from '@angular/core';
2 | import { provideRouter } from '@angular/router';
3 |
4 | import { routes } from './app.routes';
5 | import { provideHttpClient, withInterceptors } from '@angular/common/http';
6 | import { authInterceptor } from './core/interceptors/auth.interceptor';
7 |
8 | export const appConfig: ApplicationConfig = {
9 | providers: [
10 | provideRouter(routes),
11 | provideHttpClient(
12 | withInterceptors([authInterceptor])
13 | )
14 | ]
15 | };
16 |
--------------------------------------------------------------------------------
/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
3 | "version": "0.2.0",
4 | "configurations": [
5 | {
6 | "name": "ng serve",
7 | "type": "chrome",
8 | "request": "launch",
9 | "preLaunchTask": "npm: start",
10 | "url": "http://localhost:4200/"
11 | },
12 | {
13 | "name": "ng test",
14 | "type": "chrome",
15 | "request": "launch",
16 | "preLaunchTask": "npm: test",
17 | "url": "http://localhost:9876/debug.html"
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/src/app/admin/admin.routes.ts:
--------------------------------------------------------------------------------
1 | import { Routes } from '@angular/router';
2 | import { DashboardComponent } from './dashboard/dashboard.component';
3 | import { CalendarComponent } from './calendar/calendar.component';
4 | import { AdminLayoutComponent } from './admin-layout/admin-layout.component';
5 |
6 | export const ADMIN_ROUTES: Routes = [
7 | {
8 | path: '', component: AdminLayoutComponent, children: [
9 | { path: '', component: DashboardComponent },
10 | { path: 'calendar', component: CalendarComponent }
11 | ]
12 | }
13 | ];
14 |
--------------------------------------------------------------------------------
/src/app/app.routes.ts:
--------------------------------------------------------------------------------
1 | import { Routes } from '@angular/router';
2 | import { loggedGuard } from './core/guards/logged.guard';
3 |
4 | export const routes: Routes = [
5 | {
6 | path: '',
7 | loadChildren: () => import('./auth/auth.routes').then(m => m.AUTH_ROUTES),
8 | canActivate: [loggedGuard]
9 | },
10 | {
11 | path: 'articles',
12 | loadChildren: () => import('./articles/articles.routes').then(m => m.ARTICLES_ROUTES)
13 | },
14 | {
15 | path: 'dashboard',
16 | loadChildren: () => import('./admin/admin.routes').then(m => m.ADMIN_ROUTES)
17 | }
18 | ];
--------------------------------------------------------------------------------
/src/app/shared/components/nav-bar/nav-bar.component.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/app/app.component.ts:
--------------------------------------------------------------------------------
1 | import { Component } from '@angular/core';
2 | import { CommonModule } from '@angular/common';
3 | import { RouterOutlet } from '@angular/router';
4 | import { NavBarComponent } from './shared/components/nav-bar/nav-bar.component';
5 | import { FooterComponent } from './shared/components/footer/footer.component';
6 |
7 | @Component({
8 | selector: 'app-root',
9 | standalone: true,
10 | imports: [CommonModule, RouterOutlet, NavBarComponent, FooterComponent],
11 | templateUrl: './app.component.html',
12 | styleUrl: './app.component.css'
13 | })
14 | export class AppComponent {
15 | title = 'AngularArquitectura';
16 | }
17 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # See http://help.github.com/ignore-files/ for more about ignoring files.
2 |
3 | # Compiled output
4 | /dist
5 | /tmp
6 | /out-tsc
7 | /bazel-out
8 |
9 | # Node
10 | /node_modules
11 | npm-debug.log
12 | yarn-error.log
13 |
14 | # IDEs and editors
15 | .idea/
16 | .project
17 | .classpath
18 | .c9/
19 | *.launch
20 | .settings/
21 | *.sublime-workspace
22 |
23 | # Visual Studio Code
24 | .vscode/*
25 | !.vscode/settings.json
26 | !.vscode/tasks.json
27 | !.vscode/launch.json
28 | !.vscode/extensions.json
29 | .history/*
30 |
31 | # Miscellaneous
32 | /.angular/cache
33 | .sass-cache/
34 | /connect.lock
35 | /coverage
36 | /libpeerconnection.log
37 | testem.log
38 | /typings
39 |
40 | # System files
41 | .DS_Store
42 | Thumbs.db
43 |
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | /* To learn more about this file see: https://angular.io/config/tsconfig. */
2 | {
3 | "compileOnSave": false,
4 | "compilerOptions": {
5 | "outDir": "./dist/out-tsc",
6 | "forceConsistentCasingInFileNames": true,
7 | "strict": true,
8 | "noImplicitOverride": true,
9 | "noPropertyAccessFromIndexSignature": true,
10 | "noImplicitReturns": true,
11 | "noFallthroughCasesInSwitch": true,
12 | "skipLibCheck": true,
13 | "esModuleInterop": true,
14 | "sourceMap": true,
15 | "declaration": false,
16 | "experimentalDecorators": true,
17 | "moduleResolution": "node",
18 | "importHelpers": true,
19 | "target": "ES2022",
20 | "module": "ES2022",
21 | "useDefineForClassFields": false,
22 | "lib": [
23 | "ES2022",
24 | "dom"
25 | ]
26 | },
27 | "angularCompilerOptions": {
28 | "enableI18nLegacyMessageIdFormat": false,
29 | "strictInjectionParameters": true,
30 | "strictInputAccessModifiers": true,
31 | "strictTemplates": true
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | {
2 | // For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
3 | "version": "2.0.0",
4 | "tasks": [
5 | {
6 | "type": "npm",
7 | "script": "start",
8 | "isBackground": true,
9 | "problemMatcher": {
10 | "owner": "typescript",
11 | "pattern": "$tsc",
12 | "background": {
13 | "activeOnStart": true,
14 | "beginsPattern": {
15 | "regexp": "(.*?)"
16 | },
17 | "endsPattern": {
18 | "regexp": "bundle generation complete"
19 | }
20 | }
21 | }
22 | },
23 | {
24 | "type": "npm",
25 | "script": "test",
26 | "isBackground": true,
27 | "problemMatcher": {
28 | "owner": "typescript",
29 | "pattern": "$tsc",
30 | "background": {
31 | "activeOnStart": true,
32 | "beginsPattern": {
33 | "regexp": "(.*?)"
34 | },
35 | "endsPattern": {
36 | "regexp": "bundle generation complete"
37 | }
38 | }
39 | }
40 | }
41 | ]
42 | }
43 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # AngularArquitectura
2 |
3 | This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.0.10.
4 |
5 | ## Development server
6 |
7 | Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
8 |
9 | ## Code scaffolding
10 |
11 | Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
12 |
13 | ## Build
14 |
15 | Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
16 |
17 | ## Running unit tests
18 |
19 | Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
20 |
21 | ## Running end-to-end tests
22 |
23 | Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
24 |
25 | ## Further help
26 |
27 | To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
28 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "angular-arquitectura",
3 | "version": "0.0.0",
4 | "scripts": {
5 | "ng": "ng",
6 | "start": "ng serve",
7 | "build": "ng build",
8 | "watch": "ng build --watch --configuration development",
9 | "test": "ng test"
10 | },
11 | "private": true,
12 | "dependencies": {
13 | "@angular/animations": "^17.0.0",
14 | "@angular/common": "^17.0.0",
15 | "@angular/compiler": "^17.0.0",
16 | "@angular/core": "^17.0.0",
17 | "@angular/forms": "^17.0.0",
18 | "@angular/platform-browser": "^17.0.0",
19 | "@angular/platform-browser-dynamic": "^17.0.0",
20 | "@angular/router": "^17.0.0",
21 | "rxjs": "~7.8.0",
22 | "tslib": "^2.3.0",
23 | "zone.js": "~0.14.2"
24 | },
25 | "devDependencies": {
26 | "@angular-devkit/build-angular": "^17.0.10",
27 | "@angular/cli": "^17.0.10",
28 | "@angular/compiler-cli": "^17.0.0",
29 | "@types/jasmine": "~5.1.0",
30 | "jasmine-core": "~5.1.0",
31 | "karma": "~6.4.0",
32 | "karma-chrome-launcher": "~3.2.0",
33 | "karma-coverage": "~2.2.0",
34 | "karma-jasmine": "~5.1.0",
35 | "karma-jasmine-html-reporter": "~2.1.0",
36 | "typescript": "~5.2.2"
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/angular.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3 | "version": 1,
4 | "newProjectRoot": "projects",
5 | "projects": {
6 | "AngularArquitectura": {
7 | "projectType": "application",
8 | "schematics": {},
9 | "root": "",
10 | "sourceRoot": "src",
11 | "prefix": "app",
12 | "architect": {
13 | "build": {
14 | "builder": "@angular-devkit/build-angular:application",
15 | "options": {
16 | "outputPath": "dist/angular-arquitectura",
17 | "index": "src/index.html",
18 | "browser": "src/main.ts",
19 | "polyfills": [
20 | "zone.js"
21 | ],
22 | "tsConfig": "tsconfig.app.json",
23 | "assets": [
24 | "src/favicon.ico",
25 | "src/assets"
26 | ],
27 | "styles": [
28 | "src/styles.css"
29 | ],
30 | "scripts": []
31 | },
32 | "configurations": {
33 | "production": {
34 | "budgets": [
35 | {
36 | "type": "initial",
37 | "maximumWarning": "500kb",
38 | "maximumError": "1mb"
39 | },
40 | {
41 | "type": "anyComponentStyle",
42 | "maximumWarning": "2kb",
43 | "maximumError": "4kb"
44 | }
45 | ],
46 | "outputHashing": "all"
47 | },
48 | "development": {
49 | "optimization": false,
50 | "extractLicenses": false,
51 | "sourceMap": true
52 | }
53 | },
54 | "defaultConfiguration": "production"
55 | },
56 | "serve": {
57 | "builder": "@angular-devkit/build-angular:dev-server",
58 | "configurations": {
59 | "production": {
60 | "buildTarget": "AngularArquitectura:build:production"
61 | },
62 | "development": {
63 | "buildTarget": "AngularArquitectura:build:development"
64 | }
65 | },
66 | "defaultConfiguration": "development"
67 | },
68 | "extract-i18n": {
69 | "builder": "@angular-devkit/build-angular:extract-i18n",
70 | "options": {
71 | "buildTarget": "AngularArquitectura:build"
72 | }
73 | },
74 | "test": {
75 | "builder": "@angular-devkit/build-angular:karma",
76 | "options": {
77 | "polyfills": [
78 | "zone.js",
79 | "zone.js/testing"
80 | ],
81 | "tsConfig": "tsconfig.spec.json",
82 | "assets": [
83 | "src/favicon.ico",
84 | "src/assets"
85 | ],
86 | "styles": [
87 | "src/styles.css"
88 | ],
89 | "scripts": []
90 | }
91 | }
92 | }
93 | }
94 | }
95 | }
96 |
--------------------------------------------------------------------------------