Skip to content

Commit 496d2a9

Browse files
committed
chore(gpt-gateway-admin): add nx configuration
1 parent b542c9d commit 496d2a9

File tree

6 files changed

+113
-16
lines changed

6 files changed

+113
-16
lines changed

.nxignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
packages/amplication-cli
2-
packages/gpt-gateway-admin
32
packages/data-service-generator/scripts
43
packages/data-service-generator-catalog-admin

packages/gpt-gateway-admin/package.json

+14
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,20 @@
2020
"@svgr/webpack": "6.5.1"
2121
}
2222
},
23+
"nx": {
24+
"targets": {
25+
"build": {
26+
"dependsOn": [
27+
"install"
28+
]
29+
},
30+
"start": {
31+
"dependsOn": [
32+
"install"
33+
]
34+
}
35+
}
36+
},
2337
"scripts": {
2438
"start": "react-scripts start",
2539
"build": "react-scripts build",
+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "gpt-gateway-admin",
3+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
4+
"sourceRoot": "packages/gpt-gateway-admin/src",
5+
"projectType": "application",
6+
"targets": {
7+
"install": {
8+
"executor": "nx:run-commands",
9+
"inputs": [
10+
"{projectRoot}/package.json",
11+
"{projectRoot}/package-lock.json"
12+
],
13+
"outputs": ["{projectRoot}/node_modules"],
14+
"options": {
15+
"commands": ["npm ci"],
16+
"parallel": false,
17+
"cwd": "packages/gpt-gateway-admin"
18+
}
19+
},
20+
"package:container": {
21+
"executor": "@nx-tools/nx-container:build",
22+
"options": {
23+
"push": false,
24+
"tags": ["amplication/data-service-generator-catalog:latest"],
25+
"build-args": ["GIT_REF_NAME=latest-local", "GIT_SHA=unicorn-🦄-sha"]
26+
},
27+
"configurations": {
28+
"production": {
29+
"build-args": ["GIT_REF_NAME=${GIT_REF_NAME}", "GIT_SHA=${GIT_SHA}"]
30+
}
31+
}
32+
},
33+
"deploy:container": {
34+
"executor": "nx:run-commands"
35+
}
36+
},
37+
"tags": []
38+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "../../dist/out-tsc",
5+
"types": ["node"]
6+
},
7+
"files": [
8+
"../../node_modules/@nrwl/react/typings/cssmodule.d.ts",
9+
"../../node_modules/@nrwl/react/typings/image.d.ts"
10+
],
11+
"exclude": [
12+
"jest.config.ts",
13+
"src/**/*.spec.ts",
14+
"src/**/*.test.ts",
15+
"src/**/*.spec.tsx",
16+
"src/**/*.test.tsx",
17+
"src/**/*.spec.js",
18+
"src/**/*.test.js",
19+
"src/**/*.spec.jsx",
20+
"src/**/*.test.jsx"
21+
],
22+
"include": ["src/**/*.js", "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx"]
23+
}
+14-15
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
{
22
"compilerOptions": {
3-
"target": "es5",
4-
"lib": ["dom", "dom.iterable", "esnext"],
5-
"allowJs": true,
6-
"skipLibCheck": true,
7-
"esModuleInterop": true,
8-
"allowSyntheticDefaultImports": true,
9-
"forceConsistentCasingInFileNames": true,
10-
"noFallthroughCasesInSwitch": true,
11-
"module": "esnext",
12-
"moduleResolution": "node",
13-
"resolveJsonModule": true,
14-
"isolatedModules": true,
15-
"noEmit": true,
163
"jsx": "react-jsx",
4+
"allowJs": false,
5+
"esModuleInterop": false,
6+
"allowSyntheticDefaultImports": true,
177
"strict": true
188
},
19-
"include": ["src"],
20-
"exclude": ["./node_modules"]
9+
"files": [],
10+
"include": [],
11+
"references": [
12+
{
13+
"path": "./tsconfig.app.json"
14+
},
15+
{
16+
"path": "./tsconfig.spec.json"
17+
}
18+
],
19+
"extends": "../../tsconfig.base.json"
2120
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "../../dist/out-tsc",
5+
"module": "commonjs",
6+
"types": ["jest", "node"]
7+
},
8+
"include": [
9+
"jest.config.ts",
10+
"src/**/*.test.ts",
11+
"src/**/*.spec.ts",
12+
"src/**/*.test.tsx",
13+
"src/**/*.spec.tsx",
14+
"src/**/*.test.js",
15+
"src/**/*.spec.js",
16+
"src/**/*.test.jsx",
17+
"src/**/*.spec.jsx",
18+
"src/**/*.d.ts"
19+
],
20+
"files": [
21+
"../../node_modules/@nrwl/react/typings/cssmodule.d.ts",
22+
"../../node_modules/@nrwl/react/typings/image.d.ts"
23+
]
24+
}

0 commit comments

Comments
 (0)