Skip to content

Commit 2fe33a3

Browse files
committed
build: configure nx release for applications and packages
1 parent 667bc77 commit 2fe33a3

File tree

15 files changed

+2061
-2777
lines changed

15 files changed

+2061
-2777
lines changed

apps/books-api/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "apps/books-api/src",
55
"projectType": "application",
6-
"tags": ["books", "type:app"],
6+
"tags": ["books", "type:app", "deployable"],
77
"targets": {
88
"serve": {
99
"executor": "@nx/js:node",

apps/books-app/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "apps/books-app",
55
"projectType": "application",
6-
"tags": ["type:app"],
6+
"tags": ["type:app", "deployable"],
77
"// targets": "to see all targets run: nx show project books-app --web",
88
"targets": {}
99
}

apps/books-app/vite.config.ts

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,25 @@ declare module '@remix-run/node' {
1010

1111
export default defineConfig({
1212
root: __dirname,
13-
plugins: [
14-
remix({
15-
future: {
16-
v3_fetcherPersist: true,
17-
v3_relativeSplatPath: true,
18-
v3_throwAbortReason: true,
19-
v3_singleFetch: true,
20-
v3_lazyRouteDiscovery: true,
21-
},
22-
}),
23-
nxViteTsPaths(),
24-
],
13+
cacheDir: '../../node_modules/.vite/apps/books-app',
14+
server: {
15+
port: 4200,
16+
host: 'localhost',
17+
},
18+
preview: {
19+
port: 4300,
20+
host: 'localhost',
21+
},
22+
plugins: [remix(), nxViteTsPaths()],
23+
// Uncomment this if you are using workers.
24+
// worker: {
25+
// plugins: [ nxViteTsPaths() ],
26+
// },
27+
build: {
28+
outDir: '../../dist/apps/books-app',
29+
reportCompressedSize: true,
30+
commonjsOptions: {
31+
transformMixedEsModules: true,
32+
},
33+
},
2534
});

apps/hello-api/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"version": "0.0.1",
3+
"private": true
4+
}

apps/hello-api/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "apps/hello-api/src",
55
"projectType": "application",
6-
"tags": [],
6+
"tags": ["type:app", "deployable"],
77
"targets": {
88
"build": {
99
"executor": "nx:run-commands",

libs/books-api-client/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
}
1212
}
1313
},
14-
"tags": [],
14+
"tags": ["publishable"],
1515
"targets": {
1616
"build": {
1717
"executor": "@nx/vite:build",

libs/books-api-contracts/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
}
1212
}
1313
},
14-
"tags": [],
14+
"tags": ["publishable"],
1515
"targets": {
1616
"build": {
1717
"executor": "@nx/vite:build",

libs/lorem-book-summarizer/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "libs/lorem-book-summarizer/src",
55
"projectType": "library",
6-
"tags": [],
6+
"tags": ["publishable"],
77
"targets": {
88
"build": {
99
"executor": "@nx/js:tsc",

libs/nest-bootstrap/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"extends": "../../tsconfig.base.json",
33
"compilerOptions": {
4-
"module": "commonjs",
54
"forceConsistentCasingInFileNames": true,
65
"strict": true,
76
"noImplicitOverride": true,

libs/nest-logger/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "@thdk/nest-logger",
3+
"version": "0.0.1"
4+
}

0 commit comments

Comments
 (0)