depflow 3.0.0-dev.5 → 3.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/build/config/schemas.d.ts +1729 -949
- package/build/config/schemas.js +29 -14
- package/build/config/schemas.js.map +1 -1
- package/build/support/Builder/Builder.d.ts +3 -2
- package/build/support/Builder/Builder.js +25 -24
- package/build/support/Builder/Builder.js.map +1 -1
- package/package.json +2 -2
package/build/config/schemas.js
CHANGED
|
@@ -11,25 +11,40 @@ export const TsConfig = Schema.fromObject({
|
|
|
11
11
|
paths: { type: 'object', allowAdditionalProperties: { type: 'array', items: { type: 'string' } } }
|
|
12
12
|
}, allowAdditionalProperties: true }
|
|
13
13
|
}, true);
|
|
14
|
-
export const
|
|
14
|
+
export const Transform = new Schema({ type: 'union', union: [
|
|
15
15
|
{ type: 'string' },
|
|
16
16
|
{ type: 'object', properties: {
|
|
17
17
|
search: { type: 'string', required: true },
|
|
18
|
-
flags: { type: 'string', default: '' },
|
|
18
|
+
flags: { type: 'string', default: 'g', pattern: /^[gimsuy]*$/ },
|
|
19
19
|
replace: { type: 'string', required: true }
|
|
20
20
|
} }
|
|
21
|
-
]
|
|
21
|
+
] });
|
|
22
|
+
export const GlobalTransform = new Schema({ type: 'object', properties: {
|
|
23
|
+
glob: { type: 'string', required: true },
|
|
24
|
+
search: { type: 'string', required: true },
|
|
25
|
+
flags: { type: 'string', default: 'g', pattern: /^[gimsuy]*$/ },
|
|
26
|
+
replace: { type: 'string', required: true }
|
|
27
|
+
} });
|
|
22
28
|
export const ExtractorEntry = Schema.fromObject({
|
|
23
29
|
from: { type: 'string', required: true },
|
|
24
30
|
to: { type: 'string', required: true },
|
|
25
|
-
pathReplacer:
|
|
26
|
-
|
|
27
|
-
});
|
|
28
|
-
export const BuilderEntry = Schema.fromObject({
|
|
29
|
-
maxTimeMs: { type: 'number', default: 60000 },
|
|
30
|
-
run: { type: 'union', union: [{ type: 'string' }, { type: 'array', items: { type: 'string' } }] },
|
|
31
|
-
extract: { type: 'union', union: [{ type: 'string' }, { type: 'array', items: ExtractorEntry.root }] }
|
|
31
|
+
pathReplacer: Transform.root,
|
|
32
|
+
transform: Transform.root
|
|
32
33
|
});
|
|
34
|
+
export const BuilderEntry = new Schema({ type: 'union', required: true, union: [
|
|
35
|
+
{ type: 'object', properties: {
|
|
36
|
+
maxTimeMs: { type: 'number', default: 60000, minimum: -1 },
|
|
37
|
+
allowFails: { type: 'boolean', default: false },
|
|
38
|
+
run: { type: 'union', required: true, union: [{ type: 'string' }, { type: 'array', items: { type: 'string' } }] }
|
|
39
|
+
} },
|
|
40
|
+
{ type: 'object', properties: {
|
|
41
|
+
extract: { type: 'union', required: true, union: [{ type: 'string' }, { type: 'array', items: ExtractorEntry.root }] }
|
|
42
|
+
} },
|
|
43
|
+
{ type: 'object', properties: {
|
|
44
|
+
transform: GlobalTransform.root
|
|
45
|
+
} }
|
|
46
|
+
] });
|
|
47
|
+
export const Builder = new Schema({ type: 'array', default: [], items: BuilderEntry.root });
|
|
33
48
|
export const ResolverEntry = Schema.fromObject({
|
|
34
49
|
alias: { type: 'string', required: true },
|
|
35
50
|
target: { type: 'union', union: [
|
|
@@ -45,13 +60,13 @@ export const GitDependency = Schema.fromObject({
|
|
|
45
60
|
name: { type: 'string', required: true },
|
|
46
61
|
repo: { type: 'string', required: true },
|
|
47
62
|
tag: { type: 'string', default: 'main' },
|
|
48
|
-
builder:
|
|
63
|
+
builder: Builder.root,
|
|
49
64
|
resolver: { type: 'array', nullable: true, default: [], items: ResolverEntry.root }
|
|
50
65
|
});
|
|
51
66
|
export const NpmDependency = Schema.fromObject({
|
|
52
67
|
name: { type: 'string', required: true },
|
|
53
68
|
version: { type: 'string', required: true },
|
|
54
|
-
builder:
|
|
69
|
+
builder: Builder.root,
|
|
55
70
|
resolver: { type: 'array', nullable: true, default: [], items: ResolverEntry.root }
|
|
56
71
|
});
|
|
57
72
|
export const Config = Schema.fromObject({
|
|
@@ -60,7 +75,7 @@ export const Config = Schema.fromObject({
|
|
|
60
75
|
outDir: { type: 'string', default: 'dist' },
|
|
61
76
|
tsconfig: { type: 'string', nullable: true, default: null },
|
|
62
77
|
importmap: { type: 'string', nullable: true, default: null },
|
|
63
|
-
actions: { type: 'object', allowAdditionalProperties:
|
|
78
|
+
actions: { type: 'object', allowAdditionalProperties: Builder.root, default: {} },
|
|
64
79
|
resolver: { type: 'array', default: [], items: ResolverEntry.root },
|
|
65
80
|
dependencies: { type: 'array', default: [], items: GitDependency.root },
|
|
66
81
|
npmDependencies: { type: 'array', default: [], items: NpmDependency.root }
|
|
@@ -68,7 +83,7 @@ export const Config = Schema.fromObject({
|
|
|
68
83
|
export const Schemas = {
|
|
69
84
|
Config,
|
|
70
85
|
TsConfig, ImportMap,
|
|
71
|
-
BuilderEntry, ResolverEntry,
|
|
86
|
+
Builder, BuilderEntry, ResolverEntry,
|
|
72
87
|
GitDependency, NpmDependency
|
|
73
88
|
};
|
|
74
89
|
export default Schemas;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../src/config/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,UAAU,CAAC;IACvC,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,yBAAyB,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE;IACzE,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,yBAAyB,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE;CAC3E,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,UAAU,CAAC;IACtC,eAAe,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE;YAC3C,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC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
|
|
6
6
|
protected readonly logger: Logger | null;
|
|
7
7
|
constructor(info: Builder.Info);
|
|
8
8
|
run(): Promise<void>;
|
|
9
|
+
protected runGlobalTransform(options: Schemas.GlobalTransform['infer']): Promise<void>;
|
|
9
10
|
/**
|
|
10
11
|
* Runs the extraction process based on the provided entry configuration, which can be either a string or an array of extraction entries.
|
|
11
12
|
* It handles the copying of files from the specified source to the target location, applying any necessary path transformations based on the provided replacer configuration.
|
|
@@ -29,10 +30,10 @@ export declare class Builder {
|
|
|
29
30
|
* @returns A function that takes a string as input and returns a new string with the specified replacements applied, based on the provided replacer configuration.
|
|
30
31
|
* @throws Will throw an error if the provided replacer configuration is invalid, such as if it is neither a string nor an object with the required properties.
|
|
31
32
|
*/
|
|
32
|
-
protected static replacer(replacer: Schemas.
|
|
33
|
+
protected static replacer(replacer: Schemas.Transform['infer']): Builder.ReplacerAction;
|
|
33
34
|
}
|
|
34
35
|
export declare namespace Builder {
|
|
35
|
-
type Replacer = Schemas.
|
|
36
|
+
type Replacer = Schemas.Transform['infer'];
|
|
36
37
|
type ReplacerAction = (str: string) => string;
|
|
37
38
|
type BuilderEntry = Schemas.BuilderEntry['infer'];
|
|
38
39
|
type Extractor = Schemas.ExtractorEntry['infer'];
|
|
@@ -14,30 +14,31 @@ export class Builder {
|
|
|
14
14
|
async run() {
|
|
15
15
|
this.logger?.group(Utils.newGroup('#00FFB4'));
|
|
16
16
|
for (const step of this.pipeline) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
ranTask = true;
|
|
28
|
-
}
|
|
29
|
-
if (step.extract)
|
|
30
|
-
try {
|
|
31
|
-
if (ranTask)
|
|
32
|
-
this.logger?.line();
|
|
33
|
-
await this.runExtractor(step.extract);
|
|
34
|
-
}
|
|
35
|
-
catch (error) {
|
|
36
|
-
this.logger?.error(`&C1[Extract] &C7${error}`);
|
|
37
|
-
}
|
|
17
|
+
if ('run' in step && step.run) {
|
|
18
|
+
const commands = typeof step.run === 'string' ? [step.run] : step.run;
|
|
19
|
+
await this.runTask(commands, this.cwd, step.maxTimeMs ?? 60000);
|
|
20
|
+
}
|
|
21
|
+
if ('extract' in step && step.extract) {
|
|
22
|
+
await this.runExtractor(step.extract);
|
|
23
|
+
}
|
|
24
|
+
if ('transform' in step && step.transform) {
|
|
25
|
+
await this.runGlobalTransform(step.transform);
|
|
26
|
+
}
|
|
38
27
|
}
|
|
39
28
|
this.logger?.groupEnd();
|
|
40
29
|
}
|
|
30
|
+
async runGlobalTransform(options) {
|
|
31
|
+
this.logger?.log(`&C7Applying global transformation in &C3${this.cwd}&C7...`);
|
|
32
|
+
const transformAction = Builder.replacer(options);
|
|
33
|
+
const glob = options.glob;
|
|
34
|
+
await File.smartProcess('glob', this.cwd, {
|
|
35
|
+
cwd: this.cwd,
|
|
36
|
+
}, async ({ src, dest }) => {
|
|
37
|
+
const content = await File.read(src);
|
|
38
|
+
const transformedContent = transformAction(content);
|
|
39
|
+
await File.write(dest, transformedContent);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
41
42
|
/**
|
|
42
43
|
* Runs the extraction process based on the provided entry configuration, which can be either a string or an array of extraction entries.
|
|
43
44
|
* It handles the copying of files from the specified source to the target location, applying any necessary path transformations based on the provided replacer configuration.
|
|
@@ -49,9 +50,9 @@ export class Builder {
|
|
|
49
50
|
async runExtractor(entry) {
|
|
50
51
|
const extractor = typeof entry === 'string' ? [{ from: '**/*', to: entry }] : entry;
|
|
51
52
|
for (const entry of extractor) {
|
|
52
|
-
const { from, to: toEntry, pathReplacer,
|
|
53
|
+
const { from, to: toEntry, pathReplacer, transform } = entry;
|
|
53
54
|
const pathReplacerAction = Builder.replacer(pathReplacer);
|
|
54
|
-
const replacerAction = Builder.replacer(
|
|
55
|
+
const replacerAction = Builder.replacer(transform);
|
|
55
56
|
const to = Path.isAbsolute(toEntry) ? toEntry : Path.join(Path.cwd, toEntry);
|
|
56
57
|
this.logger?.log(`&C7Extracting &C3${from}&C7 to &C3${to}&C7...`);
|
|
57
58
|
await File.smartProcess(from, to, {
|
|
@@ -60,7 +61,7 @@ export class Builder {
|
|
|
60
61
|
}, async ({ src, dest }) => {
|
|
61
62
|
const content = await File.read(src);
|
|
62
63
|
const transformedContent = replacerAction(content);
|
|
63
|
-
File.write(dest, transformedContent);
|
|
64
|
+
await File.write(dest, transformedContent);
|
|
64
65
|
});
|
|
65
66
|
}
|
|
66
67
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Builder.js","sourceRoot":"","sources":["../../../src/support/Builder/Builder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAI7C,OAAO,KAAK,MAAM,aAAa,CAAC;AAChC,OAAO,IAAI,MAAM,iBAAiB,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAElD,MAAM,OAAO,OAAO;IACG,QAAQ,GAA2B,EAAE,CAAC;IACtC,GAAG,GAAW,OAAO,CAAC,GAAG,EAAE,CAAC;IAC5B,MAAM,CAAgB;IAEzC,YAAmB,IAAkB;QACjC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;QACpB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC;IACtC,CAAC;
|
|
1
|
+
{"version":3,"file":"Builder.js","sourceRoot":"","sources":["../../../src/support/Builder/Builder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAI7C,OAAO,KAAK,MAAM,aAAa,CAAC;AAChC,OAAO,IAAI,MAAM,iBAAiB,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,sBAAsB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2
|
"name": "depflow",
|
|
3
3
|
"description": "is a simple dependency manager based on github repositories",
|
|
4
|
-
"version": "3.0.0-dev.
|
|
4
|
+
"version": "3.0.0-dev.6",
|
|
5
5
|
"main": "build/bin/bin.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"README.md"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@netfeez/common": "^
|
|
35
|
+
"@netfeez/common": "^4.1.0",
|
|
36
36
|
"@netfeez/common-node": "^3.2.0",
|
|
37
37
|
"@netfeez/vterm": "^1.1.0"
|
|
38
38
|
},
|