diff --git a/Dockerfile b/Dockerfile index ed6c3ae..4dc2390 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,12 @@ FROM node:alpine as builder WORKDIR /build -COPY frontend/package.json frontend/package-lock.json ./ +COPY ng-app/package.json ng-app/package-lock.json ./ RUN npm install && mkdir /ng-app && cp -r node_modules/ /ng-app WORKDIR /ng-app -COPY frontend . +COPY ng-app . RUN $(npm bin)/ng build --prod --build-optimizer --output-hashing=none diff --git a/frontend/.angular-cli.json b/ng-app/.angular-cli.json similarity index 100% rename from frontend/.angular-cli.json rename to ng-app/.angular-cli.json diff --git a/frontend/.editorconfig b/ng-app/.editorconfig similarity index 100% rename from frontend/.editorconfig rename to ng-app/.editorconfig diff --git a/frontend/.gitignore b/ng-app/.gitignore similarity index 100% rename from frontend/.gitignore rename to ng-app/.gitignore diff --git a/frontend/e2e/app.e2e-spec.ts b/ng-app/e2e/app.e2e-spec.ts similarity index 100% rename from frontend/e2e/app.e2e-spec.ts rename to ng-app/e2e/app.e2e-spec.ts diff --git a/frontend/e2e/app.po.ts b/ng-app/e2e/app.po.ts similarity index 100% rename from frontend/e2e/app.po.ts rename to ng-app/e2e/app.po.ts diff --git a/frontend/e2e/tsconfig.e2e.json b/ng-app/e2e/tsconfig.e2e.json similarity index 100% rename from frontend/e2e/tsconfig.e2e.json rename to ng-app/e2e/tsconfig.e2e.json diff --git a/frontend/karma.conf.js b/ng-app/karma.conf.js similarity index 100% rename from frontend/karma.conf.js rename to ng-app/karma.conf.js diff --git a/frontend/package-lock.json b/ng-app/package-lock.json similarity index 100% rename from frontend/package-lock.json rename to ng-app/package-lock.json diff --git a/frontend/package.json b/ng-app/package.json similarity index 100% rename from frontend/package.json rename to ng-app/package.json diff --git a/frontend/protractor.conf.js b/ng-app/protractor.conf.js similarity index 100% rename from frontend/protractor.conf.js rename to ng-app/protractor.conf.js diff --git a/frontend/src/app/app.component.css b/ng-app/src/app/app.component.css similarity index 100% rename from frontend/src/app/app.component.css rename to ng-app/src/app/app.component.css diff --git a/frontend/src/app/app.component.html b/ng-app/src/app/app.component.html similarity index 100% rename from frontend/src/app/app.component.html rename to ng-app/src/app/app.component.html diff --git a/frontend/src/app/app.component.ts b/ng-app/src/app/app.component.ts similarity index 100% rename from frontend/src/app/app.component.ts rename to ng-app/src/app/app.component.ts diff --git a/frontend/src/app/app.module.ts b/ng-app/src/app/app.module.ts similarity index 100% rename from frontend/src/app/app.module.ts rename to ng-app/src/app/app.module.ts diff --git a/frontend/src/app/models/quotes.ts b/ng-app/src/app/models/quotes.ts similarity index 100% rename from frontend/src/app/models/quotes.ts rename to ng-app/src/app/models/quotes.ts diff --git a/frontend/src/app/quotes/quotes.component.css b/ng-app/src/app/quotes/quotes.component.css similarity index 100% rename from frontend/src/app/quotes/quotes.component.css rename to ng-app/src/app/quotes/quotes.component.css diff --git a/frontend/src/app/quotes/quotes.component.html b/ng-app/src/app/quotes/quotes.component.html similarity index 100% rename from frontend/src/app/quotes/quotes.component.html rename to ng-app/src/app/quotes/quotes.component.html diff --git a/frontend/src/app/quotes/quotes.component.ts b/ng-app/src/app/quotes/quotes.component.ts similarity index 100% rename from frontend/src/app/quotes/quotes.component.ts rename to ng-app/src/app/quotes/quotes.component.ts diff --git a/frontend/src/app/services/quotes.datasource.ts b/ng-app/src/app/services/quotes.datasource.ts similarity index 100% rename from frontend/src/app/services/quotes.datasource.ts rename to ng-app/src/app/services/quotes.datasource.ts diff --git a/frontend/src/app/services/quotes.service.ts b/ng-app/src/app/services/quotes.service.ts similarity index 100% rename from frontend/src/app/services/quotes.service.ts rename to ng-app/src/app/services/quotes.service.ts diff --git a/frontend/src/assets/.gitkeep b/ng-app/src/assets/.gitkeep similarity index 100% rename from frontend/src/assets/.gitkeep rename to ng-app/src/assets/.gitkeep diff --git a/frontend/src/environments/environment.prod.ts b/ng-app/src/environments/environment.prod.ts similarity index 100% rename from frontend/src/environments/environment.prod.ts rename to ng-app/src/environments/environment.prod.ts diff --git a/frontend/src/environments/environment.ts b/ng-app/src/environments/environment.ts similarity index 100% rename from frontend/src/environments/environment.ts rename to ng-app/src/environments/environment.ts diff --git a/frontend/src/favicon.ico b/ng-app/src/favicon.ico similarity index 100% rename from frontend/src/favicon.ico rename to ng-app/src/favicon.ico diff --git a/frontend/src/index.html b/ng-app/src/index.html similarity index 100% rename from frontend/src/index.html rename to ng-app/src/index.html diff --git a/frontend/src/main.ts b/ng-app/src/main.ts similarity index 100% rename from frontend/src/main.ts rename to ng-app/src/main.ts diff --git a/frontend/src/polyfills.ts b/ng-app/src/polyfills.ts similarity index 100% rename from frontend/src/polyfills.ts rename to ng-app/src/polyfills.ts diff --git a/frontend/src/styles.css b/ng-app/src/styles.css similarity index 100% rename from frontend/src/styles.css rename to ng-app/src/styles.css diff --git a/frontend/src/test.ts b/ng-app/src/test.ts similarity index 100% rename from frontend/src/test.ts rename to ng-app/src/test.ts diff --git a/frontend/src/theme.scss b/ng-app/src/theme.scss similarity index 100% rename from frontend/src/theme.scss rename to ng-app/src/theme.scss diff --git a/frontend/src/tsconfig.app.json b/ng-app/src/tsconfig.app.json similarity index 100% rename from frontend/src/tsconfig.app.json rename to ng-app/src/tsconfig.app.json diff --git a/frontend/src/tsconfig.spec.json b/ng-app/src/tsconfig.spec.json similarity index 100% rename from frontend/src/tsconfig.spec.json rename to ng-app/src/tsconfig.spec.json diff --git a/frontend/src/typings.d.ts b/ng-app/src/typings.d.ts similarity index 100% rename from frontend/src/typings.d.ts rename to ng-app/src/typings.d.ts diff --git a/frontend/tsconfig.json b/ng-app/tsconfig.json similarity index 100% rename from frontend/tsconfig.json rename to ng-app/tsconfig.json diff --git a/frontend/tslint.json b/ng-app/tslint.json similarity index 100% rename from frontend/tslint.json rename to ng-app/tslint.json