nx-lifecycle 0.0.2
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/CHANGELOG.md +25 -0
- package/LICENSE +21 -0
- package/README.md +196 -0
- package/dist/executors/lifecycle/constants.d.ts +2 -0
- package/dist/executors/lifecycle/constants.js +2 -0
- package/dist/executors/lifecycle/depedencies.d.ts +13 -0
- package/dist/executors/lifecycle/depedencies.js +11 -0
- package/dist/executors/lifecycle/index.cjs +13 -0
- package/dist/executors/lifecycle/index.d.cts +49 -0
- package/dist/executors/lifecycle/index.d.ts +47 -0
- package/dist/executors/lifecycle/index.js +22 -0
- package/dist/executors/lifecycle/lifecycle.d.ts +23 -0
- package/dist/executors/lifecycle/lifecycle.js +102 -0
- package/dist/executors/lifecycle/normalizer.d.ts +23 -0
- package/dist/executors/lifecycle/normalizer.js +21 -0
- package/dist/executors/lifecycle/processor.d.ts +15 -0
- package/dist/executors/lifecycle/processor.js +239 -0
- package/dist/executors/lifecycle/types.d.ts +3 -0
- package/dist/executors/lifecycle/types.js +2 -0
- package/dist/schemas/configurations.d.ts +10 -0
- package/dist/schemas/configurations.js +21 -0
- package/dist/schemas/depend-on.d.ts +52 -0
- package/dist/schemas/depend-on.js +37 -0
- package/dist/schemas/empty.d.ts +6 -0
- package/dist/schemas/empty.js +7 -0
- package/dist/schemas/index.d.ts +7 -0
- package/dist/schemas/index.js +7 -0
- package/dist/schemas/lib/ajv.d.ts +3 -0
- package/dist/schemas/lib/ajv.js +7 -0
- package/dist/schemas/nx-json.d.ts +60 -0
- package/dist/schemas/nx-json.js +13 -0
- package/dist/schemas/project-json.d.ts +60 -0
- package/dist/schemas/project-json.js +13 -0
- package/dist/schemas/target.d.ts +99 -0
- package/dist/schemas/target.js +14 -0
- package/executors.json +9 -0
- package/package.json +72 -0
- package/src/executors/lifecycle/schema.json +98 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { objectSchema, stringSchema } from 'juniper';
|
|
2
|
+
import { configurationsSchema } from './configurations.js';
|
|
3
|
+
import { dependsOnSchema } from './depend-on.js';
|
|
4
|
+
const targetSchema = objectSchema({
|
|
5
|
+
properties: {
|
|
6
|
+
executor: stringSchema(),
|
|
7
|
+
dependsOn: dependsOnSchema,
|
|
8
|
+
configurations: configurationsSchema
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
export const allTargetsSchema = objectSchema({
|
|
12
|
+
additionalProperties: targetSchema
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=target.js.map
|
package/executors.json
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "nx-lifecycle",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "Keep high level nx lifecycle targets in sync",
|
|
5
|
+
"engines": {
|
|
6
|
+
"node": ">=20"
|
|
7
|
+
},
|
|
8
|
+
"type": "module",
|
|
9
|
+
"author": "JacobLey",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"repository": "JacobLey/leyman",
|
|
12
|
+
"homepage": "https://github.com/JacobLey/leyman/tree/main/apps/nx-lifecycle#readme",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/JacobLey/leyman/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"nx",
|
|
18
|
+
"lifecycle",
|
|
19
|
+
"build",
|
|
20
|
+
"test",
|
|
21
|
+
"format",
|
|
22
|
+
"lint"
|
|
23
|
+
],
|
|
24
|
+
"sideEffects": false,
|
|
25
|
+
"executors": "./executors.json",
|
|
26
|
+
"exports": {
|
|
27
|
+
"./package.json": {
|
|
28
|
+
"default": "./package.json"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"imports": {
|
|
32
|
+
"#schemas": {
|
|
33
|
+
"types": "./src/schemas/index.ts",
|
|
34
|
+
"default": "./dist/schemas/index.js"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"ajv": "^8.17.1",
|
|
39
|
+
"ci-info": "^4.0.0",
|
|
40
|
+
"fast-equals": "^5.0.1",
|
|
41
|
+
"common-proxy": "^0.0.2",
|
|
42
|
+
"default-import": "^1.1.6",
|
|
43
|
+
"format-file": "^0.0.5",
|
|
44
|
+
"haywire": "^0.1.0",
|
|
45
|
+
"juniper": "^1.1.11",
|
|
46
|
+
"nx-plugin-handler": "^0.0.3"
|
|
47
|
+
},
|
|
48
|
+
"optionalDependencies": {
|
|
49
|
+
"@nx/devkit": "19.5.6"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@biomejs/biome": "^1.8.3",
|
|
53
|
+
"@types/chai": "^4.3.17",
|
|
54
|
+
"@types/chai-as-promised": "^7.1.8",
|
|
55
|
+
"@types/mocha": "^10.0.7",
|
|
56
|
+
"@types/node": "^22.1.0",
|
|
57
|
+
"@types/sinon": "^17.0.3",
|
|
58
|
+
"c8": "^10.1.2",
|
|
59
|
+
"chai": "^5.1.1",
|
|
60
|
+
"chai-as-promised": "^8.0.0",
|
|
61
|
+
"mocha": "^10.7.0",
|
|
62
|
+
"sinon": "^18.0.0",
|
|
63
|
+
"typescript": "^5.5.4",
|
|
64
|
+
"@leyman/eslint-config": "^0.0.0",
|
|
65
|
+
"load-populate-files": "^0.0.3",
|
|
66
|
+
"mocha-chain": "^0.0.2",
|
|
67
|
+
"nx-populate-files": "^0.0.4",
|
|
68
|
+
"nx-tsc": "^0.0.7",
|
|
69
|
+
"nx-update-ts-references": "^0.0.3",
|
|
70
|
+
"sinon-typed-stub": "^0.0.2"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"outputCapture": "direct-nodejs",
|
|
4
|
+
"cli": "nx",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "lifecycle",
|
|
7
|
+
"description": "Update TSConfig references based on dependencies",
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"check": {
|
|
11
|
+
"type": "boolean",
|
|
12
|
+
"description": "Fails if references are not already updated, will not overwrite. Defaults to true during CI, false otherwise."
|
|
13
|
+
},
|
|
14
|
+
"dryRun": {
|
|
15
|
+
"type": "boolean",
|
|
16
|
+
"description": "Load files and content, but do not write anything."
|
|
17
|
+
},
|
|
18
|
+
"stages": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"description": "Lifecycle stages by name",
|
|
21
|
+
"additionalProperties": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"properties": {
|
|
24
|
+
"dependsOn": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": {
|
|
27
|
+
"oneOf": [
|
|
28
|
+
{
|
|
29
|
+
"type": "string"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"type": "object",
|
|
33
|
+
"oneOf": [
|
|
34
|
+
{
|
|
35
|
+
"properties": {
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"type": "boolean"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"properties": {
|
|
43
|
+
"projects": {
|
|
44
|
+
"oneOf": [
|
|
45
|
+
{
|
|
46
|
+
"type": "array",
|
|
47
|
+
"items": {
|
|
48
|
+
"type": "string"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"type": "string"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"required": [
|
|
58
|
+
"projects"
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"properties": {
|
|
63
|
+
"target": {
|
|
64
|
+
"type": "string"
|
|
65
|
+
},
|
|
66
|
+
"params": {
|
|
67
|
+
"enum": [
|
|
68
|
+
"forward",
|
|
69
|
+
"ignore"
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"required": [
|
|
74
|
+
"target"
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"hooks": {
|
|
81
|
+
"type": "array",
|
|
82
|
+
"items": {
|
|
83
|
+
"type": "string"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"bindings": {
|
|
90
|
+
"type": "object",
|
|
91
|
+
"description": "Bind targets to hooks",
|
|
92
|
+
"additionalProperties": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"description": "Name of hook in `stage:hook` format"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|