Skip to content

Commit f5808f6

Browse files
committed
Renombra el proyecto de 'reactive-forms-app' a 'reactive-forms' en archivos de configuración
1 parent 9b745f6 commit f5808f6

5 files changed

Lines changed: 12 additions & 11 deletions

File tree

angular.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": 1,
44
"newProjectRoot": "projects",
55
"projects": {
6-
"reactive-forms-app": {
6+
"reactive-forms": {
77
"projectType": "application",
88
"schematics": {},
99
"root": "",
@@ -13,7 +13,7 @@
1313
"build": {
1414
"builder": "@angular-devkit/build-angular:application",
1515
"options": {
16-
"outputPath": "dist/reactive-forms-app",
16+
"outputPath": "dist/reactive-forms",
1717
"index": "src/index.html",
1818
"browser": "src/main.ts",
1919
"polyfills": [
@@ -59,10 +59,10 @@
5959
"builder": "@angular-devkit/build-angular:dev-server",
6060
"configurations": {
6161
"production": {
62-
"buildTarget": "reactive-forms-app:build:production"
62+
"buildTarget": "reactive-forms:build:production"
6363
},
6464
"development": {
65-
"buildTarget": "reactive-forms-app:build:development"
65+
"buildTarget": "reactive-forms:build:development"
6666
}
6767
},
6868
"defaultConfiguration": "development"

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
2-
"name": "reactive-forms-app",
2+
"name": "reactive-forms",
33
"version": "0.0.0",
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",
77
"build": "ng build",
8+
"build:prod": "ng build --configuration production --base-href /reactive-forms/",
89
"watch": "ng build --watch --configuration development",
910
"test": "ng test"
1011
},

src/app/app.component.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ describe('AppComponent', () => {
1414
expect(app).toBeTruthy();
1515
});
1616

17-
it(`should have the 'reactive-forms-app' title`, () => {
17+
it(`should have the 'reactive-forms' title`, () => {
1818
const fixture = TestBed.createComponent(AppComponent);
1919
const app = fixture.componentInstance;
20-
expect(app.title).toEqual('reactive-forms-app');
20+
expect(app.title).toEqual('reactive-forms');
2121
});
2222

2323
it('should render title', () => {
2424
const fixture = TestBed.createComponent(AppComponent);
2525
fixture.detectChanges();
2626
const compiled = fixture.nativeElement as HTMLElement;
27-
expect(compiled.querySelector('h1')?.textContent).toContain('Hello, reactive-forms-app');
27+
expect(compiled.querySelector('h1')?.textContent).toContain('Hello, reactive-forms');
2828
});
2929
});

src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ import { SideMenuComponent } from './shared/components/side-menu/side-menu.compo
99
styleUrl: './app.component.css',
1010
})
1111
export class AppComponent {
12-
title = 'reactive-forms-app';
12+
title = 'reactive-forms';
1313
}

0 commit comments

Comments
 (0)