UNPKG

1.58 kBPlain TextView Raw
1import * as path from 'path';
2export * from './builder';
3export * from './types';
4export * from './service';
5
6// import {
7// ConfigNode,
8// ConfigNodeArgs,
9// ConfigPropertyNodeFactoryArgs,
10// ProfilesConfigNode,
11// ProfilesFileConfigNode,
12// ConfigNodePropertyFactory,
13// } from './service';
14
15// (async () => {
16// // tslint:disable-next-line: no-shadowed-variable
17// const fact = async (args: ConfigPropertyNodeFactoryArgs) => {
18// debugger;
19// return ProfilesConfigNode.create(args);
20// };
21
22// const base0 = {
23// c: {
24// c2: 3,
25// },
26// };
27
28// const base1 = {
29// a: 3,
30// b: 3,
31// c: {
32// c1: 1,
33// },
34// d: {
35// e: {
36// f: 1,
37// },
38// },
39// };
40
41// const args0: ConfigNodeArgs = {
42// initialValue: base0,
43// propertyNodeFactories: [
44// {
45// factory: fact,
46// propertyPath: ['c'],
47// },
48// ],
49// };
50// const base0Node = await ConfigNode.create(args0);
51
52// const args: ConfigNodeArgs = {
53// inheritedNodes: base0Node,
54// initialValue: base1,
55// propertyNodeFactories: [
56// {
57// factory: fact,
58// propertyPath: ['d', 'e'],
59// },
60// ],
61// };
62
63// const base1Node = await ConfigNode.create(args, base0Node);
64// debugger;
65// })();