Skip to content

Commit

Permalink
rename/refactor app name
Browse files Browse the repository at this point in the history
  • Loading branch information
janschulte committed Feb 12, 2020
1 parent 940bcae commit 64d8631
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ RUN npm run build:prod

FROM nginx:1.17.8-alpine
COPY nginx/default.conf /etc/nginx/conf.d
COPY --from=builder /app/dist/frontend /usr/share/nginx/html
COPY --from=builder /app/dist/mviz-demonstrator /usr/share/nginx/html
# the container can be started like this: docker run -p 80:80 -e PORT=80 mviz-demonstrator
CMD sed -i -e 's/$PORT/'"$PORT"'/g' /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Frontend
# mviz-demonstrator

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.3.19.

Expand Down
16 changes: 8 additions & 8 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": 1,
"newProjectRoot": "projects",
"projects": {
"frontend": {
"mviz-demonstrator": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
Expand All @@ -17,7 +17,7 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/frontend",
"outputPath": "dist/mviz-demonstrator",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
Expand Down Expand Up @@ -67,18 +67,18 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "frontend:build"
"browserTarget": "mviz-demonstrator:build"
},
"configurations": {
"production": {
"browserTarget": "frontend:build:production"
"browserTarget": "mviz-demonstrator:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "frontend:build"
"browserTarget": "mviz-demonstrator:build"
}
},
"test": {
Expand Down Expand Up @@ -115,15 +115,15 @@
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "frontend:serve"
"devServerTarget": "mviz-demonstrator:serve"
},
"configurations": {
"production": {
"devServerTarget": "frontend:serve:production"
"devServerTarget": "mviz-demonstrator:serve:production"
}
}
}
}
}},
"defaultProject": "frontend"
"defaultProject": "mviz-demonstrator"
}
2 changes: 1 addition & 1 deletion e2e/src/app.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('workspace-project App', () => {

it('should display welcome message', () => {
page.navigateTo();
expect(page.getTitleText()).toEqual('frontend app is running!');
expect(page.getTitleText()).toEqual('mviz-demonstrator app is running!');
});

afterEach(async () => {
Expand Down
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = function (config) {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
dir: require('path').join(__dirname, './coverage/frontend'),
dir: require('path').join(__dirname, './coverage/mviz-demonstrator'),
reports: ['html', 'lcovonly', 'text-summary'],
fixWebpackSourcePaths: true
},
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "frontend",
"name": "mviz-demonstrator",
"version": "0.0.0",
"scripts": {
"ng": "ng",
Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>Frontend</title>
<title>mVIZ-Demonstrator</title>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
Expand Down

0 comments on commit 64d8631

Please sign in to comment.