Rename project to greenvironment

master
trivernis 5 years ago
parent 032d0f295d
commit 3f5897932e

@ -3,7 +3,7 @@
"version": 1, "version": 1,
"newProjectRoot": "projects", "newProjectRoot": "projects",
"projects": { "projects": {
"socket-app": { "greenvironment": {
"root": "", "root": "",
"sourceRoot": "src", "sourceRoot": "src",
"projectType": "application", "projectType": "application",
@ -17,7 +17,7 @@
"build": { "build": {
"builder": "@angular-devkit/build-angular:browser", "builder": "@angular-devkit/build-angular:browser",
"options": { "options": {
"outputPath": "dist/socket-app", "outputPath": "dist/greenvironment",
"index": "src/index.html", "index": "src/index.html",
"main": "src/main.ts", "main": "src/main.ts",
"polyfills": "src/polyfills.ts", "polyfills": "src/polyfills.ts",
@ -62,18 +62,18 @@
"serve": { "serve": {
"builder": "@angular-devkit/build-angular:dev-server", "builder": "@angular-devkit/build-angular:dev-server",
"options": { "options": {
"browserTarget": "socket-app:build" "browserTarget": "greenvironment:build"
}, },
"configurations": { "configurations": {
"production": { "production": {
"browserTarget": "socket-app:build:production" "browserTarget": "greenvironment:build:production"
} }
} }
}, },
"extract-i18n": { "extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n", "builder": "@angular-devkit/build-angular:extract-i18n",
"options": { "options": {
"browserTarget": "socket-app:build" "browserTarget": "greenvironment:build"
} }
}, },
"test": { "test": {
@ -108,7 +108,7 @@
} }
} }
}, },
"socket-app-e2e": { "greenvironment-e2e": {
"root": "e2e/", "root": "e2e/",
"projectType": "application", "projectType": "application",
"prefix": "", "prefix": "",
@ -117,11 +117,11 @@
"builder": "@angular-devkit/build-angular:protractor", "builder": "@angular-devkit/build-angular:protractor",
"options": { "options": {
"protractorConfig": "e2e/protractor.conf.js", "protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "socket-app:serve" "devServerTarget": "greenvironment:serve"
}, },
"configurations": { "configurations": {
"production": { "production": {
"devServerTarget": "socket-app:serve:production" "devServerTarget": "greenvironment:serve:production"
} }
} }
}, },
@ -137,5 +137,5 @@
} }
} }
}, },
"defaultProject": "socket-app" "defaultProject": "greenvironment"
} }

@ -9,6 +9,6 @@ describe('workspace-project App', () => {
it('should display welcome message', () => { it('should display welcome message', () => {
page.navigateTo(); page.navigateTo();
expect(page.getParagraphText()).toEqual('Welcome to socket-app!'); expect(page.getParagraphText()).toEqual('Welcome to greenvironment!');
}); });
}); });

2
package-lock.json generated

@ -1,5 +1,5 @@
{ {
"name": "socket-app", "name": "greenvironment",
"version": "0.0.0", "version": "0.0.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,

@ -1,5 +1,5 @@
{ {
"name": "socket-app", "name": "greenvironment",
"version": "0.0.0", "version": "0.0.0",
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",

@ -16,16 +16,16 @@ describe('AppComponent', () => {
expect(app).toBeTruthy(); expect(app).toBeTruthy();
}); });
it(`should have as title 'socket-app'`, () => { it(`should have as title 'greenvironment'`, () => {
const fixture = TestBed.createComponent(AppComponent); const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance; const app = fixture.debugElement.componentInstance;
expect(app.title).toEqual('socket-app'); expect(app.title).toEqual('greenvironment');
}); });
it('should render title in a h1 tag', () => { it('should render title in a h1 tag', () => {
const fixture = TestBed.createComponent(AppComponent); const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges(); fixture.detectChanges();
const compiled = fixture.debugElement.nativeElement; const compiled = fixture.debugElement.nativeElement;
expect(compiled.querySelector('h1').textContent).toContain('Welcome to socket-app!'); expect(compiled.querySelector('h1').textContent).toContain('Welcome to greenvironment!');
}); });
}); });

Loading…
Cancel
Save