Skip to content

Commit

Permalink
chore: backend missing source maps; use angular application builder; …
Browse files Browse the repository at this point in the history
…update
  • Loading branch information
dr460nf1r3 committed Nov 9, 2024
1 parent 614fee4 commit 3c11058
Show file tree
Hide file tree
Showing 8 changed files with 704 additions and 864 deletions.
13 changes: 6 additions & 7 deletions frontend/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
"tags": [],
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:browser",
"outputs": ["{options.outputPath}"],
"executor": "@angular-devkit/build-angular:application",
"outputs": ["{options.outputPath.base}"],
"options": {
"index": "frontend/src/index.html",
"main": "frontend/src/main.ts",
"polyfills": ["zone.js"],
"tsConfig": "frontend/tsconfig.app.json",
"assets": [
Expand All @@ -22,8 +21,10 @@
],
"styles": ["frontend/src/styles.css"],
"scripts": [],
"allowedCommonJsDependencies": ["form-data", "proxy-from-env", "follow-redirects"],
"outputPath": "dist/frontend"
"outputPath": {
"base": "dist/frontend"
},
"browser": "frontend/src/main.ts"
},
"configurations": {
"production": {
Expand All @@ -42,9 +43,7 @@
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
Expand Down
5 changes: 5 additions & 0 deletions frontend/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
<link href="/favicon.png" rel="icon" type="image/x-icon" />
<link href="https://avatars.githubusercontent.com" rel="preconnect" />
<link href="https://builds.garudalinux.org" rel="preconnect" />

<!-- These will be transformed to Cloudflare fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fira+Sans:ital@0;1&family=JetBrains+Mono&display=swap" rel="stylesheet">
</head>
<body class="pb-10 bg-base">
<app-root></app-root>
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/styles.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/* Catppuccin variables and fonts */
@import "@catppuccin/palette/css/catppuccin.css";
@import "@catppuccin/highlightjs/css/catppuccin-variables.rgb.css";
@import "@fontsource/jetbrains-mono";
@import "@fontsource/fira-sans";

/* TailwindCSS */
@tailwind base;
Expand Down
2 changes: 1 addition & 1 deletion frontend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
"noFallthroughCasesInSwitch": true,
},
"files": [],
"include": [],
Expand Down
3 changes: 0 additions & 3 deletions jest.preset.js

This file was deleted.

64 changes: 30 additions & 34 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"start": "nx run-many --target=serve --all",
"start:be-hr": "source backend/.env && nest build --webpack --webpackPath backend/webpack-hmr.config.cjs --watch --path backend/tsconfig.json | pino-pretty -cSt SYS:HH:MM --ignore pid,hostname",
"start:be-nx": "nx run backend:serve | pino-pretty -cSt SYS:standard",
"start:dev": "pnpm proxy-be & pnpm proxy-api & pnpm start | pino-pretty -cSt SYS:standard",
"start:home": "nx run frontend:serve",
"test": "nx run-many --target=test --all",
"test:watch": "nx run-many --target=test --all --watch",
Expand All @@ -27,8 +26,8 @@
"@angular-eslint/eslint-plugin-template": "^18.4.0",
"@angular-eslint/template-parser": "^18.4.0",
"@angular/cli": "~18.2.11",
"@angular/compiler-cli": "18.2.10",
"@angular/language-service": "18.2.10",
"@angular/compiler-cli": "18.2.11",
"@angular/language-service": "18.2.11",
"@biomejs/biome": "^1.9.4",
"@catppuccin/highlightjs": "1.0.0",
"@catppuccin/palette": "^1.7.1",
Expand All @@ -39,33 +38,32 @@
"@nestjs/cli": "^10.4.7",
"@nestjs/schematics": "^10.2.3",
"@nestjs/testing": "^10.4.7",
"@nx/angular": "20.0.7",
"@nx/esbuild": "20.0.7",
"@nx/eslint": "20.0.7",
"@nx/eslint-plugin": "20.0.7",
"@nx/jest": "20.0.7",
"@nx/js": "20.0.7",
"@nx/nest": "20.0.7",
"@nx/node": "20.0.7",
"@nx/web": "20.0.7",
"@nx/webpack": "20.0.7",
"@nx/workspace": "20.0.7",
"@schematics/angular": "18.2.9",
"@nx/angular": "20.0.12",
"@nx/esbuild": "20.0.12",
"@nx/eslint": "20.0.12",
"@nx/eslint-plugin": "20.0.12",
"@nx/jest": "20.0.12",
"@nx/js": "20.0.12",
"@nx/nest": "20.0.12",
"@nx/node": "20.0.12",
"@nx/web": "20.0.12",
"@nx/webpack": "20.0.12",
"@nx/workspace": "20.0.12",
"@schematics/angular": "18.2.11",
"@swc-node/register": "~1.10.9",
"@swc/core": "~1.7.42",
"@swc/core": "~1.9.1",
"@swc/helpers": "~0.5.13",
"@types/auth0": "^3.3.10",
"@types/bcrypt": "^5.0.2",
"@types/cors": "^2.8.17",
"@types/crypto-js": "^4.2.2",
"@types/express": "^5.0.0",
"@types/jest": "29.5.13",
"@types/node": "22.7.9",
"@types/jest": "29.5.14",
"@types/node": "22.9.0",
"@types/passport-jwt": "^4.0.1",
"@types/passport-local": "^1.0.38",
"@typescript-eslint/eslint-plugin": "8.11.0",
"@typescript-eslint/parser": "8.11.0",
"@typescript-eslint/utils": "8.11.0",
"@typescript-eslint/eslint-plugin": "8.13.0",
"@typescript-eslint/parser": "8.13.0",
"@typescript-eslint/utils": "8.13.0",
"autoprefixer": "^10.4.20",
"eslint": "^9.14.0",
"eslint-config-prettier": "^9.1.0",
Expand All @@ -76,7 +74,7 @@
"jest-preset-angular": "^14.2.4",
"lint-staged": "^15.2.10",
"local-cors-proxy": "^1.1.0",
"nx": "20.0.7",
"nx": "20.0.12",
"pino-pretty": "^11.3.0",
"prettier": "^3.3.3",
"run-script-webpack-plugin": "^0.2.0",
Expand All @@ -91,19 +89,17 @@
"webpack-node-externals": "^3.0.0"
},
"dependencies": {
"@angular/animations": "18.2.10",
"@angular/common": "18.2.10",
"@angular/compiler": "18.2.10",
"@angular/core": "18.2.10",
"@angular/forms": "18.2.10",
"@angular/platform-browser": "18.2.10",
"@angular/platform-browser-dynamic": "18.2.10",
"@angular/router": "18.2.10",
"@angular/animations": "18.2.11",
"@angular/common": "18.2.11",
"@angular/compiler": "18.2.11",
"@angular/core": "18.2.11",
"@angular/forms": "18.2.11",
"@angular/platform-browser": "18.2.11",
"@angular/platform-browser-dynamic": "18.2.11",
"@angular/router": "18.2.11",
"@fastify/cors": "^10.0.1",
"@fastify/helmet": "^11.1.1",
"@fastify/static": "^7.0.4",
"@fontsource/fira-sans": "^5.1.0",
"@fontsource/jetbrains-mono": "^5.1.1",
"@nestjs/axios": "^3.1.2",
"@nestjs/cache-manager": "^2.3.0",
"@nestjs/common": "^10.4.7",
Expand All @@ -112,7 +108,7 @@
"@nestjs/jwt": "^10.2.0",
"@nestjs/passport": "^10.0.3",
"@nestjs/platform-fastify": "^10.4.7",
"@nestjs/swagger": "^8.0.4",
"@nestjs/swagger": "^8.0.5",
"@nestjs/terminus": "^10.2.3",
"@nestjs/throttler": "^6.2.1",
"@nestjs/typeorm": "^10.0.2",
Expand Down
Loading

0 comments on commit 3c11058

Please sign in to comment.