@rxap/plugin-library 16.0.0-dev.3 → 16.0.0-dev.6
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 +56 -185
- package/README.md +80 -127
- package/executors.json +24 -0
- package/generators.json +24 -0
- package/package.json +58 -40
- package/src/executors/readme/executor.d.ts +5 -0
- package/src/executors/readme/executor.js +143 -0
- package/src/executors/readme/executor.js.map +1 -0
- package/src/executors/readme/schema.d.ts +1 -0
- package/src/{builders/update-package-group → executors/readme}/schema.json +2 -3
- package/src/executors/run-generator/executor.d.ts +5 -0
- package/src/executors/run-generator/executor.js +46 -0
- package/src/executors/run-generator/executor.js.map +1 -0
- package/src/executors/run-generator/schema.d.ts +6 -0
- package/src/executors/run-generator/schema.json +27 -0
- package/src/executors/update-dependencies/executor.d.ts +5 -0
- package/src/executors/update-dependencies/executor.js +32 -0
- package/src/executors/update-dependencies/executor.js.map +1 -0
- package/src/executors/update-dependencies/schema.d.ts +1 -0
- package/src/executors/update-dependencies/schema.json +9 -0
- package/src/executors/update-package-group/executor.d.ts +5 -0
- package/src/executors/update-package-group/executor.js +45 -0
- package/src/executors/update-package-group/executor.js.map +1 -0
- package/src/executors/update-package-group/schema.d.ts +1 -0
- package/src/executors/update-package-group/schema.json +9 -0
- package/src/generators/fix-dependencies/generator.d.ts +27 -0
- package/src/generators/fix-dependencies/generator.js +547 -0
- package/src/generators/fix-dependencies/generator.js.map +1 -0
- package/src/generators/fix-dependencies/schema.d.ts +8 -0
- package/src/generators/fix-dependencies/schema.json +31 -0
- package/src/generators/index-export/generator.d.ts +4 -0
- package/src/generators/index-export/generator.js +52 -0
- package/src/generators/index-export/generator.js.map +1 -0
- package/src/generators/index-export/schema.d.ts +3 -0
- package/src/generators/index-export/schema.json +16 -0
- package/src/generators/init/files/README.md.handlebars +115 -0
- package/src/generators/init/generator.d.ts +4 -0
- package/src/generators/init/generator.js +261 -0
- package/src/generators/init/generator.js.map +1 -0
- package/src/generators/init/schema.d.ts +3 -0
- package/src/generators/init/schema.json +16 -0
- package/src/generators/schematic/files/schematic/__fileName__/index.ts.template +8 -0
- package/src/generators/schematic/files/schematic/__fileName__/schema.d.ts.template +3 -0
- package/src/generators/schematic/files/schematic/__fileName__/schema.json.template +18 -0
- package/src/generators/schematic/generator.d.ts +6 -0
- package/src/generators/schematic/generator.js +137 -0
- package/src/generators/schematic/generator.js.map +1 -0
- package/src/generators/schematic/schema.d.ts +6 -0
- package/src/generators/schematic/schema.json +43 -0
- package/src/index.d.ts +0 -1
- package/src/index.js +0 -2
- package/src/index.js.map +1 -1
- package/LICENSE +0 -630
- package/builders.json +0 -20
- package/collection.json +0 -32
- package/migration.json +0 -4
- package/src/builders/build-schematics/builder.d.ts +0 -13
- package/src/builders/build-schematics/builder.js +0 -84
- package/src/builders/build-schematics/builder.js.map +0 -1
- package/src/builders/build-schematics/schema.json +0 -78
- package/src/builders/update-package-group/builder.d.ts +0 -19
- package/src/builders/update-package-group/builder.js +0 -89
- package/src/builders/update-package-group/builder.js.map +0 -1
- package/src/builders/update-package-group/read-file.d.ts +0 -7
- package/src/builders/update-package-group/read-file.js +0 -11
- package/src/builders/update-package-group/read-file.js.map +0 -1
- package/src/builders/update-package-group/write-file.d.ts +0 -5
- package/src/builders/update-package-group/write-file.js +0 -11
- package/src/builders/update-package-group/write-file.js.map +0 -1
- package/src/builders/update-peer-dependencies/builder.d.ts +0 -40
- package/src/builders/update-peer-dependencies/builder.js +0 -293
- package/src/builders/update-peer-dependencies/builder.js.map +0 -1
- package/src/builders/update-peer-dependencies/schema.json +0 -33
- package/src/builders/utils/assets.d.ts +0 -14
- package/src/builders/utils/assets.js +0 -54
- package/src/builders/utils/assets.js.map +0 -1
- package/src/builders/utils/compile-typescript-files.d.ts +0 -13
- package/src/builders/utils/compile-typescript-files.js +0 -56
- package/src/builders/utils/compile-typescript-files.js.map +0 -1
- package/src/builders/utils/equals.d.ts +0 -1
- package/src/builders/utils/equals.js +0 -200
- package/src/builders/utils/equals.js.map +0 -1
- package/src/builders/utils/unique.d.ts +0 -1
- package/src/builders/utils/unique.js +0 -8
- package/src/builders/utils/unique.js.map +0 -1
- package/src/schematics/config/index.d.ts +0 -3
- package/src/schematics/config/index.js +0 -17
- package/src/schematics/config/index.js.map +0 -1
- package/src/schematics/config/schema.json +0 -50
- package/src/schematics/config-schematics/coerce-builders-json.d.ts +0 -2
- package/src/schematics/config-schematics/coerce-builders-json.js +0 -23
- package/src/schematics/config-schematics/coerce-builders-json.js.map +0 -1
- package/src/schematics/config-schematics/coerce-builders.d.ts +0 -1
- package/src/schematics/config-schematics/coerce-builders.js +0 -11
- package/src/schematics/config-schematics/coerce-builders.js.map +0 -1
- package/src/schematics/config-schematics/coerce-collection-json.d.ts +0 -2
- package/src/schematics/config-schematics/coerce-collection-json.js +0 -23
- package/src/schematics/config-schematics/coerce-collection-json.js.map +0 -1
- package/src/schematics/config-schematics/coerce-migration-json.d.ts +0 -2
- package/src/schematics/config-schematics/coerce-migration-json.js +0 -23
- package/src/schematics/config-schematics/coerce-migration-json.js.map +0 -1
- package/src/schematics/config-schematics/coerce-ng-update.d.ts +0 -1
- package/src/schematics/config-schematics/coerce-ng-update.js +0 -21
- package/src/schematics/config-schematics/coerce-ng-update.js.map +0 -1
- package/src/schematics/config-schematics/coerce-schematics.d.ts +0 -1
- package/src/schematics/config-schematics/coerce-schematics.js +0 -11
- package/src/schematics/config-schematics/coerce-schematics.js.map +0 -1
- package/src/schematics/config-schematics/index.d.ts +0 -3
- package/src/schematics/config-schematics/index.js +0 -82
- package/src/schematics/config-schematics/index.js.map +0 -1
- package/src/schematics/config-schematics/init-src-files.d.ts +0 -2
- package/src/schematics/config-schematics/init-src-files.js +0 -16
- package/src/schematics/config-schematics/init-src-files.js.map +0 -1
- package/src/schematics/config-schematics/schema.json +0 -47
- package/src/schematics/config-update-package-group/index.d.ts +0 -3
- package/src/schematics/config-update-package-group/index.js +0 -21
- package/src/schematics/config-update-package-group/index.js.map +0 -1
- package/src/schematics/config-update-package-group/schema.json +0 -21
- package/src/schematics/config-update-peer-dependencies/index.d.ts +0 -3
- package/src/schematics/config-update-peer-dependencies/index.js +0 -26
- package/src/schematics/config-update-peer-dependencies/index.js.map +0 -1
- package/src/schematics/config-update-peer-dependencies/schema.json +0 -28
- package/src/schematics/ng-add/index.d.ts +0 -3
- package/src/schematics/ng-add/index.js +0 -21
- package/src/schematics/ng-add/index.js.map +0 -1
- package/src/schematics/ng-add/schema.json +0 -17
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"$id": "library-config-schematics",
|
|
4
|
-
"title": "ConfigSchematics",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"project": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"description": "The name of the project.",
|
|
10
|
-
"$default": {
|
|
11
|
-
"$source": "argv",
|
|
12
|
-
"index": 0
|
|
13
|
-
},
|
|
14
|
-
"x-prompt": "For which project should the schematics builder be added?"
|
|
15
|
-
},
|
|
16
|
-
"type": {
|
|
17
|
-
"type": "string",
|
|
18
|
-
"enum": [
|
|
19
|
-
"migrations",
|
|
20
|
-
"schematics",
|
|
21
|
-
"builders"
|
|
22
|
-
],
|
|
23
|
-
"x-prompt": {
|
|
24
|
-
"type": "list",
|
|
25
|
-
"message": "For which type of schematics should the schematics builder be added?",
|
|
26
|
-
"items": [
|
|
27
|
-
{
|
|
28
|
-
"value": "schematics",
|
|
29
|
-
"label": "collection.json"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"value": "migrations",
|
|
33
|
-
"label": "migration.json"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"value": "builders",
|
|
37
|
-
"label": "builders.json"
|
|
38
|
-
}
|
|
39
|
-
]
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"required": [
|
|
44
|
-
"project",
|
|
45
|
-
"type"
|
|
46
|
-
]
|
|
47
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|
-
function default_1(options) {
|
|
6
|
-
return () => {
|
|
7
|
-
return (0, schematics_1.chain)([
|
|
8
|
-
(0, schematics_utilities_1.UpdateAngularProject)((project) => {
|
|
9
|
-
if (!project.targets.has('update-package-group')) {
|
|
10
|
-
project.targets.add('update-package-group', {
|
|
11
|
-
builder: '@rxap/plugin-library:update-package-group'
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
}, {
|
|
15
|
-
projectName: options.project
|
|
16
|
-
})
|
|
17
|
-
]);
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
exports.default = default_1;
|
|
21
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/library/src/schematics/config-update-package-group/index.ts"],"names":[],"mappings":";;AAAA,2DAAyD;AAEzD,qEAAkE;AAElE,mBAAwB,OAAqB;IAE3C,OAAO,GAAG,EAAE;QAEV,OAAO,IAAA,kBAAK,EAAC;YACX,IAAA,2CAAoB,EAAC,CAAC,OAAO,EAAE,EAAE;gBAE/B,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,EAAE;oBAChD,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE;wBAC1C,OAAO,EAAE,2CAA2C;qBACrD,CAAC,CAAC;iBACJ;YAEH,CAAC,EAAE;gBACD,WAAW,EAAE,OAAO,CAAC,OAAO;aAC7B,CAAC;SACH,CAAC,CAAC;IAEL,CAAC,CAAC;AAEJ,CAAC;AApBD,4BAoBC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"$id": "rxap-plugin-pack-config",
|
|
4
|
-
"title": "Config schema options",
|
|
5
|
-
"description": "Adds the schematics builder to the specified project.",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"properties": {
|
|
8
|
-
"project": {
|
|
9
|
-
"type": "string",
|
|
10
|
-
"description": "The name of the project.",
|
|
11
|
-
"$default": {
|
|
12
|
-
"$source": "argv",
|
|
13
|
-
"index": 0
|
|
14
|
-
},
|
|
15
|
-
"x-prompt": "For which project should the pack builder be added?"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"required": [
|
|
19
|
-
"project"
|
|
20
|
-
]
|
|
21
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
-
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
6
|
-
function default_1(options) {
|
|
7
|
-
return () => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
8
|
-
return (0, schematics_1.chain)([
|
|
9
|
-
(0, schematics_utilities_1.UpdateAngularProject)((project) => {
|
|
10
|
-
var _a;
|
|
11
|
-
if (!project.targets.has('update-peer-dependencies')) {
|
|
12
|
-
project.targets.add('update-peer-dependencies', {
|
|
13
|
-
builder: '@rxap/plugin-library:update-peer-dependencies',
|
|
14
|
-
options: {
|
|
15
|
-
ignore: (_a = options.ignore) !== null && _a !== void 0 ? _a : []
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
}, {
|
|
20
|
-
projectName: options.project
|
|
21
|
-
})
|
|
22
|
-
]);
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
exports.default = default_1;
|
|
26
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/library/src/schematics/config-update-peer-dependencies/index.ts"],"names":[],"mappings":";;;AAAA,2DAAyD;AAEzD,qEAAkE;AAElE,mBAAwB,OAA2C;IAEjE,OAAO,GAAS,EAAE;QAEhB,OAAO,IAAA,kBAAK,EAAC;YACX,IAAA,2CAAoB,EAAC,CAAC,OAAO,EAAE,EAAE;;gBAE/B,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,EAAE;oBACpD,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE;wBAC9C,OAAO,EAAE,+CAA+C;wBACxD,OAAO,EAAE;4BACP,MAAM,EAAE,MAAA,OAAO,CAAC,MAAM,mCAAI,EAAE;yBAC7B;qBACF,CAAC,CAAC;iBACJ;YAEH,CAAC,EAAE;gBACD,WAAW,EAAE,OAAO,CAAC,OAAO;aAC7B,CAAC;SACH,CAAC,CAAC;IAEL,CAAC,CAAA,CAAC;AAEJ,CAAC;AAvBD,4BAuBC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"$id": "library-config-update-peer-dependencies",
|
|
4
|
-
"title": "ConfigUpdatePeerDependencies",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"project": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"description": "The name of the project.",
|
|
10
|
-
"$default": {
|
|
11
|
-
"$source": "argv",
|
|
12
|
-
"index": 0
|
|
13
|
-
},
|
|
14
|
-
"x-prompt": "For which project should the pack builder be added?"
|
|
15
|
-
},
|
|
16
|
-
"ignore": {
|
|
17
|
-
"type": "array",
|
|
18
|
-
"items": {
|
|
19
|
-
"type": "string"
|
|
20
|
-
},
|
|
21
|
-
"description": "A list of package name regex that should not be included as peer dependencies",
|
|
22
|
-
"default": []
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"required": [
|
|
26
|
-
"project"
|
|
27
|
-
]
|
|
28
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|
-
function default_1(options) {
|
|
6
|
-
return (0, schematics_1.chain)([
|
|
7
|
-
(0, schematics_utilities_1.InstallPeerDependencies)(),
|
|
8
|
-
() => {
|
|
9
|
-
if (options.project) {
|
|
10
|
-
return (0, schematics_1.schematic)('config', {
|
|
11
|
-
project: options.project
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
console.log('Default project not defined. Add the pack target to a project with: ng g @rxap/plugin-library:config [project]');
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
]);
|
|
19
|
-
}
|
|
20
|
-
exports.default = default_1;
|
|
21
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/library/src/schematics/ng-add/index.ts"],"names":[],"mappings":";;AAAA,2DAAoE;AACpE,qEAAqE;AAGrE,mBAAwB,OAAoB;IAC1C,OAAO,IAAA,kBAAK,EAAC;QACX,IAAA,8CAAuB,GAAE;QACzB,GAAG,EAAE;YACH,IAAI,OAAO,CAAC,OAAO,EAAE;gBACnB,OAAO,IAAA,sBAAS,EAAC,QAAQ,EAAE;oBACzB,OAAO,EAAE,OAAO,CAAC,OAAO;iBACzB,CAAC,CAAC;aACJ;iBAAM;gBACL,OAAO,CAAC,GAAG,CAAC,gHAAgH,CAAC,CAAC;aAC/H;QACH,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AAbD,4BAaC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
-
"$id": "library-ng-add",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"properties": {
|
|
6
|
-
"project": {
|
|
7
|
-
"type": "string",
|
|
8
|
-
"description": "Name of the project",
|
|
9
|
-
"$default": {
|
|
10
|
-
"$source": "argv",
|
|
11
|
-
"index": 0
|
|
12
|
-
},
|
|
13
|
-
"x-prompt": "For which project would you like to add the plugin?"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"required": []
|
|
17
|
-
}
|