Rename project to greenvironment

master
trivernis 5 years ago
parent 032d0f295d
commit 3f5897932e

@ -3,7 +3,7 @@
"version": 1,
"newProjectRoot": "projects",
"projects": {
"socket-app": {
"greenvironment": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
@ -17,7 +17,7 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/socket-app",
"outputPath": "dist/greenvironment",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
@ -62,18 +62,18 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "socket-app:build"
"browserTarget": "greenvironment:build"
},
"configurations": {
"production": {
"browserTarget": "socket-app:build:production"
"browserTarget": "greenvironment:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "socket-app:build"
"browserTarget": "greenvironment:build"
}
},
"test": {
@ -108,7 +108,7 @@
}
}
},
"socket-app-e2e": {
"greenvironment-e2e": {
"root": "e2e/",
"projectType": "application",
"prefix": "",
@ -117,11 +117,11 @@
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "socket-app:serve"
"devServerTarget": "greenvironment:serve"
},
"configurations": {
"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', () => {
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",
"lockfileVersion": 1,
"requires": true,

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

@ -16,16 +16,16 @@ describe('AppComponent', () => {
expect(app).toBeTruthy();
});
it(`should have as title 'socket-app'`, () => {
it(`should have as title 'greenvironment'`, () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance;
expect(app.title).toEqual('socket-app');
expect(app.title).toEqual('greenvironment');
});
it('should render title in a h1 tag', () => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
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