@powerlines/engine 0.9.2 → 0.9.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.
- package/dist/api/build.cjs +1 -1
- package/dist/api/build.d.cts +2 -2
- package/dist/api/build.d.mts +2 -2
- package/dist/api/build.mjs +1 -1
- package/dist/api/clean.d.cts +2 -2
- package/dist/api/clean.d.mts +2 -2
- package/dist/api/create.d.cts +2 -2
- package/dist/api/create.d.mts +2 -2
- package/dist/api/deploy.d.cts +2 -2
- package/dist/api/deploy.d.mts +2 -2
- package/dist/api/docs.d.cts +2 -2
- package/dist/api/docs.d.mts +2 -2
- package/dist/api/lint.d.cts +2 -2
- package/dist/api/lint.d.mts +2 -2
- package/dist/api/prepare.d.cts +2 -2
- package/dist/api/prepare.d.mts +2 -2
- package/dist/api/test.d.cts +2 -2
- package/dist/api/test.d.mts +2 -2
- package/dist/api/types.d.cts +2 -2
- package/dist/api/types.d.mts +2 -2
- package/dist/{api-Bi_h4LMX.d.cts → api-6w4hZL6n.d.cts} +3 -3
- package/dist/{api-Bi_h4LMX.d.cts.map → api-6w4hZL6n.d.cts.map} +1 -1
- package/dist/{api-oIs2Wp3t.d.mts → api-Cdw4v0W4.d.mts} +3 -3
- package/dist/{api-oIs2Wp3t.d.mts.map → api-Cdw4v0W4.d.mts.map} +1 -1
- package/dist/{config-B_E_HMcT.d.cts → config-BNe23XHx.d.mts} +8 -4
- package/dist/{config-B_E_HMcT.d.cts.map → config-BNe23XHx.d.mts.map} +1 -1
- package/dist/{config-FB8Zqjjz.d.mts → config-D6xUniHh.d.cts} +8 -4
- package/dist/{config-FB8Zqjjz.d.mts.map → config-D6xUniHh.d.cts.map} +1 -1
- package/dist/{engine-context-SEzTm1aq.cjs → context/engine-context.cjs} +3 -7
- package/dist/context/engine-context.d.cts +2 -0
- package/dist/context/engine-context.d.mts +2 -0
- package/dist/{engine-context-f72fUF0N.mjs → context/engine-context.mjs} +2 -2
- package/dist/context/engine-context.mjs.map +1 -0
- package/dist/context/index.cjs +2 -2
- package/dist/context/index.d.cts +1 -1
- package/dist/context/index.d.mts +1 -1
- package/dist/context/index.mjs +1 -1
- package/dist/{context-DrNQXXRC.d.mts → context-DzgsMSWr.d.mts} +2 -2
- package/dist/{context-DrNQXXRC.d.mts.map → context-DzgsMSWr.d.mts.map} +1 -1
- package/dist/{context-LQBeYY23.d.cts → context-epL7NPvL.d.cts} +2 -2
- package/dist/{context-LQBeYY23.d.cts.map → context-epL7NPvL.d.cts.map} +1 -1
- package/dist/{engine-context-BBSMtv0b.d.mts → engine-context-DEotmVzB.d.mts} +3 -3
- package/dist/{engine-context-BBSMtv0b.d.mts.map → engine-context-DEotmVzB.d.mts.map} +1 -1
- package/dist/{engine-context-C6bNxumd.d.cts → engine-context-Dw8odBCo.d.cts} +3 -3
- package/dist/{engine-context-C6bNxumd.d.cts.map → engine-context-Dw8odBCo.d.cts.map} +1 -1
- package/dist/engine.cjs +3 -2
- package/dist/engine.d.cts +4 -4
- package/dist/engine.d.mts +4 -4
- package/dist/engine.mjs +2 -1
- package/dist/engine.mjs.map +1 -1
- package/dist/execution-host.cjs +44 -0
- package/dist/execution-host.d.cts +14 -0
- package/dist/execution-host.d.cts.map +1 -0
- package/dist/execution-host.d.mts +14 -0
- package/dist/execution-host.d.mts.map +1 -0
- package/dist/execution-host.mjs +36 -0
- package/dist/execution-host.mjs.map +1 -0
- package/dist/helpers/create-execution-host.cjs +5 -3
- package/dist/helpers/create-execution-host.d.cts +7 -4
- package/dist/helpers/create-execution-host.d.cts.map +1 -1
- package/dist/helpers/create-execution-host.d.mts +7 -4
- package/dist/helpers/create-execution-host.d.mts.map +1 -1
- package/dist/helpers/create-execution-host.mjs +5 -3
- package/dist/helpers/create-execution-host.mjs.map +1 -1
- package/dist/helpers/execution-host-worker.cjs +2 -1
- package/dist/helpers/execution-host-worker.d.cts +6 -2
- package/dist/helpers/execution-host-worker.d.cts.map +1 -1
- package/dist/helpers/execution-host-worker.d.mts +6 -2
- package/dist/helpers/execution-host-worker.d.mts.map +1 -1
- package/dist/helpers/execution-host-worker.mjs +2 -1
- package/dist/helpers/execution-host-worker.mjs.map +1 -1
- package/dist/helpers/rpc.d.cts +1 -1
- package/dist/helpers/rpc.d.mts +1 -1
- package/dist/index-CNgSR_kt.d.mts +1 -0
- package/dist/index-D_TYgLX3.d.cts +1 -0
- package/dist/index.cjs +10 -1
- package/dist/index.d.cts +8 -4
- package/dist/index.d.mts +8 -4
- package/dist/index.mjs +6 -1
- package/package.json +13 -5
- package/dist/engine-context-f72fUF0N.mjs.map +0 -1
- package/dist/worker/execution-host.cjs +0 -577
- package/dist/worker/execution-host.d.cts +0 -76
- package/dist/worker/execution-host.d.cts.map +0 -1
- package/dist/worker/execution-host.d.mts +0 -76
- package/dist/worker/execution-host.d.mts.map +0 -1
- package/dist/worker/execution-host.mjs +0 -540
- package/dist/worker/execution-host.mjs.map +0 -1
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { ExecutionOptions, InlineConfig, LogMeta } from "@powerlines/core";
|
|
2
|
-
import { RpcCacheManager, RpcCacheOptions } from "devframe/rpc";
|
|
3
|
-
import { WsRpcChannelOptions } from "devframe/rpc/transports/ws-client";
|
|
4
|
-
import { BirpcOptions } from "birpc";
|
|
5
|
-
import { ConnectionMeta, DevToolsRpcClientFunctions, DevToolsRpcServerFunctions } from "devframe/types";
|
|
6
|
-
//#region src/types/rpc.d.ts
|
|
7
|
-
/**
|
|
8
|
-
* Payload for write log Rpc messages.
|
|
9
|
-
*/
|
|
10
|
-
interface LogPayload {
|
|
11
|
-
/**
|
|
12
|
-
* Metadata associated with the log message, excluding fields that are automatically added by the engine such as executionId, configIndex, environment, and timestamp. This can include custom fields relevant to the log entry, such as category, name, command, hook, plugin, and source.
|
|
13
|
-
*/
|
|
14
|
-
meta: LogMeta;
|
|
15
|
-
/**
|
|
16
|
-
* The log message content, which can be a string or an array of strings representing the log entry. This field is required and should contain the actual message to be logged.
|
|
17
|
-
*/
|
|
18
|
-
message: string;
|
|
19
|
-
}
|
|
20
|
-
interface RpcServerFunctions extends DevToolsRpcServerFunctions {
|
|
21
|
-
"powerlines:log": (payload: LogPayload) => void;
|
|
22
|
-
}
|
|
23
|
-
interface RpcClientFunctions extends DevToolsRpcClientFunctions {}
|
|
24
|
-
//#endregion
|
|
25
|
-
//#region src/types/config.d.ts
|
|
26
|
-
interface EngineExecutionOptions extends ExecutionOptions {
|
|
27
|
-
/**
|
|
28
|
-
* The base URL for the dev server, which can be used by plugins to construct URLs for assets or API endpoints during development. This value is only relevant in "dev" mode and will be `undefined` in "build" mode.
|
|
29
|
-
*/
|
|
30
|
-
baseURL: string;
|
|
31
|
-
/**
|
|
32
|
-
* Metadata for the connection used by the dev server, including the backend type and websocket configuration.
|
|
33
|
-
*/
|
|
34
|
-
connection: ConnectionMeta;
|
|
35
|
-
/**
|
|
36
|
-
* Options for configuring the WebSocket RPC channel used for communication between the dev server and the client, which can be used by plugins to customize the behavior of the WebSocket connection, such as setting custom timeouts, retry strategies, or other options.
|
|
37
|
-
*/
|
|
38
|
-
wsOptions?: Partial<WsRpcChannelOptions>;
|
|
39
|
-
/**
|
|
40
|
-
* Options for configuring the RPC client used for communication between the dev server and the client, which can be used by plugins to customize the behavior of the RPC client, such as setting custom timeouts, retry strategies, or other options.
|
|
41
|
-
*/
|
|
42
|
-
rpcOptions?: Partial<BirpcOptions<RpcServerFunctions, RpcClientFunctions, boolean>>;
|
|
43
|
-
/**
|
|
44
|
-
* Options for configuring the RPC cache used for caching RPC responses between the dev server and the client, which can be used by plugins to customize the behavior of the RPC cache, such as setting custom cache keys, expiration times, or other options.
|
|
45
|
-
*
|
|
46
|
-
* @remarks
|
|
47
|
-
* This option can be set to `true` to enable caching with default options, or it can be set to a configuration object that allows for fine-grained control over the caching behavior.
|
|
48
|
-
*/
|
|
49
|
-
cacheOptions?: boolean | Partial<RpcCacheOptions>;
|
|
50
|
-
}
|
|
51
|
-
//#endregion
|
|
52
|
-
//#region src/types/api.d.ts
|
|
53
|
-
interface ExecutionHostParams {
|
|
54
|
-
/**
|
|
55
|
-
* The execution options for the current execution instance
|
|
56
|
-
*/
|
|
57
|
-
options: EngineExecutionOptions;
|
|
58
|
-
/**
|
|
59
|
-
* The inline configuration for the current execution instance, which is the result of merging the user configuration with any configuration provided by plugins during the "config" hook.
|
|
60
|
-
*/
|
|
61
|
-
inlineConfig: InlineConfig;
|
|
62
|
-
}
|
|
63
|
-
//#endregion
|
|
64
|
-
//#region src/execution-host.d.ts
|
|
65
|
-
declare const types: ((params: ExecutionHostParams) => Promise<void>) | undefined;
|
|
66
|
-
declare const prepare: ((params: ExecutionHostParams) => Promise<void>) | undefined;
|
|
67
|
-
declare const create: ((params: ExecutionHostParams) => Promise<void>) | undefined;
|
|
68
|
-
declare const clean: ((params: ExecutionHostParams) => Promise<void>) | undefined;
|
|
69
|
-
declare const lint: ((params: ExecutionHostParams) => Promise<void>) | undefined;
|
|
70
|
-
declare const test: ((params: ExecutionHostParams) => Promise<void>) | undefined;
|
|
71
|
-
declare const build: ((params: ExecutionHostParams) => Promise<void>) | undefined;
|
|
72
|
-
declare const docs: ((params: ExecutionHostParams) => Promise<void>) | undefined;
|
|
73
|
-
declare const deploy: ((params: ExecutionHostParams) => Promise<void>) | undefined;
|
|
74
|
-
//#endregion
|
|
75
|
-
export { build, clean, create, deploy, docs, lint, prepare, test, types };
|
|
76
|
-
//# sourceMappingURL=execution-host.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"execution-host.d.mts","names":[],"sources":["../../src/types/rpc.ts","../../src/types/config.ts","../../src/types/api.ts","../../src/execution-host.ts"],"mappings":";;;;;;;;;UAqGiB,UAAA;ECtBK;;;ED0BpB,IAAA,EAAM,OAAA;ECpBS;;;EDyBf,OAAA;AAAA;AAAA,UAGe,kBAAA,SAA2B,0BAAA;EAE1C,gBAAA,GAAmB,OAAA,EAAS,UAAA;AAAA;AAAA,UAGb,kBAAA,SAA2B,0BAAA;;;UCrD3B,sBAAA,SAA+B,gBAAA;;;;EAI9C,OAAA;;;AAJF;EASE,UAAA,EAAY,cAAA;;;;EAKZ,SAAA,GAAY,OAAA,CAAQ,mBAAA;EAML;;;EADf,UAAA,GAAa,OAAA,CACX,YAAA,CAAa,kBAAA,EAAoB,kBAAA;EASF;;;;;;EAAjC,YAAA,aAAyB,OAAA,CAAQ,eAAA;AAAA;;;UC8ClB,mBAAA;EClGG;;;EDsGlB,OAAA,EAAS,sBAAA;ECrG+B;;;ED0GxC,YAAA,EAAc,YAAA;AAAA;;;cC5GH,KAAA,IAAK,MAAA,EAAsB,mBAAA,KAAtB,OAAA;AAAA,cACL,OAAA,IAAO,MAAA,EAAwB,mBAAA,KAAxB,OAAA;AAAA,cACP,MAAA,IAAM,MAAA,EAAuB,mBAAA,KAAvB,OAAA;AAAA,cACN,KAAA,IAAK,MAAA,EAAsB,mBAAA,KAAtB,OAAA;AAAA,cACL,IAAA,IAAI,MAAA,EAAqB,mBAAA,KAArB,OAAA;AAAA,cACJ,IAAA,IAAI,MAAA,EAAqB,mBAAA,KAArB,OAAA;AAAA,cACJ,KAAA,IAAK,MAAA,EAAsB,mBAAA,KAAtB,OAAA;AAAA,cACL,IAAA,IAAI,MAAA,EAAqB,mBAAA,KAArB,OAAA;AAAA,cACJ,MAAA,IAAM,MAAA,EAAuB,mBAAA,KAAvB,OAAA"}
|
|
@@ -1,540 +0,0 @@
|
|
|
1
|
-
import { formatFolder } from "@powerlines/core";
|
|
2
|
-
import { executeEnvironments } from "@powerlines/core/lib/environment";
|
|
3
|
-
import { copyFiles } from "@stryke/fs/copy-file";
|
|
4
|
-
import { appendPath } from "@stryke/path/append";
|
|
5
|
-
import { relativePath } from "@stryke/path/file-path-fns";
|
|
6
|
-
import { isParentPath } from "@stryke/path/is-parent-path";
|
|
7
|
-
import { joinPaths } from "@stryke/path/join-paths";
|
|
8
|
-
import { replacePath } from "@stryke/path/replace";
|
|
9
|
-
import chalk from "chalk";
|
|
10
|
-
import { existsSync } from "node:fs";
|
|
11
|
-
import { handleTypes } from "@powerlines/core/lib/generate-types";
|
|
12
|
-
import { installDependencies } from "@powerlines/core/lib/install-dependencies";
|
|
13
|
-
import { writeMetaFile } from "@powerlines/core/lib/meta";
|
|
14
|
-
import { initializeTsconfig, resolveTsconfig } from "@powerlines/core/lib/typescript/tsconfig";
|
|
15
|
-
import { format, formatFolder as formatFolder$1 } from "@powerlines/core/lib/utilities/format";
|
|
16
|
-
import { consoleLogger, formatConfig } from "@powerlines/core/plugin-utils";
|
|
17
|
-
import { toArray } from "@stryke/convert/to-array";
|
|
18
|
-
import { createDirectory } from "@stryke/fs/helpers";
|
|
19
|
-
import { isObject } from "@stryke/type-checks/is-object";
|
|
20
|
-
import { joinPaths as joinPaths$1 } from "@stryke/path/join";
|
|
21
|
-
import { listFiles } from "@stryke/fs/list-files";
|
|
22
|
-
import Handlebars from "handlebars";
|
|
23
|
-
import { formatLogMessage } from "@storm-software/config-tools/logger";
|
|
24
|
-
import { omit } from "@stryke/helpers/omit";
|
|
25
|
-
import { isSetObject } from "@stryke/type-checks/is-set-object";
|
|
26
|
-
import { PowerlinesExecutionContext } from "@powerlines/core/context/execution-context";
|
|
27
|
-
import { resolvePluginConfig } from "@powerlines/core/lib/context-helpers";
|
|
28
|
-
import { titleCase } from "@stryke/string-format/title-case";
|
|
29
|
-
import { uuid } from "@stryke/unique-id/uuid";
|
|
30
|
-
import { createEventEmitter } from "@powerlines/core/lib/events";
|
|
31
|
-
import { isNumber } from "@stryke/type-checks/is-number";
|
|
32
|
-
import { isSet } from "@stryke/type-checks/is-set";
|
|
33
|
-
import { StormURL } from "@stryke/url";
|
|
34
|
-
import { createRpcStreamingClientHost } from "devframe/client";
|
|
35
|
-
import { RpcCacheManager, RpcFunctionsCollectorBase } from "devframe/rpc";
|
|
36
|
-
import { createRpcClient } from "devframe/rpc/client";
|
|
37
|
-
import { createWsRpcChannel } from "devframe/rpc/transports/ws-client";
|
|
38
|
-
import { promiseWithResolver } from "devframe/utils/promise";
|
|
39
|
-
import { humanId } from "human-id";
|
|
40
|
-
import { EventEmitter } from "node:events";
|
|
41
|
-
|
|
42
|
-
//#region src/api/prepare.ts
|
|
43
|
-
/**
|
|
44
|
-
* Prepare the project
|
|
45
|
-
*
|
|
46
|
-
* @param context - The execution context for the build process, which provides access to the project configuration, environment, and utility functions for performing the build. The context is used to manage the state and behavior of the build process, allowing for hooks to be called at different stages of the build and for environment-specific configurations to be applied.
|
|
47
|
-
*/
|
|
48
|
-
async function prepare$1(context, skipTypes = false) {
|
|
49
|
-
const timer = context.timer("Preparation");
|
|
50
|
-
await executeEnvironments(context, async (env) => {
|
|
51
|
-
env.debug(`Initializing the processing options for the Powerlines project.`);
|
|
52
|
-
await context.callHook("configResolved", {
|
|
53
|
-
environment: env,
|
|
54
|
-
order: "pre"
|
|
55
|
-
});
|
|
56
|
-
await initializeTsconfig(env);
|
|
57
|
-
await context.callHook("configResolved", {
|
|
58
|
-
environment: env,
|
|
59
|
-
order: "normal"
|
|
60
|
-
});
|
|
61
|
-
if (env.entry.length > 0) env.debug(`The configuration provided ${isObject(env.config.input) ? Object.keys(env.config.input).length : toArray(env.config.input).length} entry point(s), Powerlines has found ${env.entry.length} entry files(s) for the ${env.config.title} project${env.entry.length > 0 && env.entry.length < 10 ? `: \n${env.entry.map((entry) => `- ${entry.file}${entry.output ? ` -> ${entry.output}` : ""}`).join(" \n")}` : ""}`);
|
|
62
|
-
else env.warn(`No entry files were found for the ${env.config.title} project. Please ensure this is correct. Powerlines plugins generally require at least one entry point to function properly.`);
|
|
63
|
-
await resolveTsconfig(env);
|
|
64
|
-
await installDependencies(env);
|
|
65
|
-
await context.callHook("configResolved", {
|
|
66
|
-
environment: env,
|
|
67
|
-
order: "post"
|
|
68
|
-
});
|
|
69
|
-
env.trace({
|
|
70
|
-
meta: { category: "config" },
|
|
71
|
-
message: `Powerlines configuration after configResolved hook: \n${formatConfig(env.config)}`
|
|
72
|
-
});
|
|
73
|
-
if (!env.fs.existsSync(env.cachePath)) await createDirectory(env.cachePath);
|
|
74
|
-
if (!env.fs.existsSync(env.dataPath)) await createDirectory(env.dataPath);
|
|
75
|
-
await context.callHook("prepare", {
|
|
76
|
-
environment: env,
|
|
77
|
-
order: "pre"
|
|
78
|
-
});
|
|
79
|
-
await context.callHook("prepare", {
|
|
80
|
-
environment: env,
|
|
81
|
-
order: "normal"
|
|
82
|
-
});
|
|
83
|
-
await context.callHook("prepare", {
|
|
84
|
-
environment: env,
|
|
85
|
-
order: "post"
|
|
86
|
-
});
|
|
87
|
-
if (!skipTypes && env.config.output.types !== false) await handleTypes(context, env);
|
|
88
|
-
context.debug("Formatting files generated during the prepare step.");
|
|
89
|
-
await Promise.all([formatFolder$1(env, env.builtinsPath), formatFolder$1(env, env.entryPath)]);
|
|
90
|
-
await writeMetaFile(env);
|
|
91
|
-
env.persistedMeta = env.meta;
|
|
92
|
-
});
|
|
93
|
-
timer();
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
//#endregion
|
|
97
|
-
//#region src/api/build.ts
|
|
98
|
-
async function handleBuild(context, env) {
|
|
99
|
-
await context.callHook("build", {
|
|
100
|
-
environment: env,
|
|
101
|
-
order: "pre"
|
|
102
|
-
});
|
|
103
|
-
env.debug("Formatting the generated entry files before the build process starts.");
|
|
104
|
-
await formatFolder(env, env.entryPath);
|
|
105
|
-
await context.callHook("build", {
|
|
106
|
-
environment: env,
|
|
107
|
-
order: "normal"
|
|
108
|
-
});
|
|
109
|
-
if (env.config.output.copy) {
|
|
110
|
-
env.debug("Copying project's files from build output directory.");
|
|
111
|
-
const destinationPath = isParentPath(appendPath(env.config.output.path, env.config.cwd), appendPath(env.config.root, env.config.cwd)) ? joinPaths(env.config.output.copy.path, relativePath(appendPath(env.config.root, env.config.cwd), appendPath(env.config.output.path, env.config.cwd))) : joinPaths(env.config.output.copy.path, "dist");
|
|
112
|
-
const sourcePath = env.config.output.path;
|
|
113
|
-
if (existsSync(sourcePath) && sourcePath !== destinationPath) {
|
|
114
|
-
env.debug(`Copying files from project's build output directory (${env.config.output.path}) to the project's copy/publish directory (${destinationPath}).`);
|
|
115
|
-
await copyFiles(sourcePath, destinationPath);
|
|
116
|
-
} else env.warn(`The source path for the copy operation ${!existsSync(sourcePath) ? "does not exist" : "is the same as the destination path"}. Source: ${sourcePath}, Destination: ${destinationPath}. Skipping copying of build output files.`);
|
|
117
|
-
if (env.config.output.copy.assets && Array.isArray(env.config.output.copy.assets)) await Promise.all(env.config.output.copy.assets.map(async (asset) => {
|
|
118
|
-
env.trace(`Copying asset(s): ${chalk.redBright(env.config.cwd === asset.input ? asset.glob : appendPath(asset.glob, replacePath(asset.input, env.config.cwd)))} -> ${chalk.greenBright(appendPath(asset.glob, replacePath(asset.output, env.config.cwd)))} ${Array.isArray(asset.ignore) && asset.ignore.length > 0 ? ` (ignoring: ${asset.ignore.map((i) => chalk.yellowBright(i)).join(", ")})` : ""}`);
|
|
119
|
-
await env.fs.copy(asset, asset.output);
|
|
120
|
-
}));
|
|
121
|
-
} else env.debug("No copy configuration found for the project output. Skipping the copying of build output files.");
|
|
122
|
-
await context.callHook("build", {
|
|
123
|
-
environment: env,
|
|
124
|
-
order: "post"
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* Build the project
|
|
129
|
-
*
|
|
130
|
-
* @param context - The execution context for the build process, which provides access to the project configuration, environment, and utility functions for performing the build. The context is used to manage the state and behavior of the build process, allowing for hooks to be called at different stages of the build and for environment-specific configurations to be applied.
|
|
131
|
-
*/
|
|
132
|
-
async function build$1(context) {
|
|
133
|
-
const timer = context.timer("Building");
|
|
134
|
-
await context.generateChecksum();
|
|
135
|
-
if (context.meta.checksum !== context.persistedMeta?.checksum || context.config.skipCache) {
|
|
136
|
-
context.info(!context.persistedMeta?.checksum ? "No previous build cache found. Preparing the project for the initial build." : context.meta.checksum !== context.persistedMeta.checksum ? "The project has been modified since the last time `prepare` was ran. Re-preparing the project." : "The project is configured to skip cache. Re-preparing the project.");
|
|
137
|
-
await prepare$1(context);
|
|
138
|
-
}
|
|
139
|
-
if (context.config.singleBuild) await handleBuild(context, await context.toEnvironment());
|
|
140
|
-
else await executeEnvironments(context, async (env) => {
|
|
141
|
-
await handleBuild(context, env);
|
|
142
|
-
});
|
|
143
|
-
timer();
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
//#endregion
|
|
147
|
-
//#region src/api/clean.ts
|
|
148
|
-
/**
|
|
149
|
-
* Clean any previously prepared artifacts
|
|
150
|
-
*
|
|
151
|
-
* @param context - The execution context for the clean process, which provides access to the project configuration, environment, and utility functions for performing the clean operation. The context is used to manage the state and behavior of the clean process, allowing for hooks to be called at different stages of the clean and for environment-specific configurations to be applied.
|
|
152
|
-
*/
|
|
153
|
-
async function clean$1(context) {
|
|
154
|
-
const timer = context.timer("Cleaning");
|
|
155
|
-
await prepare$1(context, true);
|
|
156
|
-
await executeEnvironments(context, async (env) => {
|
|
157
|
-
env.debug("Cleaning the project's dist and artifacts directories.");
|
|
158
|
-
await env.fs.remove(joinPaths$1(env.config.cwd, env.config.output.path));
|
|
159
|
-
await env.fs.remove(joinPaths$1(env.config.cwd, env.config.root, env.config.output.artifactsPath));
|
|
160
|
-
await context.callHook("clean", {
|
|
161
|
-
environment: env,
|
|
162
|
-
sequential: false
|
|
163
|
-
});
|
|
164
|
-
});
|
|
165
|
-
timer();
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
//#endregion
|
|
169
|
-
//#region src/api/create.ts
|
|
170
|
-
/**
|
|
171
|
-
* Create a new Powerlines project
|
|
172
|
-
*
|
|
173
|
-
* @param context - The execution context for the create process, which provides access to the project configuration, environment, and utility functions for performing the create operation. The context is used to manage the state and behavior of the create process, allowing for hooks to be called at different stages of the create and for environment-specific configurations to be applied.
|
|
174
|
-
*/
|
|
175
|
-
async function create$1(context) {
|
|
176
|
-
const timer = context.timer("Create a New Project Generation");
|
|
177
|
-
await prepare$1(context, true);
|
|
178
|
-
await executeEnvironments(context, async (env) => {
|
|
179
|
-
env.debug("Initializing the processing options for the project.");
|
|
180
|
-
await context.callHook("create", {
|
|
181
|
-
environment: env,
|
|
182
|
-
order: "pre"
|
|
183
|
-
});
|
|
184
|
-
const files = await listFiles(joinPaths$1(env.powerlinesPath, "files/common/**/*.hbs"));
|
|
185
|
-
for (const file of files) {
|
|
186
|
-
env.trace(`Adding template file to project: ${file}`);
|
|
187
|
-
const template = Handlebars.compile(file);
|
|
188
|
-
await env.fs.write(joinPaths$1(env.config.root, file.replace(".hbs", "")), template(env));
|
|
189
|
-
}
|
|
190
|
-
await context.callHook("create", {
|
|
191
|
-
environment: env,
|
|
192
|
-
order: "normal"
|
|
193
|
-
});
|
|
194
|
-
if (env.config.projectType === "application") {
|
|
195
|
-
const appFiles = await listFiles(joinPaths$1(env.powerlinesPath, "files/application/**/*.hbs"));
|
|
196
|
-
for (const file of appFiles) {
|
|
197
|
-
env.trace(`Adding application template file: ${file}`);
|
|
198
|
-
const template = Handlebars.compile(file);
|
|
199
|
-
await env.fs.write(joinPaths$1(env.config.root, file.replace(".hbs", "")), template(env));
|
|
200
|
-
}
|
|
201
|
-
} else {
|
|
202
|
-
const libFiles = await listFiles(joinPaths$1(env.powerlinesPath, "files/library/**/*.hbs"));
|
|
203
|
-
for (const file of libFiles) {
|
|
204
|
-
env.trace(`Adding library template file: ${file}`);
|
|
205
|
-
const template = Handlebars.compile(file);
|
|
206
|
-
await env.fs.write(joinPaths$1(env.config.root, file.replace(".hbs", "")), template(env));
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
await context.callHook("create", {
|
|
210
|
-
environment: env,
|
|
211
|
-
order: "post"
|
|
212
|
-
});
|
|
213
|
-
});
|
|
214
|
-
timer();
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
//#endregion
|
|
218
|
-
//#region src/api/deploy.ts
|
|
219
|
-
/**
|
|
220
|
-
* Deploy the project's source files to the target environment.
|
|
221
|
-
*
|
|
222
|
-
* @remarks
|
|
223
|
-
* This function serves as the main entry point for the deployment process, orchestrating the execution of deployment hooks across different environments defined in the project configuration. It ensures that all relevant deployment operations are performed in a structured manner, allowing for pre-deployment, main deployment, and post-deployment hooks to be executed at the appropriate stages of the process. The function also utilizes a timer to measure the duration of the deployment operation, providing insights into the performance of the deployment process.
|
|
224
|
-
*
|
|
225
|
-
* @param context - The execution context for the deploy process, which provides access to the project configuration, environment, and utility functions for performing the deploy operation. The context is used to manage the state and behavior of the deploy process, allowing for hooks to be called at different stages of the deploy and for environment-specific configurations to be applied.
|
|
226
|
-
*/
|
|
227
|
-
async function deploy$1(context) {
|
|
228
|
-
const timer = context.timer("Deployment");
|
|
229
|
-
await prepare$1(context);
|
|
230
|
-
await executeEnvironments(context, async (env) => {
|
|
231
|
-
await context.callHook("deploy", { environment: env });
|
|
232
|
-
});
|
|
233
|
-
timer();
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
//#endregion
|
|
237
|
-
//#region src/api/docs.ts
|
|
238
|
-
/**
|
|
239
|
-
* Generate the project's documentation.
|
|
240
|
-
*
|
|
241
|
-
* @remarks
|
|
242
|
-
* This function serves as the main entry point for the documentation generation process, orchestrating the execution of documentation hooks across different environments defined in the project configuration. It ensures that all relevant documentation operations are performed in a structured manner, allowing for pre-documentation, main documentation, and post-documentation hooks to be executed at the appropriate stages of the process. The function also utilizes a timer to measure the duration of the documentation operation, providing insights into the performance of the documentation process.
|
|
243
|
-
*
|
|
244
|
-
* @param context - The execution context for the documentation process, which provides access to the project configuration, environment, and utility functions for performing the documentation operation. The context is used to manage the state and behavior of the documentation process, allowing for hooks to be called at different stages of the documentation and for environment-specific configurations to be applied.
|
|
245
|
-
*/
|
|
246
|
-
async function docs$1(context) {
|
|
247
|
-
const timer = context.timer("Documentation");
|
|
248
|
-
await prepare$1(context);
|
|
249
|
-
await executeEnvironments(context, async (env) => {
|
|
250
|
-
await context.callHook("docs", { environment: env });
|
|
251
|
-
});
|
|
252
|
-
timer();
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
//#endregion
|
|
256
|
-
//#region src/api/lint.ts
|
|
257
|
-
/**
|
|
258
|
-
* Lint the project's source files and report any issues found.
|
|
259
|
-
*
|
|
260
|
-
* @remarks
|
|
261
|
-
* This function serves as the main entry point for the linting process, orchestrating the execution of linting hooks across different environments defined in the project configuration. It ensures that all relevant linting operations are performed in a structured manner, allowing for pre-linting, main linting, and post-linting hooks to be executed at the appropriate stages of the process. The function also utilizes a timer to measure the duration of the linting operation, providing insights into the performance of the linting process.
|
|
262
|
-
*
|
|
263
|
-
* @param context - The execution context for the lint process, which provides access to the project configuration, environment, and utility functions for performing the lint operation. The context is used to manage the state and behavior of the lint process, allowing for hooks to be called at different stages of the lint and for environment-specific configurations to be applied.
|
|
264
|
-
*/
|
|
265
|
-
async function lint$1(context) {
|
|
266
|
-
const timer = context.timer("Linting");
|
|
267
|
-
await prepare$1(context);
|
|
268
|
-
await executeEnvironments(context, async (env) => {
|
|
269
|
-
await context.callHook("lint", {
|
|
270
|
-
environment: env,
|
|
271
|
-
sequential: false
|
|
272
|
-
});
|
|
273
|
-
});
|
|
274
|
-
timer();
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
//#endregion
|
|
278
|
-
//#region src/api/test.ts
|
|
279
|
-
/**
|
|
280
|
-
* Test the project's source files and report any issues found.
|
|
281
|
-
*
|
|
282
|
-
* @remarks
|
|
283
|
-
* This function serves as the main entry point for the testing process, orchestrating the execution of testing hooks across different environments defined in the project configuration. It ensures that all relevant testing operations are performed in a structured manner, allowing for pre-testing, main testing, and post-testing hooks to be executed at the appropriate stages of the process. The function also utilizes a timer to measure the duration of the testing operation, providing insights into the performance of the testing process.
|
|
284
|
-
*
|
|
285
|
-
* @param context - The execution context for the test process, which provides access to the project configuration, environment, and utility functions for performing the test operation. The context is used to manage the state and behavior of the test process, allowing for hooks to be called at different stages of the test and for environment-specific configurations to be applied.
|
|
286
|
-
*/
|
|
287
|
-
async function test$1(context) {
|
|
288
|
-
const timer = context.timer("Testing");
|
|
289
|
-
await prepare$1(context);
|
|
290
|
-
await executeEnvironments(context, async (env) => {
|
|
291
|
-
await context.callHook("test", {
|
|
292
|
-
environment: env,
|
|
293
|
-
sequential: false
|
|
294
|
-
});
|
|
295
|
-
});
|
|
296
|
-
timer();
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
//#endregion
|
|
300
|
-
//#region src/api/types.ts
|
|
301
|
-
/**
|
|
302
|
-
* Generate runtime types for the Powerlines project.
|
|
303
|
-
*
|
|
304
|
-
* @remarks
|
|
305
|
-
* This function is responsible for generating TypeScript declaration files based on the project's configuration and environment. It executes hooks at various stages of the type generation process, allowing for customization and extension by plugins. The generated types are formatted and written to the appropriate location in the project's file system, ensuring that they are available for use by other parts of the Powerlines system and by end-users of the project.
|
|
306
|
-
*
|
|
307
|
-
* @param context - The execution context for the build process, which provides access to the project configuration, environment, and utility functions for performing the build. The context is used to manage the state and behavior of the build process, allowing for hooks to be called at different stages of the build and for environment-specific configurations to be applied.
|
|
308
|
-
*/
|
|
309
|
-
async function types$1(context) {
|
|
310
|
-
const timer = context.timer("Type Generation");
|
|
311
|
-
context.debug(" Aggregating configuration options for the Powerlines project");
|
|
312
|
-
await executeEnvironments(context, async (env) => {
|
|
313
|
-
env.debug(`Initializing the processing options for the Powerlines project.`);
|
|
314
|
-
await context.callHook("configResolved", {
|
|
315
|
-
environment: env,
|
|
316
|
-
order: "pre"
|
|
317
|
-
});
|
|
318
|
-
await initializeTsconfig(env);
|
|
319
|
-
await context.callHook("configResolved", {
|
|
320
|
-
environment: env,
|
|
321
|
-
order: "normal"
|
|
322
|
-
});
|
|
323
|
-
if (env.entry.length > 0) env.debug(`The configuration provided ${isObject(env.config.input) ? Object.keys(env.config.input).length : toArray(env.config.input).length} entry point(s), Powerlines has found ${env.entry.length} entry files(s) for the ${env.config.title} project${env.entry.length > 0 && env.entry.length < 10 ? `: \n${env.entry.map((entry) => `- ${entry.file}${entry.output ? ` -> ${entry.output}` : ""}`).join(" \n")}` : ""}`);
|
|
324
|
-
else env.warn(`No entry files were found for the ${env.config.title} project. Please ensure this is correct. Powerlines plugins generally require at least one entry point to function properly.`);
|
|
325
|
-
await resolveTsconfig(env);
|
|
326
|
-
await installDependencies(env);
|
|
327
|
-
await context.callHook("configResolved", {
|
|
328
|
-
environment: env,
|
|
329
|
-
order: "post"
|
|
330
|
-
});
|
|
331
|
-
context.trace(`Powerlines configuration has been resolved: \n\n${formatLogMessage({
|
|
332
|
-
...env.config,
|
|
333
|
-
userConfig: isSetObject(env.config.userConfig) ? omit(env.config.userConfig, ["plugins"]) : void 0,
|
|
334
|
-
inlineConfig: isSetObject(env.config.inlineConfig) ? env.config.inlineConfig : void 0,
|
|
335
|
-
plugins: env.plugins.map((plugin) => plugin.name)
|
|
336
|
-
})}`);
|
|
337
|
-
if (!env.fs.existsSync(env.cachePath)) await createDirectory(env.cachePath);
|
|
338
|
-
if (!env.fs.existsSync(env.dataPath)) await createDirectory(env.dataPath);
|
|
339
|
-
if (env.config.skipCache === true || env.persistedMeta?.checksum !== env.meta.checksum) env.debug(`Using previously prepared files as the meta checksum has not changed.`);
|
|
340
|
-
else {
|
|
341
|
-
env.info(`Running \`prepare\` command as the meta checksum has changed since the last run.`);
|
|
342
|
-
await prepare$1(context, true);
|
|
343
|
-
}
|
|
344
|
-
await handleTypes(context, env);
|
|
345
|
-
context.debug("Formatting files generated during the types step.");
|
|
346
|
-
await format(env, env.typesPath, await env.fs.read(env.typesPath) ?? "");
|
|
347
|
-
await writeMetaFile(env);
|
|
348
|
-
env.persistedMeta = env.meta;
|
|
349
|
-
});
|
|
350
|
-
timer();
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
//#endregion
|
|
354
|
-
//#region src/helpers/rpc.ts
|
|
355
|
-
function createWsRpcClientMode(baseURL, connectionMeta, events, clientRpc, authToken = humanId({
|
|
356
|
-
separator: "-",
|
|
357
|
-
capitalize: false
|
|
358
|
-
}), rpcOptions = {}, wsOptions = {}) {
|
|
359
|
-
let isTrusted = false;
|
|
360
|
-
const trustedPromise = promiseWithResolver();
|
|
361
|
-
const url = isNumber(connectionMeta.websocket) || isSet(connectionMeta.websocket) && `${+connectionMeta.websocket}` === `${connectionMeta.websocket}` ? `${baseURL.protocol.replace("http", "ws")}//${baseURL.hostname}:${connectionMeta.websocket}` : connectionMeta.websocket;
|
|
362
|
-
const definitions = /* @__PURE__ */ new Map();
|
|
363
|
-
for (const name of connectionMeta.jsonSerializableMethods ?? []) definitions.set(name, { jsonSerializable: true });
|
|
364
|
-
const serverRpc = createRpcClient(clientRpc.functions, {
|
|
365
|
-
channel: createWsRpcChannel({
|
|
366
|
-
url,
|
|
367
|
-
authToken,
|
|
368
|
-
definitions,
|
|
369
|
-
...wsOptions
|
|
370
|
-
}),
|
|
371
|
-
rpcOptions
|
|
372
|
-
});
|
|
373
|
-
clientRpc.register({
|
|
374
|
-
name: "devframe:auth:revoked",
|
|
375
|
-
type: "event",
|
|
376
|
-
handler: () => {
|
|
377
|
-
isTrusted = false;
|
|
378
|
-
events.emit("rpc:is-trusted:updated", false);
|
|
379
|
-
}
|
|
380
|
-
});
|
|
381
|
-
let currentAuthToken = authToken;
|
|
382
|
-
async function requestTrustWithToken(token) {
|
|
383
|
-
currentAuthToken = token;
|
|
384
|
-
return true;
|
|
385
|
-
}
|
|
386
|
-
async function requestTrust() {
|
|
387
|
-
if (isTrusted) return true;
|
|
388
|
-
return requestTrustWithToken(currentAuthToken);
|
|
389
|
-
}
|
|
390
|
-
async function ensureTrusted(timeout = 6e4) {
|
|
391
|
-
if (isTrusted) trustedPromise.resolve(true);
|
|
392
|
-
if (timeout <= 0) return trustedPromise.promise;
|
|
393
|
-
let clear = () => {};
|
|
394
|
-
await Promise.race([trustedPromise.promise.then(clear), new Promise((resolve, reject) => {
|
|
395
|
-
const id = setTimeout(() => {
|
|
396
|
-
reject(/* @__PURE__ */ new Error("Timeout waiting for rpc to be trusted"));
|
|
397
|
-
}, timeout);
|
|
398
|
-
clear = () => clearTimeout(id);
|
|
399
|
-
})]);
|
|
400
|
-
return isTrusted;
|
|
401
|
-
}
|
|
402
|
-
return {
|
|
403
|
-
get isTrusted() {
|
|
404
|
-
return isTrusted;
|
|
405
|
-
},
|
|
406
|
-
requestTrust,
|
|
407
|
-
requestTrustWithToken,
|
|
408
|
-
ensureTrusted,
|
|
409
|
-
call: (...args) => {
|
|
410
|
-
return serverRpc.$call(...args);
|
|
411
|
-
},
|
|
412
|
-
callEvent: (...args) => {
|
|
413
|
-
return serverRpc.$callEvent(...args);
|
|
414
|
-
},
|
|
415
|
-
callOptional: (...args) => {
|
|
416
|
-
return serverRpc.$callOptional(...args);
|
|
417
|
-
}
|
|
418
|
-
};
|
|
419
|
-
}
|
|
420
|
-
const CONNECTION_AUTH_TOKEN_KEY = "__DEVTOOLS_CONNECTION_AUTH_TOKEN__";
|
|
421
|
-
function createRpcClient$1(options) {
|
|
422
|
-
const baseURL = new StormURL(options.baseURL);
|
|
423
|
-
const cacheManager = new RpcCacheManager({
|
|
424
|
-
functions: [],
|
|
425
|
-
...typeof options.cacheOptions === "object" ? options.cacheOptions : {}
|
|
426
|
-
});
|
|
427
|
-
const context = { rpc: void 0 };
|
|
428
|
-
const clientRpc = new RpcFunctionsCollectorBase(context);
|
|
429
|
-
EventEmitter.setMaxListeners(100);
|
|
430
|
-
const events = createEventEmitter();
|
|
431
|
-
const mode = createWsRpcClientMode(baseURL, options.connection, events, clientRpc, void 0, {
|
|
432
|
-
...options.rpcOptions,
|
|
433
|
-
async onRequest(req, next, resolve) {
|
|
434
|
-
await options.rpcOptions?.onRequest?.call(this, req, next, resolve);
|
|
435
|
-
if (options.cacheOptions && cacheManager?.validate(req.m)) {
|
|
436
|
-
const cached = cacheManager.cached(req.m, req.a);
|
|
437
|
-
if (cached) return resolve(cached);
|
|
438
|
-
else {
|
|
439
|
-
const res = await next(req);
|
|
440
|
-
cacheManager?.apply(req, res);
|
|
441
|
-
}
|
|
442
|
-
} else await next(req);
|
|
443
|
-
}
|
|
444
|
-
}, options.wsOptions);
|
|
445
|
-
const rpc = {
|
|
446
|
-
events,
|
|
447
|
-
get isTrusted() {
|
|
448
|
-
return mode.isTrusted;
|
|
449
|
-
},
|
|
450
|
-
connectionMeta: options.connection,
|
|
451
|
-
ensureTrusted: mode.ensureTrusted,
|
|
452
|
-
requestTrust: mode.requestTrust,
|
|
453
|
-
requestTrustWithToken: async (token) => {
|
|
454
|
-
localStorage.setItem(CONNECTION_AUTH_TOKEN_KEY, token);
|
|
455
|
-
globalThis[CONNECTION_AUTH_TOKEN_KEY] = token;
|
|
456
|
-
return mode.requestTrustWithToken(token);
|
|
457
|
-
},
|
|
458
|
-
call: mode.call,
|
|
459
|
-
callEvent: mode.callEvent,
|
|
460
|
-
callOptional: mode.callOptional,
|
|
461
|
-
client: clientRpc,
|
|
462
|
-
sharedState: void 0,
|
|
463
|
-
streaming: void 0,
|
|
464
|
-
cacheManager
|
|
465
|
-
};
|
|
466
|
-
rpc.streaming = createRpcStreamingClientHost(rpc);
|
|
467
|
-
context.rpc = rpc;
|
|
468
|
-
mode.requestTrust();
|
|
469
|
-
try {
|
|
470
|
-
const bc = new BroadcastChannel("vite-devtools-auth");
|
|
471
|
-
bc.onmessage = (event) => {
|
|
472
|
-
if (event.data?.type === "auth-update" && event.data.authToken) rpc.requestTrustWithToken(event.data.authToken);
|
|
473
|
-
};
|
|
474
|
-
} catch {}
|
|
475
|
-
return rpc;
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
//#endregion
|
|
479
|
-
//#region src/helpers/create-execution-host.ts
|
|
480
|
-
/**
|
|
481
|
-
* Creates an execution host with the provided methods. Each method will be wrapped to create an execution context and handle errors appropriately.
|
|
482
|
-
*
|
|
483
|
-
* @param methods - An object where keys are method names and values are functions that take an execution context and return a promise.
|
|
484
|
-
* @returns An object with the same keys as the input methods, but each function is wrapped to create an execution context and handle errors.
|
|
485
|
-
*/
|
|
486
|
-
function createExecutionHost(methods) {
|
|
487
|
-
return Object.fromEntries(Object.entries(methods).map(([method, fn]) => [method, async (params) => {
|
|
488
|
-
const { options, inlineConfig } = params;
|
|
489
|
-
let rpc;
|
|
490
|
-
if (options.baseURL && options.connection) rpc = createRpcClient$1(options);
|
|
491
|
-
else throw new Error(`Execution RPC client could not be created - Missing ${!options.baseURL ? `baseURL${options.connection ? ` and connection information` : ""}` : "connection"} or connection information.`);
|
|
492
|
-
const logFn = (meta, message) => {
|
|
493
|
-
consoleLogger(meta, message);
|
|
494
|
-
if (rpc) rpc.callEvent("powerlines:log", {
|
|
495
|
-
meta: {
|
|
496
|
-
category: "general",
|
|
497
|
-
...options,
|
|
498
|
-
...isSetObject(meta) ? meta : { type: meta },
|
|
499
|
-
logId: uuid(),
|
|
500
|
-
timestamp: Date.now()
|
|
501
|
-
},
|
|
502
|
-
message
|
|
503
|
-
});
|
|
504
|
-
};
|
|
505
|
-
const context = await PowerlinesExecutionContext.from({
|
|
506
|
-
...options,
|
|
507
|
-
logFn
|
|
508
|
-
}, inlineConfig ?? {}, { rpc });
|
|
509
|
-
context.logger.info(`Starting ${titleCase(options.framework?.name) || "Powerlines"} - ${titleCase(method)} execution (${options.executionId})`);
|
|
510
|
-
await resolvePluginConfig(context);
|
|
511
|
-
await fn(context);
|
|
512
|
-
}]));
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
//#endregion
|
|
516
|
-
//#region src/execution-host.ts
|
|
517
|
-
const executionHost = createExecutionHost({
|
|
518
|
-
types: types$1,
|
|
519
|
-
prepare: prepare$1,
|
|
520
|
-
create: create$1,
|
|
521
|
-
clean: clean$1,
|
|
522
|
-
lint: lint$1,
|
|
523
|
-
test: test$1,
|
|
524
|
-
build: build$1,
|
|
525
|
-
docs: docs$1,
|
|
526
|
-
deploy: deploy$1
|
|
527
|
-
});
|
|
528
|
-
const types = executionHost.types;
|
|
529
|
-
const prepare = executionHost.prepare;
|
|
530
|
-
const create = executionHost.create;
|
|
531
|
-
const clean = executionHost.clean;
|
|
532
|
-
const lint = executionHost.lint;
|
|
533
|
-
const test = executionHost.test;
|
|
534
|
-
const build = executionHost.build;
|
|
535
|
-
const docs = executionHost.docs;
|
|
536
|
-
const deploy = executionHost.deploy;
|
|
537
|
-
|
|
538
|
-
//#endregion
|
|
539
|
-
export { build, clean, create, deploy, docs, lint, prepare, test, types };
|
|
540
|
-
//# sourceMappingURL=execution-host.mjs.map
|