@webpieces/rules-config 0.3.356 → 0.3.358
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/package.json +3 -3
- package/src/config-file.d.ts +10 -0
- package/src/config-file.js +46 -22
- package/src/config-file.js.map +1 -1
- package/src/diff-scope.d.ts +28 -45
- package/src/diff-scope.js +193 -180
- package/src/diff-scope.js.map +1 -1
- package/src/index.d.ts +4 -4
- package/src/index.js +9 -3
- package/src/index.js.map +1 -1
- package/src/load-config.d.ts +21 -11
- package/src/load-config.js +153 -147
- package/src/load-config.js.map +1 -1
- package/src/load-template.d.ts +9 -0
- package/src/load-template.js +35 -10
- package/src/load-template.js.map +1 -1
- package/src/rules-config-design.d.ts +8 -2
- package/src/rules-config-design.js +15 -3
- package/src/rules-config-design.js.map +1 -1
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { RepoRootFinder } from './repo-root';
|
|
2
|
+
import { ConfigLoader } from './load-config';
|
|
3
|
+
import { TemplateWriter } from './load-template';
|
|
4
|
+
import { DiffScope } from './diff-scope';
|
|
2
5
|
/**
|
|
3
6
|
* DI-design root for @webpieces/rules-config (role:designed-lib).
|
|
4
7
|
*
|
|
@@ -6,9 +9,12 @@ import { RepoRootFinder } from './repo-root';
|
|
|
6
9
|
* (design.json / design.md / design.html) is generated. rules-config is the shared foundation whose
|
|
7
10
|
* utilities are being migrated from free functions to injected `@provideSingleton` service classes; as
|
|
8
11
|
* each service class lands (config loader, template writer, diff/git services, …) it is injected HERE
|
|
9
|
-
* so it appears in the drawn design.
|
|
12
|
+
* so it appears in the drawn design.
|
|
10
13
|
*/
|
|
11
14
|
export declare class RulesConfigDesign {
|
|
12
15
|
private readonly repoRootFinder;
|
|
13
|
-
|
|
16
|
+
private readonly configLoader;
|
|
17
|
+
private readonly templateWriter;
|
|
18
|
+
private readonly diffScope;
|
|
19
|
+
constructor(repoRootFinder: RepoRootFinder, configLoader: ConfigLoader, templateWriter: TemplateWriter, diffScope: DiffScope);
|
|
14
20
|
}
|
|
@@ -6,6 +6,9 @@ const core_util_1 = require("@webpieces/core-util");
|
|
|
6
6
|
const core_context_1 = require("@webpieces/core-context");
|
|
7
7
|
const inversify_1 = require("inversify");
|
|
8
8
|
const repo_root_1 = require("./repo-root");
|
|
9
|
+
const load_config_1 = require("./load-config");
|
|
10
|
+
const load_template_1 = require("./load-template");
|
|
11
|
+
const diff_scope_1 = require("./diff-scope");
|
|
9
12
|
/**
|
|
10
13
|
* DI-design root for @webpieces/rules-config (role:designed-lib).
|
|
11
14
|
*
|
|
@@ -13,12 +16,18 @@ const repo_root_1 = require("./repo-root");
|
|
|
13
16
|
* (design.json / design.md / design.html) is generated. rules-config is the shared foundation whose
|
|
14
17
|
* utilities are being migrated from free functions to injected `@provideSingleton` service classes; as
|
|
15
18
|
* each service class lands (config loader, template writer, diff/git services, …) it is injected HERE
|
|
16
|
-
* so it appears in the drawn design.
|
|
19
|
+
* so it appears in the drawn design.
|
|
17
20
|
*/
|
|
18
21
|
let RulesConfigDesign = class RulesConfigDesign {
|
|
19
22
|
repoRootFinder;
|
|
20
|
-
|
|
23
|
+
configLoader;
|
|
24
|
+
templateWriter;
|
|
25
|
+
diffScope;
|
|
26
|
+
constructor(repoRootFinder, configLoader, templateWriter, diffScope) {
|
|
21
27
|
this.repoRootFinder = repoRootFinder;
|
|
28
|
+
this.configLoader = configLoader;
|
|
29
|
+
this.templateWriter = templateWriter;
|
|
30
|
+
this.diffScope = diffScope;
|
|
22
31
|
}
|
|
23
32
|
};
|
|
24
33
|
exports.RulesConfigDesign = RulesConfigDesign;
|
|
@@ -26,6 +35,9 @@ exports.RulesConfigDesign = RulesConfigDesign = tslib_1.__decorate([
|
|
|
26
35
|
(0, core_util_1.DocumentDesign)(),
|
|
27
36
|
(0, core_context_1.provideSingleton)(),
|
|
28
37
|
(0, inversify_1.injectable)(),
|
|
29
|
-
tslib_1.__metadata("design:paramtypes", [repo_root_1.RepoRootFinder
|
|
38
|
+
tslib_1.__metadata("design:paramtypes", [repo_root_1.RepoRootFinder,
|
|
39
|
+
load_config_1.ConfigLoader,
|
|
40
|
+
load_template_1.TemplateWriter,
|
|
41
|
+
diff_scope_1.DiffScope])
|
|
30
42
|
], RulesConfigDesign);
|
|
31
43
|
//# sourceMappingURL=rules-config-design.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules-config-design.js","sourceRoot":"","sources":["../../../../../packages/tooling/rules-config/src/rules-config-design.ts"],"names":[],"mappings":";;;;AAAA,oDAAsD;AACtD,0DAA2D;AAC3D,yCAAuC;AAEvC,2CAA6C;
|
|
1
|
+
{"version":3,"file":"rules-config-design.js","sourceRoot":"","sources":["../../../../../packages/tooling/rules-config/src/rules-config-design.ts"],"names":[],"mappings":";;;;AAAA,oDAAsD;AACtD,0DAA2D;AAC3D,yCAAuC;AAEvC,2CAA6C;AAC7C,+CAA6C;AAC7C,mDAAiD;AACjD,6CAAyC;AAEzC;;;;;;;;GAQG;AAII,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAEL;IACA;IACA;IACA;IAJrB,YACqB,cAA8B,EAC9B,YAA0B,EAC1B,cAA8B,EAC9B,SAAoB;QAHpB,mBAAc,GAAd,cAAc,CAAgB;QAC9B,iBAAY,GAAZ,YAAY,CAAc;QAC1B,mBAAc,GAAd,cAAc,CAAgB;QAC9B,cAAS,GAAT,SAAS,CAAW;IACtC,CAAC;CACP,CAAA;AAPY,8CAAiB;4BAAjB,iBAAiB;IAH7B,IAAA,0BAAc,GAAE;IAChB,IAAA,+BAAgB,GAAE;IAClB,IAAA,sBAAU,GAAE;6CAG4B,0BAAc;QAChB,0BAAY;QACV,8BAAc;QACnB,sBAAS;GALhC,iBAAiB,CAO7B","sourcesContent":["import { DocumentDesign } from '@webpieces/core-util';\nimport { provideSingleton } from '@webpieces/core-context';\nimport { injectable } from 'inversify';\n\nimport { RepoRootFinder } from './repo-root';\nimport { ConfigLoader } from './load-config';\nimport { TemplateWriter } from './load-template';\nimport { DiffScope } from './diff-scope';\n\n/**\n * DI-design root for @webpieces/rules-config (role:designed-lib).\n *\n * `@DocumentDesign` marks the top of the DAG the DI-design analyzer roots on, so the library's design\n * (design.json / design.md / design.html) is generated. rules-config is the shared foundation whose\n * utilities are being migrated from free functions to injected `@provideSingleton` service classes; as\n * each service class lands (config loader, template writer, diff/git services, …) it is injected HERE\n * so it appears in the drawn design.\n */\n@DocumentDesign()\n@provideSingleton()\n@injectable()\nexport class RulesConfigDesign {\n constructor(\n private readonly repoRootFinder: RepoRootFinder,\n private readonly configLoader: ConfigLoader,\n private readonly templateWriter: TemplateWriter,\n private readonly diffScope: DiffScope,\n ) {}\n}\n"]}
|