Skip to content

Commit

Permalink
fix: add version command to apps
Browse files Browse the repository at this point in the history
  • Loading branch information
temarusanov committed Nov 2, 2023
1 parent 0191b54 commit 08b40ec
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 13 deletions.
32 changes: 25 additions & 7 deletions apps/api/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,21 @@
"targets": {
"build": {
"executor": "@nx/webpack:webpack",
"dependsOn": ["^prisma:generate"],
"outputs": ["{options.outputPath}"],
"dependsOn": [
"^prisma:generate"
],
"outputs": [
"{options.outputPath}"
],
"options": {
"target": "node",
"compiler": "tsc",
"outputPath": "dist/apps/api",
"main": "apps/api/src/main.ts",
"tsConfig": "apps/api/tsconfig.app.json",
"assets": ["apps/api/src/assets"]
"assets": [
"apps/api/src/assets"
]
},
"configurations": {
"production": {
Expand Down Expand Up @@ -43,19 +49,31 @@
},
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"outputs": [
"{options.outputFile}"
],
"options": {
"lintFilePatterns": ["apps/api/**/*.ts"]
"lintFilePatterns": [
"apps/api/**/*.ts"
]
}
},
"version": {
"executor": "@jscutlery/semver:version",
"options": {
"trackDeps": true
}
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"outputs": [
"{workspaceRoot}/coverage/{projectRoot}"
],
"options": {
"jestConfig": "apps/api/jest.config.ts",
"passWithNoTests": true
}
}
},
"tags": []
}
}
28 changes: 22 additions & 6 deletions apps/gateway/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@
"build": {
"executor": "@nx/webpack:webpack",
"dependsOn": [],
"outputs": ["{options.outputPath}"],
"outputs": [
"{options.outputPath}"
],
"options": {
"target": "node",
"compiler": "tsc",
"outputPath": "dist/apps/gateway",
"main": "apps/gateway/src/main.ts",
"tsConfig": "apps/gateway/tsconfig.app.json",
"assets": ["apps/gateway/src/assets"]
"assets": [
"apps/gateway/src/assets"
]
},
"configurations": {
"production": {
Expand Down Expand Up @@ -43,19 +47,31 @@
},
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"outputs": [
"{options.outputFile}"
],
"options": {
"lintFilePatterns": ["apps/gateway/**/*.ts"]
"lintFilePatterns": [
"apps/gateway/**/*.ts"
]
}
},
"version": {
"executor": "@jscutlery/semver:version",
"options": {
"trackDeps": true
}
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"outputs": [
"{workspaceRoot}/coverage/{projectRoot}"
],
"options": {
"jestConfig": "apps/gateway/jest.config.ts",
"passWithNoTests": true
}
}
},
"tags": []
}
}

0 comments on commit 08b40ec

Please sign in to comment.