akanjs 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/templates/workspaceRoot/tsconfig.json.template +24 -21
- package/package.json +1 -1
- package/cli/templates/app/capacitor.config.ts.template +0 -8
- package/cli/templates/workspaceRoot/infra/app/Chart.yaml.template +0 -6
- package/cli/templates/workspaceRoot/infra/app/templates/frontend.yaml.template +0 -182
- package/cli/templates/workspaceRoot/infra/app/values/_common-values.yaml.template +0 -183
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
{
|
|
2
|
-
"compileOnSave": false,
|
|
3
2
|
"compilerOptions": {
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"declaration": false,
|
|
7
|
-
"moduleResolution": "node",
|
|
8
|
-
"emitDecoratorMetadata": true,
|
|
9
|
-
"isolatedModules": true,
|
|
10
|
-
"esModuleInterop": true,
|
|
11
|
-
"experimentalDecorators": true,
|
|
12
|
-
"noPropertyAccessFromIndexSignature": false,
|
|
13
|
-
"importHelpers": false,
|
|
14
|
-
"target": "es2022",
|
|
3
|
+
"lib": ["ESNext", "DOM"],
|
|
4
|
+
"target": "ESNext",
|
|
15
5
|
"module": "esnext",
|
|
16
|
-
"
|
|
17
|
-
"
|
|
6
|
+
"moduleDetection": "force",
|
|
7
|
+
"jsx": "react-jsx",
|
|
8
|
+
"allowJs": true,
|
|
9
|
+
"types": ["bun"],
|
|
10
|
+
"moduleResolution": "bundler",
|
|
11
|
+
"allowImportingTsExtensions": true,
|
|
12
|
+
"verbatimModuleSyntax": true,
|
|
13
|
+
"noEmit": true,
|
|
14
|
+
"strict": true,
|
|
18
15
|
"skipLibCheck": true,
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
"noFallthroughCasesInSwitch": true,
|
|
17
|
+
"noUncheckedSideEffectImports": false,
|
|
18
|
+
"noUncheckedIndexedAccess": false,
|
|
19
|
+
"noImplicitOverride": true,
|
|
20
|
+
"noUnusedLocals": false,
|
|
21
|
+
"noUnusedParameters": false,
|
|
22
|
+
"noPropertyAccessFromIndexSignature": false,
|
|
23
|
+
"experimentalDecorators": true,
|
|
24
|
+
"paths": {
|
|
25
|
+
"@apps/*": ["./apps/*"],
|
|
26
|
+
"@libs/*": ["./libs/*"],
|
|
27
|
+
}
|
|
28
|
+
}
|
|
26
29
|
}
|
package/package.json
CHANGED
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
{{- $namespaceParts := split "-" .Release.Namespace }}
|
|
2
|
-
{{- $branch := index $namespaceParts "_1" }}
|
|
3
|
-
{{- $config := index .Values $branch }}
|
|
4
|
-
---
|
|
5
|
-
apiVersion: apps/v1
|
|
6
|
-
kind: Deployment
|
|
7
|
-
metadata:
|
|
8
|
-
name: frontend-deployment
|
|
9
|
-
namespace: {{ .Values.appName }}-{{ $branch }}
|
|
10
|
-
labels:
|
|
11
|
-
app: frontend
|
|
12
|
-
spec:
|
|
13
|
-
replicas: {{ $config.frontend.replicas }}
|
|
14
|
-
selector:
|
|
15
|
-
matchLabels:
|
|
16
|
-
app: frontend
|
|
17
|
-
template:
|
|
18
|
-
metadata:
|
|
19
|
-
labels:
|
|
20
|
-
app: frontend
|
|
21
|
-
spec:
|
|
22
|
-
containers:
|
|
23
|
-
- name: frontend
|
|
24
|
-
image: registry.akamir.com/{{ .Values.repoName }}/{{ .Values.appName }}/frontend:{{ $branch }}-live
|
|
25
|
-
imagePullPolicy: Always
|
|
26
|
-
ports:
|
|
27
|
-
- containerPort: 4200
|
|
28
|
-
resources:
|
|
29
|
-
requests:
|
|
30
|
-
memory: {{ $config.frontend.resources.requests.memory }}
|
|
31
|
-
cpu: {{ $config.frontend.resources.requests.cpu }}
|
|
32
|
-
limits:
|
|
33
|
-
memory: {{ $config.frontend.resources.limits.memory }}
|
|
34
|
-
cpu: {{ $config.frontend.resources.limits.cpu }}
|
|
35
|
-
imagePullSecrets:
|
|
36
|
-
- name: regcred
|
|
37
|
-
---
|
|
38
|
-
apiVersion: v1
|
|
39
|
-
kind: Service
|
|
40
|
-
metadata:
|
|
41
|
-
name: frontend-svc
|
|
42
|
-
namespace: {{ .Values.appName }}-{{ $branch }}
|
|
43
|
-
spec:
|
|
44
|
-
selector:
|
|
45
|
-
app: frontend
|
|
46
|
-
ports:
|
|
47
|
-
- protocol: TCP
|
|
48
|
-
port: 4200
|
|
49
|
-
targetPort: 4200
|
|
50
|
-
---
|
|
51
|
-
apiVersion: networking.k8s.io/v1
|
|
52
|
-
kind: Ingress
|
|
53
|
-
metadata:
|
|
54
|
-
name: app-ingress
|
|
55
|
-
namespace: {{ .Values.appName }}-{{ $branch }}
|
|
56
|
-
annotations:
|
|
57
|
-
ingress.kubernetes.io/ssl-redirect: "true"
|
|
58
|
-
kubernetes.io/tls-acme: "true"
|
|
59
|
-
cert-manager.io/cluster-issuer: letsencrypt-prod
|
|
60
|
-
nginx.ingress.kubernetes.io/enable-cors: "true"
|
|
61
|
-
nginx.ingress.kubernetes.io/proxy-body-size: "0"
|
|
62
|
-
nginx.ingress.kubernetes.io/affinity: "cookie"
|
|
63
|
-
nginx.ingress.kubernetes.io/session-cookie-name: "route"
|
|
64
|
-
nginx.ingress.kubernetes.io/session-cookie-expires: "172800"
|
|
65
|
-
nginx.ingress.kubernetes.io/session-cookie-max-age: "172800"
|
|
66
|
-
nginx.ingress.kubernetes.io/cors-allow-headers: "DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization,apollo-require-preflight"
|
|
67
|
-
nginx.ingress.kubernetes.io/use-regex: "true"
|
|
68
|
-
nginx.ingress.kubernetes.io/allow-snippet-annotations: "true"
|
|
69
|
-
nginx.ingress.kubernetes.io/rewrite-target: /$2$3
|
|
70
|
-
nginx.ingress.kubernetes.io/proxy-buffer-size: "16k"
|
|
71
|
-
nginx.ingress.kubernetes.io/proxy-buffers-number: "4"
|
|
72
|
-
nginx.ingress.kubernetes.io/proxy-busy-buffers-size: "24k"
|
|
73
|
-
spec:
|
|
74
|
-
ingressClassName: nginx
|
|
75
|
-
tls:
|
|
76
|
-
- hosts:
|
|
77
|
-
- {{ .Values.appName }}-{{ $branch }}.akamir.com
|
|
78
|
-
{{- range $i, $subRoute := .Values.subRoutes }}
|
|
79
|
-
- {{ $subRoute }}-{{ $branch }}.akamir.com
|
|
80
|
-
{{ end}}
|
|
81
|
-
{{- range $i, $domain := $config.domains }}
|
|
82
|
-
- {{ $domain }}
|
|
83
|
-
{{ end}}
|
|
84
|
-
secretName: cert-{{ .Values.appName }}-{{ $branch }}
|
|
85
|
-
rules:
|
|
86
|
-
- host: {{ .Values.appName }}-{{ $branch }}.akamir.com
|
|
87
|
-
http:
|
|
88
|
-
paths:
|
|
89
|
-
- path: /(search)(.*)
|
|
90
|
-
pathType: ImplementationSpecific
|
|
91
|
-
backend:
|
|
92
|
-
service:
|
|
93
|
-
name: meili-svc
|
|
94
|
-
port:
|
|
95
|
-
number: 7700
|
|
96
|
-
- path: /()(backend)(.*)
|
|
97
|
-
pathType: ImplementationSpecific
|
|
98
|
-
backend:
|
|
99
|
-
service:
|
|
100
|
-
name: backend-svc
|
|
101
|
-
port:
|
|
102
|
-
number: 8080
|
|
103
|
-
- path: /()(socket.io)(.*)
|
|
104
|
-
pathType: ImplementationSpecific
|
|
105
|
-
backend:
|
|
106
|
-
service:
|
|
107
|
-
name: backend-svc
|
|
108
|
-
port:
|
|
109
|
-
number: 8080
|
|
110
|
-
- path: /()(.*)
|
|
111
|
-
pathType: ImplementationSpecific
|
|
112
|
-
backend:
|
|
113
|
-
service:
|
|
114
|
-
name: frontend-svc
|
|
115
|
-
port:
|
|
116
|
-
number: 4200
|
|
117
|
-
{{- range $i, $subRoute := .Values.subRoutes }}
|
|
118
|
-
- host: {{ $subRoute }}-{{ $branch }}.akamir.com
|
|
119
|
-
http:
|
|
120
|
-
paths:
|
|
121
|
-
- path: /(search)(.*)
|
|
122
|
-
pathType: ImplementationSpecific
|
|
123
|
-
backend:
|
|
124
|
-
service:
|
|
125
|
-
name: meili-svc
|
|
126
|
-
port:
|
|
127
|
-
number: 7700
|
|
128
|
-
- path: /()(backend)(.*)
|
|
129
|
-
pathType: ImplementationSpecific
|
|
130
|
-
backend:
|
|
131
|
-
service:
|
|
132
|
-
name: backend-svc
|
|
133
|
-
port:
|
|
134
|
-
number: 8080
|
|
135
|
-
- path: /()(socket.io)(.*)
|
|
136
|
-
pathType: ImplementationSpecific
|
|
137
|
-
backend:
|
|
138
|
-
service:
|
|
139
|
-
name: backend-svc
|
|
140
|
-
port:
|
|
141
|
-
number: 8080
|
|
142
|
-
- path: /()(.*)
|
|
143
|
-
pathType: ImplementationSpecific
|
|
144
|
-
backend:
|
|
145
|
-
service:
|
|
146
|
-
name: frontend-svc
|
|
147
|
-
port:
|
|
148
|
-
number: 4200
|
|
149
|
-
{{ end }}
|
|
150
|
-
{{- range $i, $domain := $config.domains }}
|
|
151
|
-
- host: {{ $domain }}
|
|
152
|
-
http:
|
|
153
|
-
paths:
|
|
154
|
-
- path: /(search)(.*)
|
|
155
|
-
pathType: ImplementationSpecific
|
|
156
|
-
backend:
|
|
157
|
-
service:
|
|
158
|
-
name: meili-svc
|
|
159
|
-
port:
|
|
160
|
-
number: 7700
|
|
161
|
-
- path: /()(backend)(.*)
|
|
162
|
-
pathType: ImplementationSpecific
|
|
163
|
-
backend:
|
|
164
|
-
service:
|
|
165
|
-
name: backend-svc
|
|
166
|
-
port:
|
|
167
|
-
number: 8080
|
|
168
|
-
- path: /()(socket.io)(.*)
|
|
169
|
-
pathType: ImplementationSpecific
|
|
170
|
-
backend:
|
|
171
|
-
service:
|
|
172
|
-
name: backend-svc
|
|
173
|
-
port:
|
|
174
|
-
number: 8080
|
|
175
|
-
- path: /()(.*)
|
|
176
|
-
pathType: ImplementationSpecific
|
|
177
|
-
backend:
|
|
178
|
-
service:
|
|
179
|
-
name: frontend-svc
|
|
180
|
-
port:
|
|
181
|
-
number: 4200
|
|
182
|
-
{{ end }}
|
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
repoName: undefined
|
|
2
|
-
appName: undefined
|
|
3
|
-
subRoutes: []
|
|
4
|
-
debug:
|
|
5
|
-
domains: []
|
|
6
|
-
backend:
|
|
7
|
-
federation:
|
|
8
|
-
replicas: 1
|
|
9
|
-
resources:
|
|
10
|
-
requests:
|
|
11
|
-
memory: 250M
|
|
12
|
-
cpu: "0.05"
|
|
13
|
-
limits:
|
|
14
|
-
memory: 1G
|
|
15
|
-
cpu: "0.5"
|
|
16
|
-
batch:
|
|
17
|
-
resources:
|
|
18
|
-
requests:
|
|
19
|
-
memory: 250M
|
|
20
|
-
cpu: "0.05"
|
|
21
|
-
limits:
|
|
22
|
-
memory: 1G
|
|
23
|
-
cpu: "0.5"
|
|
24
|
-
frontend:
|
|
25
|
-
replicas: 1
|
|
26
|
-
resources:
|
|
27
|
-
requests:
|
|
28
|
-
memory: 250M
|
|
29
|
-
cpu: "0.1"
|
|
30
|
-
limits:
|
|
31
|
-
memory: 1G
|
|
32
|
-
cpu: "0.5"
|
|
33
|
-
redis:
|
|
34
|
-
replicas: 1
|
|
35
|
-
resources:
|
|
36
|
-
requests:
|
|
37
|
-
cpu: "0.05"
|
|
38
|
-
memory: 200M
|
|
39
|
-
limits:
|
|
40
|
-
cpu: "1"
|
|
41
|
-
memory: 2G
|
|
42
|
-
mongo:
|
|
43
|
-
replicas: 1
|
|
44
|
-
storage:
|
|
45
|
-
data: 2G
|
|
46
|
-
logs: 0.5G
|
|
47
|
-
resources:
|
|
48
|
-
requests:
|
|
49
|
-
cpu: "0.15"
|
|
50
|
-
memory: 200M
|
|
51
|
-
limits:
|
|
52
|
-
cpu: "4"
|
|
53
|
-
memory: 4G
|
|
54
|
-
meili:
|
|
55
|
-
storage:
|
|
56
|
-
data: 2G
|
|
57
|
-
resources:
|
|
58
|
-
requests:
|
|
59
|
-
cpu: "0.15"
|
|
60
|
-
memory: 200M
|
|
61
|
-
limits:
|
|
62
|
-
cpu: "4"
|
|
63
|
-
memory: 4G
|
|
64
|
-
develop:
|
|
65
|
-
domains: []
|
|
66
|
-
backend:
|
|
67
|
-
federation:
|
|
68
|
-
replicas: 1
|
|
69
|
-
resources:
|
|
70
|
-
requests:
|
|
71
|
-
memory: 250M
|
|
72
|
-
cpu: "0.05"
|
|
73
|
-
limits:
|
|
74
|
-
memory: 1G
|
|
75
|
-
cpu: "0.5"
|
|
76
|
-
batch:
|
|
77
|
-
resources:
|
|
78
|
-
requests:
|
|
79
|
-
memory: 250M
|
|
80
|
-
cpu: "0.05"
|
|
81
|
-
limits:
|
|
82
|
-
memory: 1G
|
|
83
|
-
cpu: "0.5"
|
|
84
|
-
frontend:
|
|
85
|
-
replicas: 1
|
|
86
|
-
resources:
|
|
87
|
-
requests:
|
|
88
|
-
memory: 250M
|
|
89
|
-
cpu: "0.1"
|
|
90
|
-
limits:
|
|
91
|
-
memory: 1G
|
|
92
|
-
cpu: "0.5"
|
|
93
|
-
redis:
|
|
94
|
-
replicas: 1
|
|
95
|
-
resources:
|
|
96
|
-
requests:
|
|
97
|
-
cpu: "0.05"
|
|
98
|
-
memory: 200M
|
|
99
|
-
limits:
|
|
100
|
-
cpu: "1"
|
|
101
|
-
memory: 2G
|
|
102
|
-
mongo:
|
|
103
|
-
replicas: 1
|
|
104
|
-
storage:
|
|
105
|
-
data: 2G
|
|
106
|
-
logs: 0.5G
|
|
107
|
-
resources:
|
|
108
|
-
requests:
|
|
109
|
-
cpu: "0.15"
|
|
110
|
-
memory: 200M
|
|
111
|
-
limits:
|
|
112
|
-
cpu: "4"
|
|
113
|
-
memory: 4G
|
|
114
|
-
meili:
|
|
115
|
-
storage:
|
|
116
|
-
data: 2G
|
|
117
|
-
resources:
|
|
118
|
-
requests:
|
|
119
|
-
cpu: "0.15"
|
|
120
|
-
memory: 200M
|
|
121
|
-
limits:
|
|
122
|
-
cpu: "4"
|
|
123
|
-
memory: 4G
|
|
124
|
-
main:
|
|
125
|
-
domains: []
|
|
126
|
-
backend:
|
|
127
|
-
federation:
|
|
128
|
-
replicas: 1
|
|
129
|
-
resources:
|
|
130
|
-
requests:
|
|
131
|
-
memory: 250M
|
|
132
|
-
cpu: "0.05"
|
|
133
|
-
limits:
|
|
134
|
-
memory: 1G
|
|
135
|
-
cpu: "0.5"
|
|
136
|
-
batch:
|
|
137
|
-
resources:
|
|
138
|
-
requests:
|
|
139
|
-
memory: 250M
|
|
140
|
-
cpu: "0.05"
|
|
141
|
-
limits:
|
|
142
|
-
memory: 1G
|
|
143
|
-
cpu: "0.5"
|
|
144
|
-
frontend:
|
|
145
|
-
replicas: 1
|
|
146
|
-
resources:
|
|
147
|
-
requests:
|
|
148
|
-
memory: 1G
|
|
149
|
-
cpu: "1"
|
|
150
|
-
limits:
|
|
151
|
-
memory: 4G
|
|
152
|
-
cpu: "4"
|
|
153
|
-
redis:
|
|
154
|
-
replicas: 1
|
|
155
|
-
resources:
|
|
156
|
-
requests:
|
|
157
|
-
cpu: "0.05"
|
|
158
|
-
memory: 200M
|
|
159
|
-
limits:
|
|
160
|
-
cpu: "1"
|
|
161
|
-
memory: 2G
|
|
162
|
-
mongo:
|
|
163
|
-
replicas: 1
|
|
164
|
-
storage:
|
|
165
|
-
data: 2G
|
|
166
|
-
logs: 0.5G
|
|
167
|
-
resources:
|
|
168
|
-
requests:
|
|
169
|
-
cpu: "0.15"
|
|
170
|
-
memory: 200M
|
|
171
|
-
limits:
|
|
172
|
-
cpu: "4"
|
|
173
|
-
memory: 4G
|
|
174
|
-
meili:
|
|
175
|
-
storage:
|
|
176
|
-
data: 2G
|
|
177
|
-
resources:
|
|
178
|
-
requests:
|
|
179
|
-
cpu: "0.15"
|
|
180
|
-
memory: 200M
|
|
181
|
-
limits:
|
|
182
|
-
cpu: "4"
|
|
183
|
-
memory: 4G
|