diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-05-26 13:58:07 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-05-26 13:58:07 +0200 |
commit | fc6cf6169868e60c189e4b243330c3717ff159f3 (patch) | |
tree | 3f6dea9c1420e23756257b5abea27ec9ed92d58a /overlays/spm/frontend/angular.json | |
parent | 84f2affd66a0ff3947b91a30308cb8e6a8ff7594 (diff) | |
download | nixos-fc6cf6169868e60c189e4b243330c3717ff159f3.tar nixos-fc6cf6169868e60c189e4b243330c3717ff159f3.tar.gz nixos-fc6cf6169868e60c189e4b243330c3717ff159f3.tar.bz2 nixos-fc6cf6169868e60c189e4b243330c3717ff159f3.tar.xz nixos-fc6cf6169868e60c189e4b243330c3717ff159f3.zip |
...
Diffstat (limited to 'overlays/spm/frontend/angular.json')
-rw-r--r-- | overlays/spm/frontend/angular.json | 141 |
1 files changed, 141 insertions, 0 deletions
diff --git a/overlays/spm/frontend/angular.json b/overlays/spm/frontend/angular.json new file mode 100644 index 00000000..cc08d665 --- /dev/null +++ b/overlays/spm/frontend/angular.json | |||
@@ -0,0 +1,141 @@ | |||
1 | { | ||
2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json", | ||
3 | "version": 1, | ||
4 | "cli": { | ||
5 | "packageManager": "yarn" | ||
6 | }, | ||
7 | "newProjectRoot": "projects", | ||
8 | "projects": { | ||
9 | "spm-frontend": { | ||
10 | "projectType": "application", | ||
11 | "schematics": { | ||
12 | "@schematics/angular:component": { | ||
13 | "style": "sass", | ||
14 | "skipTests": true | ||
15 | }, | ||
16 | "@schematics/angular:class": { | ||
17 | "skipTests": true | ||
18 | }, | ||
19 | "@schematics/angular:directive": { | ||
20 | "skipTests": true | ||
21 | }, | ||
22 | "@schematics/angular:guard": { | ||
23 | "skipTests": true | ||
24 | }, | ||
25 | "@schematics/angular:interceptor": { | ||
26 | "skipTests": true | ||
27 | }, | ||
28 | "@schematics/angular:pipe": { | ||
29 | "skipTests": true | ||
30 | }, | ||
31 | "@schematics/angular:resolver": { | ||
32 | "skipTests": true | ||
33 | }, | ||
34 | "@schematics/angular:service": { | ||
35 | "skipTests": true | ||
36 | }, | ||
37 | "@schematics/angular:application": { | ||
38 | "strict": true | ||
39 | } | ||
40 | }, | ||
41 | "root": "", | ||
42 | "sourceRoot": "src", | ||
43 | "prefix": "app", | ||
44 | "architect": { | ||
45 | "build": { | ||
46 | "builder": "@angular-devkit/build-angular:browser", | ||
47 | "options": { | ||
48 | "outputPath": "dist/spm-frontend", | ||
49 | "index": "src/index.html", | ||
50 | "main": "src/main.ts", | ||
51 | "polyfills": "src/polyfills.ts", | ||
52 | "tsConfig": "tsconfig.app.json", | ||
53 | "inlineStyleLanguage": "sass", | ||
54 | "assets": [ | ||
55 | "src/assets", | ||
56 | { | ||
57 | "glob": "@(thumb_up)/baseline.svg", | ||
58 | "input": "./node_modules/@material-icons/svg/svg", | ||
59 | "output": "/icons/" | ||
60 | } | ||
61 | ], | ||
62 | "styles": [ | ||
63 | "src/custom-theme.scss", | ||
64 | "src/styles.sass" | ||
65 | ], | ||
66 | "scripts": [] | ||
67 | }, | ||
68 | "configurations": { | ||
69 | "production": { | ||
70 | "budgets": [ | ||
71 | { | ||
72 | "type": "initial", | ||
73 | "maximumWarning": "500kb", | ||
74 | "maximumError": "1mb" | ||
75 | }, | ||
76 | { | ||
77 | "type": "anyComponentStyle", | ||
78 | "maximumWarning": "2kb", | ||
79 | "maximumError": "4kb" | ||
80 | } | ||
81 | ], | ||
82 | "fileReplacements": [ | ||
83 | { | ||
84 | "replace": "src/environments/environment.ts", | ||
85 | "with": "src/environments/environment.prod.ts" | ||
86 | } | ||
87 | ], | ||
88 | "outputHashing": "all" | ||
89 | }, | ||
90 | "development": { | ||
91 | "buildOptimizer": false, | ||
92 | "optimization": false, | ||
93 | "vendorChunk": true, | ||
94 | "extractLicenses": false, | ||
95 | "sourceMap": true, | ||
96 | "namedChunks": true | ||
97 | } | ||
98 | }, | ||
99 | "defaultConfiguration": "production" | ||
100 | }, | ||
101 | "serve": { | ||
102 | "builder": "@angular-devkit/build-angular:dev-server", | ||
103 | "configurations": { | ||
104 | "production": { | ||
105 | "browserTarget": "spm-frontend:build:production" | ||
106 | }, | ||
107 | "development": { | ||
108 | "browserTarget": "spm-frontend:build:development" | ||
109 | } | ||
110 | }, | ||
111 | "defaultConfiguration": "development" | ||
112 | }, | ||
113 | "extract-i18n": { | ||
114 | "builder": "@angular-devkit/build-angular:extract-i18n", | ||
115 | "options": { | ||
116 | "browserTarget": "spm-frontend:build" | ||
117 | } | ||
118 | }, | ||
119 | "test": { | ||
120 | "builder": "@angular-devkit/build-angular:karma", | ||
121 | "options": { | ||
122 | "main": "src/test.ts", | ||
123 | "polyfills": "src/polyfills.ts", | ||
124 | "tsConfig": "tsconfig.spec.json", | ||
125 | "karmaConfig": "karma.conf.js", | ||
126 | "inlineStyleLanguage": "sass", | ||
127 | "assets": [ | ||
128 | "src/favicon.ico", | ||
129 | "src/assets" | ||
130 | ], | ||
131 | "styles": [ | ||
132 | "src/styles.sass" | ||
133 | ], | ||
134 | "scripts": [] | ||
135 | } | ||
136 | } | ||
137 | } | ||
138 | } | ||
139 | }, | ||
140 | "defaultProject": "spm-frontend" | ||
141 | } | ||