@rxap/schematic-composer 0.0.2-dev.0
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 +8 -0
- package/GETSTARTED.md +0 -0
- package/GUIDES.md +0 -0
- package/README.md +21 -0
- package/collection.json +9 -0
- package/package.json +50 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +3 -0
- package/src/index.js.map +1 -0
- package/src/schematics/compose/index.d.ts +3 -0
- package/src/schematics/compose/index.js +119 -0
- package/src/schematics/compose/index.js.map +1 -0
- package/src/schematics/compose/schema.d.ts +7 -0
- package/src/schematics/compose/schema.json +27 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## 0.0.2-dev.0 (2023-08-01)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @rxap/schematic-composer
|
package/GETSTARTED.md
ADDED
|
File without changes
|
package/GUIDES.md
ADDED
|
File without changes
|
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# @rxap/schematic-composer
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@rxap/schematic-composer)
|
|
4
|
+
[](https://commitizen.github.io/cz-cli/)
|
|
5
|
+
[](https://github.com/prettier/prettier)
|
|
6
|
+

|
|
7
|
+

|
|
8
|
+

|
|
9
|
+
|
|
10
|
+
- [Installation](#installation)
|
|
11
|
+
|
|
12
|
+
# Installation
|
|
13
|
+
|
|
14
|
+
**Add the package to your workspace:**
|
|
15
|
+
```bash
|
|
16
|
+
yarn add @rxap/schematic-composer
|
|
17
|
+
```
|
|
18
|
+
**Install peer dependencies:**
|
|
19
|
+
```bash
|
|
20
|
+
yarn add
|
|
21
|
+
```
|
package/collection.json
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@rxap/schematic-composer",
|
|
3
|
+
"version": "0.0.2-dev.0",
|
|
4
|
+
"type": "commonjs",
|
|
5
|
+
"schematics": "./collection.json",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public",
|
|
8
|
+
"directory": "../../../dist/packages/schematic/composer"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"rxap",
|
|
12
|
+
"packages",
|
|
13
|
+
"schematic",
|
|
14
|
+
"composer"
|
|
15
|
+
],
|
|
16
|
+
"homepage": "https:/gitlab.com/rxap/packages/packages/schematic/composer",
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://gitlab.com/rxap/packages/-/issues",
|
|
19
|
+
"email": "incoming+rxap-packages-14898188-issue-@incoming.gitlab.com"
|
|
20
|
+
},
|
|
21
|
+
"license": "GPL-3.0-or-later",
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "https://gitlab.com/rxap/packages.git",
|
|
25
|
+
"directory": "packages/schematic/composer"
|
|
26
|
+
},
|
|
27
|
+
"author": {
|
|
28
|
+
"name": "Merzough Münker",
|
|
29
|
+
"email": "mmuenker@digitaix.com"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"ignore": "^5.2.4",
|
|
33
|
+
"semver": "^7.3.5",
|
|
34
|
+
"ts-morph": "18.0.0",
|
|
35
|
+
"tslib": "2.6.1"
|
|
36
|
+
},
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"@angular-devkit/schematics": "^16.1.4",
|
|
39
|
+
"@rxap/schematics-ts-morph": "^16.0.0-dev.5",
|
|
40
|
+
"@rxap/schematics-utilities": "^16.0.0-dev.6",
|
|
41
|
+
"@rxap/utilities": "^16.0.0-dev.4",
|
|
42
|
+
"@rxap/node-utilities": "1.0.1-dev.2",
|
|
43
|
+
"@rxap/schematic-angular": "16.0.1-dev.0",
|
|
44
|
+
"@rxap/workspace-ts-morph": "0.0.2-dev.0",
|
|
45
|
+
"@rxap/workspace-utilities": "0.1.0-dev.0"
|
|
46
|
+
},
|
|
47
|
+
"gitHead": "ed3a0788894aa734ec2a8e9e957cf73cabe033d6",
|
|
48
|
+
"main": "./src/index.js",
|
|
49
|
+
"types": "./src/index.d.ts"
|
|
50
|
+
}
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/src/index.js
ADDED
package/src/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/schematic/composer/src/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
4
|
+
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
5
|
+
const utilities_1 = require("@rxap/utilities");
|
|
6
|
+
const path_1 = require("path");
|
|
7
|
+
const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
|
|
8
|
+
function detectedFeature(path) {
|
|
9
|
+
const fragments = path.split('/').reverse();
|
|
10
|
+
let last = fragments.pop();
|
|
11
|
+
for (const fragment of fragments) {
|
|
12
|
+
if (fragment === 'feature') {
|
|
13
|
+
return last;
|
|
14
|
+
}
|
|
15
|
+
last = fragment;
|
|
16
|
+
}
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
function executeSchematicCommandFile(host, schematicCommandFilePath, globalOptions) {
|
|
20
|
+
var _a, _b;
|
|
21
|
+
const schematicCommandFile = (_a = host.read(schematicCommandFilePath)) === null || _a === void 0 ? void 0 : _a.toString('utf-8');
|
|
22
|
+
if (!schematicCommandFile) {
|
|
23
|
+
throw new schematics_1.SchematicsException(`The schematic command file '${schematicCommandFilePath}' does not exists!`);
|
|
24
|
+
}
|
|
25
|
+
const schematicCommandList = JSON.parse(schematicCommandFile);
|
|
26
|
+
const ruleList = [];
|
|
27
|
+
for (const command of schematicCommandList) {
|
|
28
|
+
const options = Object.assign(Object.assign({}, globalOptions), command.options);
|
|
29
|
+
(_b = options.feature) !== null && _b !== void 0 ? _b : (options.feature = detectedFeature(schematicCommandFilePath));
|
|
30
|
+
ruleList.push((0, schematics_1.chain)([
|
|
31
|
+
() => console.log(`Execute schematic '${command.package}:${command.name}'`),
|
|
32
|
+
() => console.log('Options:', JSON.stringify(options)),
|
|
33
|
+
() => {
|
|
34
|
+
try {
|
|
35
|
+
return (0, schematics_1.externalSchematic)(command.package, command.name, options);
|
|
36
|
+
}
|
|
37
|
+
catch (e) {
|
|
38
|
+
console.error(`Error while executing schematic '${command.package}:${command.name}'`);
|
|
39
|
+
console.log('Retry with this schematic with the command:');
|
|
40
|
+
console.log(`nx g @rxap/schematic-composer:compose --project ${options.project} --feature ${options.feature} --filter ${(0, path_1.dirname)(schematicCommandFilePath).split('/').pop()}`);
|
|
41
|
+
throw e;
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
]));
|
|
45
|
+
}
|
|
46
|
+
return (0, schematics_1.chain)(ruleList);
|
|
47
|
+
}
|
|
48
|
+
function getSchematicCommandList(host, sourceRoot) {
|
|
49
|
+
const schematicCommandList = [];
|
|
50
|
+
host.getDir(sourceRoot).visit((path, entry) => {
|
|
51
|
+
if (entry === null || entry === void 0 ? void 0 : entry.path.endsWith('schematic.json')) {
|
|
52
|
+
schematicCommandList.push(path);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
return schematicCommandList;
|
|
56
|
+
}
|
|
57
|
+
function getSchematicCommandRuleList(host, schematicCommandList, globalOptions) {
|
|
58
|
+
const ruleList = [];
|
|
59
|
+
for (const schematicCommandFilePath of schematicCommandList) {
|
|
60
|
+
ruleList.push((0, schematics_1.chain)([
|
|
61
|
+
() => console.log(`Execute schematic command file '${schematicCommandFilePath}'`),
|
|
62
|
+
executeSchematicCommandFile(host, schematicCommandFilePath, globalOptions),
|
|
63
|
+
]));
|
|
64
|
+
}
|
|
65
|
+
return (0, schematics_1.chain)(ruleList);
|
|
66
|
+
}
|
|
67
|
+
function executeSchematicCommand(host, sourceRoot, globalOptions, filter) {
|
|
68
|
+
let schematicCommandList = getSchematicCommandList(host, sourceRoot);
|
|
69
|
+
if (filter) {
|
|
70
|
+
schematicCommandList = schematicCommandList.filter(path => (0, path_1.dirname)(path).split('/').pop() === filter);
|
|
71
|
+
}
|
|
72
|
+
return getSchematicCommandRuleList(host, schematicCommandList, globalOptions);
|
|
73
|
+
}
|
|
74
|
+
function forFeature(host, projectName, featureName, globalOptions, filter) {
|
|
75
|
+
const projectSourceRoot = (0, schematics_utilities_1.GetProjectSourceRoot)(host, projectName);
|
|
76
|
+
const featureSourceRoot = (0, path_1.join)(projectSourceRoot, 'feature', featureName);
|
|
77
|
+
console.log('Use feature source root:', featureSourceRoot);
|
|
78
|
+
if (!(0, schematics_ts_morph_1.HasProjectFeature)(host, {
|
|
79
|
+
project: projectName,
|
|
80
|
+
feature: featureName,
|
|
81
|
+
})) {
|
|
82
|
+
throw new schematics_1.SchematicsException(`The feature '${featureName}' does not exists in project '${projectName}'`);
|
|
83
|
+
}
|
|
84
|
+
return executeSchematicCommand(host, featureSourceRoot, globalOptions, filter);
|
|
85
|
+
}
|
|
86
|
+
function forProject(host, projectName, globalOptions, filter) {
|
|
87
|
+
const projectSourceRoot = (0, schematics_utilities_1.GetProjectSourceRoot)(host, projectName);
|
|
88
|
+
console.log('Use project source root:', projectSourceRoot);
|
|
89
|
+
return executeSchematicCommand(host, projectSourceRoot, globalOptions, filter);
|
|
90
|
+
}
|
|
91
|
+
function NormalizeComposeOptions(options) {
|
|
92
|
+
var _a;
|
|
93
|
+
return Object.seal({
|
|
94
|
+
project: options.project ? (0, utilities_1.dasherize)(options.project) : undefined,
|
|
95
|
+
feature: options.feature ? (0, utilities_1.dasherize)(options.feature) : undefined,
|
|
96
|
+
filter: (_a = options.filter) !== null && _a !== void 0 ? _a : undefined,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
function default_1(options) {
|
|
100
|
+
const normalizedOptions = NormalizeComposeOptions(options);
|
|
101
|
+
const { project, feature, filter, } = normalizedOptions;
|
|
102
|
+
const globalOptions = {
|
|
103
|
+
overwrite: options.overwrite,
|
|
104
|
+
replace: options.replace,
|
|
105
|
+
project: project,
|
|
106
|
+
feature: feature,
|
|
107
|
+
};
|
|
108
|
+
return (host) => {
|
|
109
|
+
if (project) {
|
|
110
|
+
if (feature) {
|
|
111
|
+
return forFeature(host, project, feature, globalOptions, filter);
|
|
112
|
+
}
|
|
113
|
+
return forProject(host, project, globalOptions, filter);
|
|
114
|
+
}
|
|
115
|
+
throw new Error('Not yet implemented - project and feature options are required!');
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
exports.default = default_1;
|
|
119
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/composer/src/schematics/compose/index.ts"],"names":[],"mappings":";;AAAA,2DAMoC;AAEpC,qEAGoC;AACpC,+CAA4C;AAC5C,+BAGc;AACd,mEAA8D;AAQ9D,SAAS,eAAe,CAAC,IAAY;IACnC,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC;IAC5C,IAAI,IAAI,GAAG,SAAS,CAAC,GAAG,EAAE,CAAC;IAC3B,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE;QAChC,IAAI,QAAQ,KAAK,SAAS,EAAE;YAC1B,OAAO,IAAI,CAAC;SACb;QACD,IAAI,GAAG,QAAQ,CAAC;KACjB;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,SAAS,2BAA2B,CAClC,IAAU,EACV,wBAAgC,EAChC,aAAqC;;IAGrC,MAAM,oBAAoB,GA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AC,IAAA,qBAAS,EAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;QACjE,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,IAAA,qBAAS,EAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;QACjE,MAAM,EAAE,MAAA,OAAO,CAAC,MAAM,mCAAI,SAAS;KACpC,CAAC,CAAC;AACL,CAAC;AAED,mBAAyB,OAA+B;IACtD,MAAM,iBAAiB,GAAG,uBAAuB,CAAC,OAAO,CAAC,CAAC;IAC3D,MAAM,EACJ,OAAO,EACP,OAAO,EACP,MAAM,GACP,GAAG,iBAAiB,CAAC;IAEtB,MAAM,aAAa,GAA2B;QAC5C,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,OAAO,EAAE,OAAO;QAChB,OAAO,EAAE,OAAO;KACjB,CAAC;IAEF,OAAO,CAAC,IAAU,EAAE,EAAE;QAEpB,IAAI,OAAO,EAAE;YACX,IAAI,OAAO,EAAE;gBACX,OAAO,UAAU,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,CAAC,CAAC;aAClE;YACD,OAAO,UAAU,CAAC,IAAI,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,CAAC,CAAC;SACzD;QAED,MAAM,IAAI,KAAK,CAAC,iEAAiE,CAAC,CAAC;IACrF,CAAC,CAAC;AACJ,CAAC;AA1BD,4BA0BC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "Compose",
|
|
4
|
+
"title": "",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"project": {
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
10
|
+
"feature": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"overwrite": {
|
|
14
|
+
"description": "Overwrite the existing file if it exists",
|
|
15
|
+
"type": "boolean"
|
|
16
|
+
},
|
|
17
|
+
"replace": {
|
|
18
|
+
"description": "Replace the existing file if it exists",
|
|
19
|
+
"type": "boolean"
|
|
20
|
+
},
|
|
21
|
+
"filter": {
|
|
22
|
+
"description": "Filter by the folder name of the schematic file",
|
|
23
|
+
"type": "string"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required": []
|
|
27
|
+
}
|