diff --git a/.dockerignore b/.dockerignore index 9232180..ce3edeb 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,14 +1,13 @@ * +!frontend/angular.json !frontend/package.json !frontend/package-lock.json +!frontend/tsconfig.app.json +!frontend/tsconfig.json !frontend/src/** !backend/package.json !backend/package-lock.json -!backend/src/** +!backend/index.js - -!tsconfig.app.json -!tsconfig.json -!angular.json diff --git a/Dockerfile b/Dockerfile index 0022a24..48c54f5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,6 +13,7 @@ COPY /frontend ./ RUN npm run build WORKDIR /app/backend +COPY /backend ./ RUN npm run build FROM node:20.11.0-alpine diff --git a/tsconfig.app.json b/tsconfig.app.json deleted file mode 100644 index a143ec0..0000000 --- a/tsconfig.app.json +++ /dev/null @@ -1,14 +0,0 @@ -/* To learn more about this file see: https://angular.io/config/tsconfig. */ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "./out-tsc/app", - "types": [] - }, - "files": [ - "frontend/src/main.ts" - ], - "include": [ - "frontend/src/**/*.d.ts" - ] -} diff --git a/tsconfig.json b/tsconfig.json deleted file mode 100644 index eb49734..0000000 --- a/tsconfig.json +++ /dev/null @@ -1,32 +0,0 @@ -/* To learn more about this file see: https://angular.io/config/tsconfig. */ -{ - "compileOnSave": false, - "compilerOptions": { - "outDir": "./dist/out-tsc", - "strict": true, - "noImplicitOverride": true, - "noPropertyAccessFromIndexSignature": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "skipLibCheck": true, - "esModuleInterop": true, - "sourceMap": true, - "declaration": false, - "experimentalDecorators": true, - "moduleResolution": "node", - "importHelpers": true, - "target": "ES2022", - "module": "ES2022", - "useDefineForClassFields": false, - "lib": [ - "ES2022", - "dom" - ] - }, - "angularCompilerOptions": { - "enableI18nLegacyMessageIdFormat": false, - "strictInjectionParameters": true, - "strictInputAccessModifiers": true, - "strictTemplates": true - } -} diff --git a/tsconfig.spec.json b/tsconfig.spec.json deleted file mode 100644 index a78106c..0000000 --- a/tsconfig.spec.json +++ /dev/null @@ -1,14 +0,0 @@ -/* To learn more about this file see: https://angular.io/config/tsconfig. */ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "./out-tsc/spec", - "types": [ - "jasmine" - ] - }, - "include": [ - "frontend/src/**/*.spec.ts", - "frontend/src/**/*.d.ts" - ] -}