From 2645336b0b77a35927402f194e60e2838a3262e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Forr=C3=B3?= Date: Thu, 10 May 2018 14:59:10 +0200 Subject: [PATCH] Rename frontend to ng-app --- Dockerfile | 4 ++-- {frontend => ng-app}/.angular-cli.json | 0 {frontend => ng-app}/.editorconfig | 0 {frontend => ng-app}/.gitignore | 0 {frontend => ng-app}/e2e/app.e2e-spec.ts | 0 {frontend => ng-app}/e2e/app.po.ts | 0 {frontend => ng-app}/e2e/tsconfig.e2e.json | 0 {frontend => ng-app}/karma.conf.js | 0 {frontend => ng-app}/package-lock.json | 0 {frontend => ng-app}/package.json | 0 {frontend => ng-app}/protractor.conf.js | 0 {frontend => ng-app}/src/app/app.component.css | 0 {frontend => ng-app}/src/app/app.component.html | 0 {frontend => ng-app}/src/app/app.component.ts | 0 {frontend => ng-app}/src/app/app.module.ts | 0 {frontend => ng-app}/src/app/models/quotes.ts | 0 .../src/app/quotes/quotes.component.css | 0 .../src/app/quotes/quotes.component.html | 0 .../src/app/quotes/quotes.component.ts | 0 .../src/app/services/quotes.datasource.ts | 0 .../src/app/services/quotes.service.ts | 0 {frontend => ng-app}/src/assets/.gitkeep | 0 .../src/environments/environment.prod.ts | 0 .../src/environments/environment.ts | 0 {frontend => ng-app}/src/favicon.ico | Bin {frontend => ng-app}/src/index.html | 0 {frontend => ng-app}/src/main.ts | 0 {frontend => ng-app}/src/polyfills.ts | 0 {frontend => ng-app}/src/styles.css | 0 {frontend => ng-app}/src/test.ts | 0 {frontend => ng-app}/src/theme.scss | 0 {frontend => ng-app}/src/tsconfig.app.json | 0 {frontend => ng-app}/src/tsconfig.spec.json | 0 {frontend => ng-app}/src/typings.d.ts | 0 {frontend => ng-app}/tsconfig.json | 0 {frontend => ng-app}/tslint.json | 0 36 files changed, 2 insertions(+), 2 deletions(-) rename {frontend => ng-app}/.angular-cli.json (100%) rename {frontend => ng-app}/.editorconfig (100%) rename {frontend => ng-app}/.gitignore (100%) rename {frontend => ng-app}/e2e/app.e2e-spec.ts (100%) rename {frontend => ng-app}/e2e/app.po.ts (100%) rename {frontend => ng-app}/e2e/tsconfig.e2e.json (100%) rename {frontend => ng-app}/karma.conf.js (100%) rename {frontend => ng-app}/package-lock.json (100%) rename {frontend => ng-app}/package.json (100%) rename {frontend => ng-app}/protractor.conf.js (100%) rename {frontend => ng-app}/src/app/app.component.css (100%) rename {frontend => ng-app}/src/app/app.component.html (100%) rename {frontend => ng-app}/src/app/app.component.ts (100%) rename {frontend => ng-app}/src/app/app.module.ts (100%) rename {frontend => ng-app}/src/app/models/quotes.ts (100%) rename {frontend => ng-app}/src/app/quotes/quotes.component.css (100%) rename {frontend => ng-app}/src/app/quotes/quotes.component.html (100%) rename {frontend => ng-app}/src/app/quotes/quotes.component.ts (100%) rename {frontend => ng-app}/src/app/services/quotes.datasource.ts (100%) rename {frontend => ng-app}/src/app/services/quotes.service.ts (100%) rename {frontend => ng-app}/src/assets/.gitkeep (100%) rename {frontend => ng-app}/src/environments/environment.prod.ts (100%) rename {frontend => ng-app}/src/environments/environment.ts (100%) rename {frontend => ng-app}/src/favicon.ico (100%) rename {frontend => ng-app}/src/index.html (100%) rename {frontend => ng-app}/src/main.ts (100%) rename {frontend => ng-app}/src/polyfills.ts (100%) rename {frontend => ng-app}/src/styles.css (100%) rename {frontend => ng-app}/src/test.ts (100%) rename {frontend => ng-app}/src/theme.scss (100%) rename {frontend => ng-app}/src/tsconfig.app.json (100%) rename {frontend => ng-app}/src/tsconfig.spec.json (100%) rename {frontend => ng-app}/src/typings.d.ts (100%) rename {frontend => ng-app}/tsconfig.json (100%) rename {frontend => ng-app}/tslint.json (100%) 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