Skip to content

Commit

Permalink
Move lifecycle config to file
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobLey committed Dec 29, 2024
1 parent f119427 commit 9b0d6f0
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 60 deletions.
63 changes: 63 additions & 0 deletions leyman/main/lifecycle.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"$schema": "../../apps/nx-lifecycle/src/lifecycle/schema.json",
"stages": {
"analyze": {
"hooks": [
"format",
"lint"
],
"dependsOn": [
"^build",
"install"
]
},
"build": {
"hooks": [
"pre",
"run",
"post"
],
"dependsOn": [
"^build",
"analyze",
"install"
]
},
"install": {
"dependsOn": [
"^build"
]
},
"test": {
"hooks": [
"reset",
"run",
"report"
],
"dependsOn": [
"^test",
"analyze",
"build",
"install"
]
}
},
"bindings": {
"pnpm-dedicated-lockfile": "install",
"npm-pnpm-dedicated-lockfile": "install",
"eslint": "analyze:lint",
"biome": "analyze:format",
"barrelify": "build:pre",
"delete-dist": "build:pre",
"populate-static": "build:pre",
"update-ts-references": "build:pre",
"npm-update-ts-references": "build:pre",
"tsc": "build:run",
"populate-files": "build:post",
"npm-populate-files": "build:post",
"coverage-reset": "test:reset",
"mocha-unit-test": "test:run",
"mocha-integration-test": "test:run",
"coverage-report": "test:report"
}
}
61 changes: 1 addition & 60 deletions leyman/main/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,66 +16,7 @@
"lifecycle": {
"executor": "nx-lifecycle:lifecycle",
"options": {
"stages": {
"analyze": {
"hooks": [
"format",
"lint"
],
"dependsOn": [
"^build",
"install"
]
},
"build": {
"hooks": [
"pre",
"run",
"post"
],
"dependsOn": [
"^build",
"analyze",
"install"
]
},
"install": {
"dependsOn": [
"^build"
]
},
"test": {
"hooks": [
"reset",
"run",
"report"
],
"dependsOn": [
"^test",
"analyze",
"build",
"install"
]
}
},
"bindings": {
"pnpm-dedicated-lockfile": "install",
"npm-pnpm-dedicated-lockfile": "install",
"eslint": "analyze:lint",
"biome": "analyze:format",
"barrelify": "build:pre",
"delete-dist": "build:pre",
"populate-static": "build:pre",
"update-ts-references": "build:pre",
"npm-update-ts-references": "build:pre",
"tsc": "build:run",
"populate-files": "build:post",
"npm-populate-files": "build:post",
"coverage-reset": "test:reset",
"mocha-unit-test": "test:run",
"mocha-integration-test": "test:run",
"coverage-report": "test:report"
}
"configFile": "{projectRoot}/lifecycle.json"
},
"dependsOn": [
"^build"
Expand Down

0 comments on commit 9b0d6f0

Please sign in to comment.