@rxap/plugin-library 16.0.0-dev.2 → 16.0.0-dev.4

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.
Files changed (126) hide show
  1. package/CHANGELOG.md +51 -182
  2. package/README.md +80 -127
  3. package/executors.json +24 -0
  4. package/generators.json +24 -0
  5. package/package.json +55 -40
  6. package/src/executors/readme/executor.d.ts +5 -0
  7. package/src/executors/readme/executor.js +143 -0
  8. package/src/executors/readme/executor.js.map +1 -0
  9. package/src/executors/readme/schema.d.ts +1 -0
  10. package/src/{builders/update-package-group → executors/readme}/schema.json +2 -3
  11. package/src/executors/run-generator/executor.d.ts +5 -0
  12. package/src/executors/run-generator/executor.js +46 -0
  13. package/src/executors/run-generator/executor.js.map +1 -0
  14. package/src/executors/run-generator/schema.d.ts +6 -0
  15. package/src/executors/run-generator/schema.json +27 -0
  16. package/src/executors/update-dependencies/executor.d.ts +5 -0
  17. package/src/executors/update-dependencies/executor.js +32 -0
  18. package/src/executors/update-dependencies/executor.js.map +1 -0
  19. package/src/executors/update-dependencies/schema.d.ts +1 -0
  20. package/src/executors/update-dependencies/schema.json +9 -0
  21. package/src/executors/update-package-group/executor.d.ts +5 -0
  22. package/src/executors/update-package-group/executor.js +45 -0
  23. package/src/executors/update-package-group/executor.js.map +1 -0
  24. package/src/executors/update-package-group/schema.d.ts +1 -0
  25. package/src/executors/update-package-group/schema.json +9 -0
  26. package/src/generators/fix-dependencies/generator.d.ts +27 -0
  27. package/src/generators/fix-dependencies/generator.js +547 -0
  28. package/src/generators/fix-dependencies/generator.js.map +1 -0
  29. package/src/generators/fix-dependencies/schema.d.ts +8 -0
  30. package/src/generators/fix-dependencies/schema.json +31 -0
  31. package/src/generators/index-export/generator.d.ts +4 -0
  32. package/src/generators/index-export/generator.js +52 -0
  33. package/src/generators/index-export/generator.js.map +1 -0
  34. package/src/generators/index-export/schema.d.ts +3 -0
  35. package/src/generators/index-export/schema.json +16 -0
  36. package/src/generators/init/files/README.md.handlebars +115 -0
  37. package/src/generators/init/generator.d.ts +4 -0
  38. package/src/generators/init/generator.js +261 -0
  39. package/src/generators/init/generator.js.map +1 -0
  40. package/src/generators/init/schema.d.ts +3 -0
  41. package/src/generators/init/schema.json +16 -0
  42. package/src/generators/schematic/files/schematic/__fileName__/index.ts.template +8 -0
  43. package/src/generators/schematic/files/schematic/__fileName__/schema.d.ts.template +3 -0
  44. package/src/generators/schematic/files/schematic/__fileName__/schema.json.template +18 -0
  45. package/src/generators/schematic/generator.d.ts +6 -0
  46. package/src/generators/schematic/generator.js +137 -0
  47. package/src/generators/schematic/generator.js.map +1 -0
  48. package/src/generators/schematic/schema.d.ts +6 -0
  49. package/src/generators/schematic/schema.json +43 -0
  50. package/src/index.d.ts +0 -1
  51. package/src/index.js +0 -2
  52. package/src/index.js.map +1 -1
  53. package/LICENSE +0 -630
  54. package/builders.json +0 -20
  55. package/collection.json +0 -32
  56. package/migration.json +0 -4
  57. package/src/builders/build-schematics/builder.d.ts +0 -13
  58. package/src/builders/build-schematics/builder.js +0 -84
  59. package/src/builders/build-schematics/builder.js.map +0 -1
  60. package/src/builders/build-schematics/schema.json +0 -78
  61. package/src/builders/update-package-group/builder.d.ts +0 -19
  62. package/src/builders/update-package-group/builder.js +0 -89
  63. package/src/builders/update-package-group/builder.js.map +0 -1
  64. package/src/builders/update-package-group/read-file.d.ts +0 -7
  65. package/src/builders/update-package-group/read-file.js +0 -11
  66. package/src/builders/update-package-group/read-file.js.map +0 -1
  67. package/src/builders/update-package-group/write-file.d.ts +0 -5
  68. package/src/builders/update-package-group/write-file.js +0 -11
  69. package/src/builders/update-package-group/write-file.js.map +0 -1
  70. package/src/builders/update-peer-dependencies/builder.d.ts +0 -40
  71. package/src/builders/update-peer-dependencies/builder.js +0 -293
  72. package/src/builders/update-peer-dependencies/builder.js.map +0 -1
  73. package/src/builders/update-peer-dependencies/schema.json +0 -33
  74. package/src/builders/utils/assets.d.ts +0 -14
  75. package/src/builders/utils/assets.js +0 -54
  76. package/src/builders/utils/assets.js.map +0 -1
  77. package/src/builders/utils/compile-typescript-files.d.ts +0 -13
  78. package/src/builders/utils/compile-typescript-files.js +0 -56
  79. package/src/builders/utils/compile-typescript-files.js.map +0 -1
  80. package/src/builders/utils/equals.d.ts +0 -1
  81. package/src/builders/utils/equals.js +0 -200
  82. package/src/builders/utils/equals.js.map +0 -1
  83. package/src/builders/utils/unique.d.ts +0 -1
  84. package/src/builders/utils/unique.js +0 -8
  85. package/src/builders/utils/unique.js.map +0 -1
  86. package/src/schematics/config/index.d.ts +0 -3
  87. package/src/schematics/config/index.js +0 -17
  88. package/src/schematics/config/index.js.map +0 -1
  89. package/src/schematics/config/schema.json +0 -50
  90. package/src/schematics/config-schematics/coerce-builders-json.d.ts +0 -2
  91. package/src/schematics/config-schematics/coerce-builders-json.js +0 -23
  92. package/src/schematics/config-schematics/coerce-builders-json.js.map +0 -1
  93. package/src/schematics/config-schematics/coerce-builders.d.ts +0 -1
  94. package/src/schematics/config-schematics/coerce-builders.js +0 -11
  95. package/src/schematics/config-schematics/coerce-builders.js.map +0 -1
  96. package/src/schematics/config-schematics/coerce-collection-json.d.ts +0 -2
  97. package/src/schematics/config-schematics/coerce-collection-json.js +0 -23
  98. package/src/schematics/config-schematics/coerce-collection-json.js.map +0 -1
  99. package/src/schematics/config-schematics/coerce-migration-json.d.ts +0 -2
  100. package/src/schematics/config-schematics/coerce-migration-json.js +0 -23
  101. package/src/schematics/config-schematics/coerce-migration-json.js.map +0 -1
  102. package/src/schematics/config-schematics/coerce-ng-update.d.ts +0 -1
  103. package/src/schematics/config-schematics/coerce-ng-update.js +0 -21
  104. package/src/schematics/config-schematics/coerce-ng-update.js.map +0 -1
  105. package/src/schematics/config-schematics/coerce-schematics.d.ts +0 -1
  106. package/src/schematics/config-schematics/coerce-schematics.js +0 -11
  107. package/src/schematics/config-schematics/coerce-schematics.js.map +0 -1
  108. package/src/schematics/config-schematics/index.d.ts +0 -3
  109. package/src/schematics/config-schematics/index.js +0 -96
  110. package/src/schematics/config-schematics/index.js.map +0 -1
  111. package/src/schematics/config-schematics/init-src-files.d.ts +0 -2
  112. package/src/schematics/config-schematics/init-src-files.js +0 -16
  113. package/src/schematics/config-schematics/init-src-files.js.map +0 -1
  114. package/src/schematics/config-schematics/schema.json +0 -47
  115. package/src/schematics/config-update-package-group/index.d.ts +0 -3
  116. package/src/schematics/config-update-package-group/index.js +0 -21
  117. package/src/schematics/config-update-package-group/index.js.map +0 -1
  118. package/src/schematics/config-update-package-group/schema.json +0 -21
  119. package/src/schematics/config-update-peer-dependencies/index.d.ts +0 -3
  120. package/src/schematics/config-update-peer-dependencies/index.js +0 -26
  121. package/src/schematics/config-update-peer-dependencies/index.js.map +0 -1
  122. package/src/schematics/config-update-peer-dependencies/schema.json +0 -28
  123. package/src/schematics/ng-add/index.d.ts +0 -3
  124. package/src/schematics/ng-add/index.js +0 -21
  125. package/src/schematics/ng-add/index.js.map +0 -1
  126. 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,3 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- import { ConfigSchema } from './schema';
3
- export default function (options: ConfigSchema): Rule;
@@ -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,3 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- import { ConfigUpdatePeerDependenciesSchema } from './schema';
3
- export default function (options: ConfigUpdatePeerDependenciesSchema): Rule;
@@ -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,3 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- import { NgAddSchema } from './schema';
3
- export default function (options: NgAddSchema): Rule;
@@ -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
- }