@powerlines/plugin-vite 0.14.171 → 0.14.172
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/helpers/index.cjs +1 -3
- package/dist/helpers/index.d.mts +1 -2
- package/dist/helpers/index.mjs +1 -1
- package/dist/helpers/unplugin.mjs +4 -4
- package/dist/index.cjs +3 -3
- package/dist/powerlines/src/internal/helpers/hooks.d.mts +1 -1
- package/dist/powerlines/src/types/api.d.cts +3 -3
- package/dist/powerlines/src/types/api.d.mts +3 -3
- package/dist/powerlines/src/types/babel.d.mts +2 -2
- package/dist/powerlines/src/types/build.d.cts +10 -10
- package/dist/powerlines/src/types/build.d.mts +1 -1
- package/dist/powerlines/src/types/commands.d.cts +1 -1
- package/dist/powerlines/src/types/commands.d.mts +1 -1
- package/dist/powerlines/src/types/config.d.cts +2 -2
- package/dist/powerlines/src/types/config.d.mts +3 -3
- package/dist/powerlines/src/types/context.d.cts +4 -4
- package/dist/powerlines/src/types/context.d.mts +3 -3
- package/dist/powerlines/src/types/hooks.d.cts +1 -1
- package/dist/powerlines/src/types/hooks.d.mts +1 -1
- package/dist/powerlines/src/types/plugin.d.cts +5 -5
- package/dist/powerlines/src/types/plugin.d.mts +5 -5
- package/dist/powerlines/src/types/resolved.d.cts +1 -1
- package/dist/powerlines/src/types/unplugin.d.cts +1 -1
- package/dist/powerlines/src/types/unplugin.d.mts +2 -2
- package/dist/types/index.d.mts +1 -2
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.mts +1 -1
- package/package.json +4 -4
- package/README.md +0 -304
- package/dist/helpers/index.d.cts +0 -2
- package/dist/powerlines/src/types/internal.d.cts +0 -60
- package/dist/powerlines/src/types/internal.d.mts +0 -60
- package/dist/types/index.cjs +0 -0
- package/dist/types/index.d.cts +0 -2
- package/dist/types/index.mjs +0 -1
- package/dist/types/internal.cjs +0 -0
- package/dist/types/internal.d.cts +0 -14
- package/dist/types/internal.d.mts +0 -14
- package/dist/types/internal.mjs +0 -1
- package/dist/types/plugin.cjs +0 -0
- package/dist/types/plugin.mjs +0 -1
package/dist/helpers/index.cjs
CHANGED
package/dist/helpers/index.d.mts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import { createVitePlugin } from "./unplugin.mjs";
|
|
2
|
-
export { createVitePlugin };
|
|
1
|
+
import { createVitePlugin } from "./unplugin.mjs";
|
package/dist/helpers/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createUnplugin } from "powerlines/lib/unplugin";
|
|
2
|
-
import { createVitePlugin
|
|
2
|
+
import { createVitePlugin } from "unplugin";
|
|
3
3
|
|
|
4
4
|
//#region src/helpers/unplugin.ts
|
|
5
|
-
function createVitePlugin(context) {
|
|
6
|
-
return createVitePlugin
|
|
5
|
+
function createVitePlugin$1(context) {
|
|
6
|
+
return createVitePlugin(createUnplugin(context))({});
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
//#endregion
|
|
10
|
-
export { createVitePlugin };
|
|
10
|
+
export { createVitePlugin$1 as createVitePlugin };
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
3
|
-
const
|
|
3
|
+
const require_unplugin = require('./helpers/unplugin.cjs');
|
|
4
4
|
require('./helpers/index.cjs');
|
|
5
5
|
let defu = require("defu");
|
|
6
6
|
defu = require_rolldown_runtime.__toESM(defu);
|
|
@@ -35,13 +35,13 @@ const plugin = (options = {}) => {
|
|
|
35
35
|
config: false,
|
|
36
36
|
entry: this.entry,
|
|
37
37
|
environments: Object.fromEntries(Object.entries(environments).map(([name, env]) => [name, (0, powerlines_lib_build_vite.extractViteConfig)(env)]))
|
|
38
|
-
}, (0, powerlines_lib_build_vite.extractViteConfig)(this), { plugins: [
|
|
38
|
+
}, (0, powerlines_lib_build_vite.extractViteConfig)(this), { plugins: [require_unplugin.createVitePlugin(this)] }));
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
42
|
var src_default = plugin;
|
|
43
43
|
|
|
44
44
|
//#endregion
|
|
45
|
-
exports.createVitePlugin =
|
|
45
|
+
exports.createVitePlugin = require_unplugin.createVitePlugin;
|
|
46
46
|
exports.default = src_default;
|
|
47
47
|
exports.plugin = plugin;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CallHookOptions } from "../internal/helpers/hooks.cjs";
|
|
1
|
+
import { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, LintInlineConfig, NewInlineConfig, PrepareInlineConfig } from "./config.cjs";
|
|
3
2
|
import { InferHookParameters, InferHookReturnType } from "./hooks.cjs";
|
|
3
|
+
import { ResolvedConfig } from "./resolved.cjs";
|
|
4
4
|
import { APIContext, EnvironmentContext, PluginContext } from "./context.cjs";
|
|
5
|
-
import {
|
|
5
|
+
import { CallHookOptions } from "../internal/helpers/hooks.cjs";
|
|
6
6
|
|
|
7
7
|
//#region ../powerlines/src/types/api.d.ts
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CallHookOptions } from "../internal/helpers/hooks.mjs";
|
|
1
|
+
import { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, LintInlineConfig, NewInlineConfig, PrepareInlineConfig } from "./config.mjs";
|
|
3
2
|
import { InferHookParameters, InferHookReturnType } from "./hooks.mjs";
|
|
3
|
+
import { ResolvedConfig } from "./resolved.mjs";
|
|
4
4
|
import { APIContext, EnvironmentContext, PluginContext } from "./context.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { CallHookOptions } from "../internal/helpers/hooks.mjs";
|
|
6
6
|
|
|
7
7
|
//#region ../powerlines/src/types/api.d.ts
|
|
8
8
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
1
|
+
import "./config.mjs";
|
|
2
|
+
import "./context.mjs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { UserConfig
|
|
1
|
+
import { OutputOptions, RollupOptions } from "rollup";
|
|
2
|
+
import { UserConfig } from "@farmfe/core";
|
|
3
3
|
import { Configuration } from "@rspack/core";
|
|
4
4
|
import { BuildOptions } from "@storm-software/tsup/types";
|
|
5
5
|
import { UnbuildOptions } from "@storm-software/unbuild/types";
|
|
6
6
|
import { BuildOptions as BuildOptions$1 } from "esbuild";
|
|
7
7
|
import { RolldownOptions } from "rolldown";
|
|
8
|
-
import {
|
|
9
|
-
import { UserConfig as UserConfig$2 } from "
|
|
8
|
+
import { UserConfig as UserConfig$1 } from "tsdown";
|
|
9
|
+
import { DepOptimizationOptions, UserConfig as UserConfig$2 } from "vite";
|
|
10
10
|
import { Configuration as Configuration$1 } from "webpack";
|
|
11
11
|
|
|
12
12
|
//#region ../powerlines/src/types/build.d.ts
|
|
@@ -155,13 +155,13 @@ interface BuildConfig {
|
|
|
155
155
|
type BuildResolvedConfig = Omit<BuildConfig, "override">;
|
|
156
156
|
type ESBuildBuildConfig = Omit<BuildOptions$1, "entryPoints" | "sourceRoot" | "platform" | "outdir" | "env" | "assets" | "external" | "inject" | "tsconfig" | "tsconfigRaw" | "logLevel"> & BuildConfig;
|
|
157
157
|
type ESBuildResolvedBuildConfig = Omit<BuildOptions$1, "inject"> & BuildResolvedConfig;
|
|
158
|
-
type ViteBuildConfig = Omit<UserConfig, "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output"> & BuildConfig & {
|
|
158
|
+
type ViteBuildConfig = Omit<UserConfig$2, "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output"> & BuildConfig & {
|
|
159
159
|
/**
|
|
160
160
|
* Optimize deps config
|
|
161
161
|
*/
|
|
162
162
|
optimizeDeps?: Omit<DepOptimizationOptions, "extensions">;
|
|
163
163
|
};
|
|
164
|
-
type ViteResolvedBuildConfig = UserConfig & BuildResolvedConfig;
|
|
164
|
+
type ViteResolvedBuildConfig = UserConfig$2 & BuildResolvedConfig;
|
|
165
165
|
type WebpackBuildConfig = Omit<Configuration$1, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw"> & BuildConfig;
|
|
166
166
|
type WebpackResolvedBuildConfig = Configuration$1 & BuildResolvedConfig;
|
|
167
167
|
type RspackBuildConfig = Omit<Configuration, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw"> & BuildConfig;
|
|
@@ -175,11 +175,11 @@ type RolldownBuildConfig = Omit<RolldownOptions, "input" | "external" | "tsconfi
|
|
|
175
175
|
type RolldownResolvedBuildConfig = RolldownOptions & BuildResolvedConfig;
|
|
176
176
|
type TsupBuildConfig = Partial<Omit<BuildOptions, "userOptions" | "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "clean" | "env" | "entry" | "entryPoints" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
|
|
177
177
|
type TsupResolvedBuildConfig = BuildOptions & BuildResolvedConfig;
|
|
178
|
-
type TsdownBuildConfig = Partial<Omit<UserConfig$
|
|
179
|
-
type TsdownResolvedBuildConfig = UserConfig$
|
|
178
|
+
type TsdownBuildConfig = Partial<Omit<UserConfig$1, "name" | "outDir" | "clean" | "cwd" | "tsconfig" | "publicDir" | "copy" | "alias" | "format" | "platform" | "env" | "define" | "entry" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
|
|
179
|
+
type TsdownResolvedBuildConfig = UserConfig$1 & BuildResolvedConfig;
|
|
180
180
|
type UnbuildBuildConfig = Partial<Omit<UnbuildOptions, "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "env" | "entry" | "entryPoints">> & BuildConfig;
|
|
181
181
|
type UnbuildResolvedBuildConfig = UnbuildOptions & BuildResolvedConfig;
|
|
182
|
-
type FarmBuildConfig = Partial<Omit<UserConfig
|
|
183
|
-
type FarmResolvedBuildConfig = UserConfig
|
|
182
|
+
type FarmBuildConfig = Partial<Omit<UserConfig, "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "env" | "entry" | "entryPoints">> & BuildConfig;
|
|
183
|
+
type FarmResolvedBuildConfig = UserConfig & BuildResolvedConfig;
|
|
184
184
|
//#endregion
|
|
185
185
|
export { BuildConfig, BuildResolvedConfig, BuilderVariant, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, InferUnpluginVariant, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, UnpluginBuilderVariant, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { DepOptimizationOptions, UserConfig } from "vite";
|
|
2
|
+
import { OutputOptions, RollupOptions } from "rollup";
|
|
2
3
|
import { UserConfig as UserConfig$1 } from "@farmfe/core";
|
|
3
4
|
import { Configuration } from "@rspack/core";
|
|
4
5
|
import { BuildOptions } from "@storm-software/tsup/types";
|
|
5
6
|
import { UnbuildOptions } from "@storm-software/unbuild/types";
|
|
6
7
|
import { BuildOptions as BuildOptions$1 } from "esbuild";
|
|
7
8
|
import { RolldownOptions } from "rolldown";
|
|
8
|
-
import { OutputOptions, RollupOptions } from "rollup";
|
|
9
9
|
import { UserConfig as UserConfig$2 } from "tsdown";
|
|
10
10
|
import { Configuration as Configuration$1 } from "webpack";
|
|
11
11
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MaybePromise } from "@stryke/types/base";
|
|
2
1
|
import { ArrayValues } from "@stryke/types/array";
|
|
2
|
+
import { MaybePromise } from "@stryke/types/base";
|
|
3
3
|
|
|
4
4
|
//#region ../powerlines/src/types/commands.d.ts
|
|
5
5
|
declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./context.mjs";
|
|
2
|
-
import { MaybePromise } from "@stryke/types/base";
|
|
3
2
|
import { ArrayValues } from "@stryke/types/array";
|
|
3
|
+
import { MaybePromise } from "@stryke/types/base";
|
|
4
4
|
|
|
5
5
|
//#region ../powerlines/src/types/commands.d.ts
|
|
6
6
|
declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { BuildConfig, BuildResolvedConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig } from "./build.cjs";
|
|
2
2
|
import { StoragePort, StoragePreset } from "./fs.cjs";
|
|
3
|
-
import { Plugin } from "./plugin.cjs";
|
|
4
3
|
import { TSConfig } from "./tsconfig.cjs";
|
|
5
4
|
import { PluginContext } from "./context.cjs";
|
|
5
|
+
import { Plugin } from "./plugin.cjs";
|
|
6
|
+
import { MaybePromise } from "@stryke/types/base";
|
|
6
7
|
import { PreviewOptions, ResolvedConfig } from "vite";
|
|
7
8
|
import { Format } from "@storm-software/build-tools/types";
|
|
8
9
|
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
9
10
|
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
10
|
-
import { MaybePromise } from "@stryke/types/base";
|
|
11
11
|
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
12
12
|
import { AssetGlob } from "@stryke/types/file";
|
|
13
13
|
import { DateString } from "compatx";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { BuildConfig, BuildResolvedConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig } from "./build.mjs";
|
|
2
|
+
import "./babel.mjs";
|
|
2
3
|
import { StoragePort, StoragePreset } from "./fs.mjs";
|
|
3
|
-
import { Plugin } from "./plugin.mjs";
|
|
4
4
|
import { TSConfig } from "./tsconfig.mjs";
|
|
5
5
|
import { PluginContext } from "./context.mjs";
|
|
6
|
-
import "./
|
|
6
|
+
import { Plugin } from "./plugin.mjs";
|
|
7
7
|
import { PreviewOptions, ResolvedConfig } from "vite";
|
|
8
|
+
import { MaybePromise } from "@stryke/types/base";
|
|
8
9
|
import { Format } from "@storm-software/build-tools/types";
|
|
9
10
|
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
10
11
|
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
11
|
-
import { MaybePromise } from "@stryke/types/base";
|
|
12
12
|
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
13
13
|
import { AssetGlob } from "@stryke/types/file";
|
|
14
14
|
import { DateString } from "compatx";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ResolveOptions, VirtualFile, VirtualFileSystemInterface, WriteOptions } from "./fs.cjs";
|
|
2
|
-
import { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.cjs";
|
|
3
|
-
import { Plugin } from "./plugin.cjs";
|
|
4
|
-
import { HooksList, InferHooksListItem } from "./hooks.cjs";
|
|
5
2
|
import { ParsedTypeScriptConfig } from "./tsconfig.cjs";
|
|
6
3
|
import { InlineConfig, LogFn, UserConfig, WorkspaceConfig } from "./config.cjs";
|
|
4
|
+
import { HooksList, InferHooksListItem } from "./hooks.cjs";
|
|
5
|
+
import { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.cjs";
|
|
6
|
+
import { Plugin } from "./plugin.cjs";
|
|
7
7
|
import { NonUndefined } from "@stryke/types/base";
|
|
8
|
+
import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage } from "unplugin";
|
|
8
9
|
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
9
10
|
import { FetchRequestOptions } from "@stryke/http/fetch";
|
|
10
11
|
import { PackageJson } from "@stryke/types/package-json";
|
|
@@ -14,7 +15,6 @@ import { ParseResult, ParserOptions } from "oxc-parser";
|
|
|
14
15
|
import { Range } from "semver";
|
|
15
16
|
import { Project } from "ts-morph";
|
|
16
17
|
import { RequestInfo, Response } from "undici";
|
|
17
|
-
import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage } from "unplugin";
|
|
18
18
|
|
|
19
19
|
//#region ../powerlines/src/types/context.d.ts
|
|
20
20
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ResolveOptions, VirtualFile, VirtualFileSystemInterface, WriteOptions } from "./fs.mjs";
|
|
2
|
-
import { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.mjs";
|
|
3
|
-
import { Plugin } from "./plugin.mjs";
|
|
4
|
-
import { HooksList, InferHooksListItem } from "./hooks.mjs";
|
|
5
2
|
import { ParsedTypeScriptConfig } from "./tsconfig.mjs";
|
|
6
3
|
import { InlineConfig, LogFn, UserConfig, WorkspaceConfig } from "./config.mjs";
|
|
4
|
+
import { HooksList, InferHooksListItem } from "./hooks.mjs";
|
|
5
|
+
import { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.mjs";
|
|
6
|
+
import { Plugin } from "./plugin.mjs";
|
|
7
7
|
import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage } from "unplugin";
|
|
8
8
|
import { NonUndefined } from "@stryke/types/base";
|
|
9
9
|
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UnpluginBuilderVariant } from "./build.cjs";
|
|
2
|
-
import { Plugin, PluginHookFields, PluginHookFunctions } from "./plugin.cjs";
|
|
3
2
|
import { PluginContext, WithUnpluginBuildContext } from "./context.cjs";
|
|
3
|
+
import { Plugin, PluginHookFields, PluginHookFunctions } from "./plugin.cjs";
|
|
4
4
|
import { UnpluginOptions } from "unplugin";
|
|
5
5
|
|
|
6
6
|
//#region ../powerlines/src/types/hooks.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UnpluginBuilderVariant } from "./build.mjs";
|
|
2
|
-
import { Plugin, PluginHookFields, PluginHookFunctions } from "./plugin.mjs";
|
|
3
2
|
import { PluginContext, WithUnpluginBuildContext } from "./context.mjs";
|
|
3
|
+
import { Plugin, PluginHookFields, PluginHookFunctions } from "./plugin.mjs";
|
|
4
4
|
import { UnpluginOptions } from "unplugin";
|
|
5
5
|
|
|
6
6
|
//#region ../powerlines/src/types/hooks.d.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { BuilderVariant } from "./build.cjs";
|
|
2
|
-
import {
|
|
2
|
+
import { EnvironmentConfig, PluginConfig } from "./config.cjs";
|
|
3
3
|
import { EnvironmentResolvedConfig, ResolvedConfig } from "./resolved.cjs";
|
|
4
|
-
import { InferUnpluginOptions } from "./unplugin.cjs";
|
|
5
4
|
import { BuildPluginContext, PluginContext, UnresolvedContext } from "./context.cjs";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { CommandType } from "./commands.cjs";
|
|
6
|
+
import { InferUnpluginOptions } from "./unplugin.cjs";
|
|
7
|
+
import { ArrayValues } from "@stryke/types/array";
|
|
8
8
|
import { AnyFunction, MaybePromise } from "@stryke/types/base";
|
|
9
|
+
import { LoadResult } from "rollup";
|
|
9
10
|
import { ExternalIdResult, HookFilter, TransformResult } from "unplugin";
|
|
10
|
-
import { ArrayValues } from "@stryke/types/array";
|
|
11
11
|
|
|
12
12
|
//#region ../powerlines/src/types/plugin.d.ts
|
|
13
13
|
interface PluginHookObject<THookFunction extends AnyFunction, TFilter extends keyof HookFilter = never> {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { BuilderVariant } from "./build.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { EnvironmentConfig, PluginConfig } from "./config.mjs";
|
|
3
3
|
import { EnvironmentResolvedConfig, ResolvedConfig } from "./resolved.mjs";
|
|
4
|
-
import { InferUnpluginOptions } from "./unplugin.mjs";
|
|
5
4
|
import { BuildPluginContext, PluginContext, UnresolvedContext } from "./context.mjs";
|
|
6
|
-
import {
|
|
5
|
+
import { CommandType } from "./commands.mjs";
|
|
6
|
+
import { InferUnpluginOptions } from "./unplugin.mjs";
|
|
7
7
|
import { ExternalIdResult, HookFilter, TransformResult } from "unplugin";
|
|
8
|
-
import { LoadResult } from "rollup";
|
|
9
|
-
import { AnyFunction, MaybePromise } from "@stryke/types/base";
|
|
10
8
|
import { ArrayValues } from "@stryke/types/array";
|
|
9
|
+
import { AnyFunction, MaybePromise } from "@stryke/types/base";
|
|
10
|
+
import { LoadResult } from "rollup";
|
|
11
11
|
|
|
12
12
|
//#region ../powerlines/src/types/plugin.d.ts
|
|
13
13
|
interface PluginHookObject<THookFunction extends AnyFunction, TFilter extends keyof HookFilter = never> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BuilderVariant } from "./build.cjs";
|
|
2
2
|
import { ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, OutputConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig as UserConfig$1, ViteUserConfig, WebpackUserConfig } from "./config.cjs";
|
|
3
|
-
import { ResolvedPreviewOptions } from "vite";
|
|
4
3
|
import { NonUndefined } from "@stryke/types/base";
|
|
4
|
+
import { ResolvedPreviewOptions } from "vite";
|
|
5
5
|
import { TypeDefinition } from "@stryke/types/configuration";
|
|
6
6
|
import { AssetGlob } from "@stryke/types/file";
|
|
7
7
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BuilderVariant, InferUnpluginVariant, UnpluginBuilderVariant } from "./build.cjs";
|
|
2
2
|
import { InferResolvedConfig } from "./resolved.cjs";
|
|
3
|
+
import { Context } from "./context.cjs";
|
|
3
4
|
import { API } from "./api.cjs";
|
|
4
5
|
import { PluginHook } from "./plugin.cjs";
|
|
5
|
-
import { Context } from "./context.cjs";
|
|
6
6
|
import { MaybePromise } from "@stryke/types/base";
|
|
7
7
|
import { HookFilter, UnpluginOptions } from "unplugin";
|
|
8
8
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BuilderVariant, InferUnpluginVariant, UnpluginBuilderVariant } from "./build.mjs";
|
|
2
|
+
import "./config.mjs";
|
|
2
3
|
import { InferResolvedConfig } from "./resolved.mjs";
|
|
4
|
+
import { Context } from "./context.mjs";
|
|
3
5
|
import { API } from "./api.mjs";
|
|
4
6
|
import { PluginHook } from "./plugin.mjs";
|
|
5
|
-
import { Context } from "./context.mjs";
|
|
6
|
-
import "./config.mjs";
|
|
7
7
|
import { HookFilter, UnpluginOptions } from "unplugin";
|
|
8
8
|
import { MaybePromise } from "@stryke/types/base";
|
|
9
9
|
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig } from "./plugin.mjs";
|
|
2
|
-
export { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig };
|
|
1
|
+
import { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig } from "./plugin.mjs";
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ViteBuildConfig } from "../powerlines/src/types/build.cjs";
|
|
2
|
+
import { ConfigEnv } from "../powerlines/src/types/config.cjs";
|
|
2
3
|
import { ViteResolvedConfig } from "../powerlines/src/types/resolved.cjs";
|
|
3
4
|
import { PluginContext } from "../powerlines/src/types/context.cjs";
|
|
4
|
-
import { ConfigEnv } from "../powerlines/src/types/config.cjs";
|
|
5
5
|
|
|
6
6
|
//#region src/types/plugin.d.ts
|
|
7
7
|
type VitePluginOptions = Partial<ViteBuildConfig>;
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ViteBuildConfig } from "../powerlines/src/types/build.mjs";
|
|
2
|
+
import { ConfigEnv } from "../powerlines/src/types/config.mjs";
|
|
2
3
|
import { ViteResolvedConfig } from "../powerlines/src/types/resolved.mjs";
|
|
3
4
|
import { PluginContext } from "../powerlines/src/types/context.mjs";
|
|
4
|
-
import { ConfigEnv } from "../powerlines/src/types/config.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/types/plugin.d.ts
|
|
7
7
|
type VitePluginOptions = Partial<ViteBuildConfig>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-vite",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.172",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
|
|
6
6
|
"repository": {
|
|
@@ -146,14 +146,14 @@
|
|
|
146
146
|
"keywords": ["vite", "powerlines", "storm-software", "powerlines-plugin"],
|
|
147
147
|
"dependencies": {
|
|
148
148
|
"defu": "^6.1.4",
|
|
149
|
-
"powerlines": "^0.37.
|
|
149
|
+
"powerlines": "^0.37.45",
|
|
150
150
|
"unplugin": "3.0.0-beta.3",
|
|
151
151
|
"vite": "8.0.0-beta.2"
|
|
152
152
|
},
|
|
153
153
|
"devDependencies": {
|
|
154
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
154
|
+
"@powerlines/plugin-plugin": "^0.12.123",
|
|
155
155
|
"@types/node": "^24.10.9"
|
|
156
156
|
},
|
|
157
157
|
"publishConfig": { "access": "public" },
|
|
158
|
-
"gitHead": "
|
|
158
|
+
"gitHead": "98320250bde7e4d99e3bfbb71b01b64392686868"
|
|
159
159
|
}
|
package/README.md
DELETED
|
@@ -1,304 +0,0 @@
|
|
|
1
|
-
<!-- START header -->
|
|
2
|
-
<!-- prettier-ignore-start -->
|
|
3
|
-
<!-- markdownlint-disable -->
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
<div align="center">
|
|
7
|
-
<picture>
|
|
8
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://public.storm-cdn.com/powerlines/banner-1280x640-dark.gif">
|
|
9
|
-
<source media="(prefers-color-scheme: light)" srcset="https://public.storm-cdn.com/powerlines/banner-1280x640-light.gif">
|
|
10
|
-
<img src="https://public.storm-cdn.com/powerlines/banner-1280x640-dark.gif" width="100%" alt="Powerlines" />
|
|
11
|
-
</picture>
|
|
12
|
-
</div>
|
|
13
|
-
<br />
|
|
14
|
-
|
|
15
|
-
<div align="center">
|
|
16
|
-
<b>
|
|
17
|
-
<a href="https://stormsoftware.com" target="_blank">Website</a> •
|
|
18
|
-
<a href="https://github.com/storm-software/powerlines" target="_blank">GitHub</a> •
|
|
19
|
-
<a href="https://discord.gg/MQ6YVzakM5">Discord</a> • <a href="https://stormstack.github.io/stormstack/" target="_blank">Docs</a> • <a href="https://stormsoftware.com/contact" target="_blank">Contact</a> •
|
|
20
|
-
<a href="https://github.com/storm-software/powerlines/issues/new?assignees=&labels=bug&template=bug-report.yml&title=Bug Report%3A+">Report a Bug</a>
|
|
21
|
-
</b>
|
|
22
|
-
</div>
|
|
23
|
-
|
|
24
|
-
<br />
|
|
25
|
-
This package is part of the 🔌 <b>Powerlines</b> monorepo. Powerlines packages include CLI utility applications, tools, and various libraries used to create modern, scalable web applications.
|
|
26
|
-
<br />
|
|
27
|
-
|
|
28
|
-
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
|
-
|
|
30
|
-
[](https://prettier.io/) [](http://commitizen.github.io/cz-cli/)  
|
|
31
|
-
|
|
32
|
-
<!-- prettier-ignore-start -->
|
|
33
|
-
<!-- markdownlint-disable -->
|
|
34
|
-
|
|
35
|
-
> [!IMPORTANT]
|
|
36
|
-
> This repository, and the apps, libraries, and tools contained within, is still in it's initial development phase. As a result, bugs and issues are expected with it's usage. When the main development phase completes, a proper release will be performed, the packages will be available through NPM (and other distributions), and this message will be removed. However, in the meantime, please feel free to report any issues you may come across.
|
|
37
|
-
|
|
38
|
-
<!-- markdownlint-restore -->
|
|
39
|
-
<!-- prettier-ignore-end -->
|
|
40
|
-
|
|
41
|
-
<div align="center">
|
|
42
|
-
<a href="https://github.com/storm-software/powerlines" target="_blank"><b>Be sure to ⭐ this repository on GitHub so you can keep up to date with it's progress!</b></a>
|
|
43
|
-
</div>
|
|
44
|
-
|
|
45
|
-
<br />
|
|
46
|
-
|
|
47
|
-
<!-- markdownlint-restore -->
|
|
48
|
-
<!-- prettier-ignore-end -->
|
|
49
|
-
|
|
50
|
-
<!-- END header -->
|
|
51
|
-
|
|
52
|
-
# Powerlines - Plugin Plugin
|
|
53
|
-
|
|
54
|
-
A package containing a Powerlines plugin to assist in developing other Powerlines plugins.
|
|
55
|
-
|
|
56
|
-
<!-- START doctoc -->
|
|
57
|
-
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
58
|
-
## Table of Contents
|
|
59
|
-
|
|
60
|
-
- [Powerlines - Plugin Plugin](#powerlines---plugin-plugin)
|
|
61
|
-
- [Table of Contents](#table-of-contents)
|
|
62
|
-
- [Installing](#installing)
|
|
63
|
-
- [Reduced Package Size](#reduced-package-size)
|
|
64
|
-
- [Development](#development)
|
|
65
|
-
- [Building](#building)
|
|
66
|
-
- [Running unit tests](#running-unit-tests)
|
|
67
|
-
- [Linting](#linting)
|
|
68
|
-
- [Storm Workspaces](#storm-workspaces)
|
|
69
|
-
- [Roadmap](#roadmap)
|
|
70
|
-
- [Support](#support)
|
|
71
|
-
- [License](#license)
|
|
72
|
-
- [Changelog](#changelog)
|
|
73
|
-
- [Contributing](#contributing)
|
|
74
|
-
- [Contributors](#contributors)
|
|
75
|
-
|
|
76
|
-
<!-- END doctoc -->
|
|
77
|
-
|
|
78
|
-
## Installing
|
|
79
|
-
|
|
80
|
-
Using [pnpm](http://pnpm.io):
|
|
81
|
-
|
|
82
|
-
```bash
|
|
83
|
-
pnpm add @powerlines/plugin-plugin
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
<details>
|
|
87
|
-
<summary>Using npm</summary>
|
|
88
|
-
|
|
89
|
-
```bash
|
|
90
|
-
npm install @powerlines/plugin-plugin
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
</details>
|
|
94
|
-
|
|
95
|
-
<details>
|
|
96
|
-
<summary>Using yarn</summary>
|
|
97
|
-
|
|
98
|
-
```bash
|
|
99
|
-
yarn add @powerlines/plugin-plugin
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
</details>
|
|
103
|
-
|
|
104
|
-
## Reduced Package Size
|
|
105
|
-
|
|
106
|
-
This project uses [tsup](https://tsup.egoist.dev/) to package the source code
|
|
107
|
-
due to its ability to remove unused code and ship smaller javascript files
|
|
108
|
-
thanks to code splitting. This helps to greatly reduce the size of the package
|
|
109
|
-
and to make it easier to use in other projects.
|
|
110
|
-
|
|
111
|
-
## Development
|
|
112
|
-
|
|
113
|
-
This project is built using [Nx](https://nx.dev). As a result, many of the usual
|
|
114
|
-
commands are available to assist in development.
|
|
115
|
-
|
|
116
|
-
### Building
|
|
117
|
-
|
|
118
|
-
Run `nx build plugin-plugin` to build the library.
|
|
119
|
-
|
|
120
|
-
### Running unit tests
|
|
121
|
-
|
|
122
|
-
Run `nx test plugin-plugin` to execute the unit tests via
|
|
123
|
-
[Jest](https://jestjs.io).
|
|
124
|
-
|
|
125
|
-
### Linting
|
|
126
|
-
|
|
127
|
-
Run `nx lint plugin-plugin` to run
|
|
128
|
-
[ESLint](https://eslint.org/) on the package.
|
|
129
|
-
|
|
130
|
-
<!-- START footer -->
|
|
131
|
-
<!-- prettier-ignore-start -->
|
|
132
|
-
<!-- markdownlint-disable -->
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
## Storm Workspaces
|
|
136
|
-
|
|
137
|
-
Storm workspaces are built using
|
|
138
|
-
<a href="https://nx.dev/" target="_blank">Nx</a>, a set of extensible dev tools
|
|
139
|
-
for monorepos, which helps you develop like Google, Facebook, and Microsoft.
|
|
140
|
-
Building on top of Nx, the Open System provides a set of tools and patterns that
|
|
141
|
-
help you scale your monorepo to many teams while keeping the codebase
|
|
142
|
-
maintainable.
|
|
143
|
-
|
|
144
|
-
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
145
|
-
<br />
|
|
146
|
-
|
|
147
|
-
## Roadmap
|
|
148
|
-
|
|
149
|
-
See the [open issues](https://github.com/storm-software/powerlines/issues) for
|
|
150
|
-
a list of proposed features (and known issues).
|
|
151
|
-
|
|
152
|
-
- [Top Feature Requests](https://github.com/storm-software/powerlines/issues?q=label%3Aenhancement+is%3Aopen+sort%3Areactions-%2B1-desc)
|
|
153
|
-
(Add your votes using the 👍 reaction)
|
|
154
|
-
- [Top Bugs](https://github.com/storm-software/powerlines/issues?q=is%3Aissue+is%3Aopen+label%3Abug+sort%3Areactions-%2B1-desc)
|
|
155
|
-
(Add your votes using the 👍 reaction)
|
|
156
|
-
- [Newest Bugs](https://github.com/storm-software/powerlines/issues?q=is%3Aopen+is%3Aissue+label%3Abug)
|
|
157
|
-
|
|
158
|
-
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
159
|
-
<br />
|
|
160
|
-
|
|
161
|
-
## Support
|
|
162
|
-
|
|
163
|
-
Reach out to the maintainer at one of the following places:
|
|
164
|
-
|
|
165
|
-
- [Contact](https://stormsoftware.com/contact)
|
|
166
|
-
- [GitHub discussions](https://github.com/storm-software/powerlines/discussions)
|
|
167
|
-
- <support@stormsoftware.com>
|
|
168
|
-
|
|
169
|
-
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
170
|
-
<br />
|
|
171
|
-
|
|
172
|
-
## License
|
|
173
|
-
|
|
174
|
-
This project is licensed under the **Apache License 2.0**. Feel free to edit and
|
|
175
|
-
distribute this template as you like.
|
|
176
|
-
|
|
177
|
-
See [LICENSE](LICENSE) for more information.
|
|
178
|
-
|
|
179
|
-
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
180
|
-
<br />
|
|
181
|
-
|
|
182
|
-
## Changelog
|
|
183
|
-
|
|
184
|
-
This project adheres to
|
|
185
|
-
[Semantic Versioning](https://semver.org/spec/v2.0.0.html). Every release, along
|
|
186
|
-
with the migration instructions, is documented in the [CHANGELOG](CHANGELOG.md)
|
|
187
|
-
file
|
|
188
|
-
|
|
189
|
-
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
190
|
-
<br />
|
|
191
|
-
|
|
192
|
-
## Contributing
|
|
193
|
-
|
|
194
|
-
First off, thanks for taking the time to contribute! Contributions are what
|
|
195
|
-
makes the open-source community such an amazing place to learn, inspire, and
|
|
196
|
-
create. Any contributions you make will benefit everybody else and are **greatly
|
|
197
|
-
appreciated**.
|
|
198
|
-
|
|
199
|
-
Please try to create bug reports that are:
|
|
200
|
-
|
|
201
|
-
- _Reproducible._ Include steps to reproduce the problem.
|
|
202
|
-
- _Specific._ Include as much detail as possible: which version, what
|
|
203
|
-
environment, etc.
|
|
204
|
-
- _Unique._ Do not duplicate existing opened issues.
|
|
205
|
-
- _Scoped to a Single Bug._ One bug per report.
|
|
206
|
-
|
|
207
|
-
Please adhere to this project's [code of conduct](.github/CODE_OF_CONDUCT.md).
|
|
208
|
-
|
|
209
|
-
You can use
|
|
210
|
-
[markdownlint-cli](https://github.com/storm-software/powerlines/markdownlint-cli)
|
|
211
|
-
to check for common markdown style inconsistency.
|
|
212
|
-
|
|
213
|
-
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
214
|
-
<br />
|
|
215
|
-
|
|
216
|
-
## Contributors
|
|
217
|
-
|
|
218
|
-
Thanks goes to these wonderful people
|
|
219
|
-
([emoji key](https://allcontributors.org/docs/en/emoji-key)):
|
|
220
|
-
|
|
221
|
-
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
|
|
222
|
-
|
|
223
|
-
<table>
|
|
224
|
-
<tbody>
|
|
225
|
-
<tr>
|
|
226
|
-
<td align="center" valign="top" width="14.28%"><a href="http://www.sullypat.com/"><img src="https://avatars.githubusercontent.com/u/99053093?v=4?s=100" width="100px;" alt="Patrick Sullivan"/><br /><sub><b>Patrick Sullivan</b></sub></a><br /><a href="#design-sullivanpj" title="Design">🎨</a> <a href="https://github.com/storm-software/powerlines/commits?author=sullivanpj" title="Code">💻</a> <a href="#tool-sullivanpj" title="Tools">🔧</a> <a href="https://github.com/storm-software/powerlines/commits?author=sullivanpj" title="Documentation">📖</a> <a href="https://github.com/storm-software/powerlines/commits?author=sullivanpj" title="Tests">⚠️</a></td>
|
|
227
|
-
<td align="center" valign="top" width="14.28%"><a href="https://tylerbenning.com/"><img src="https://avatars.githubusercontent.com/u/7265547?v=4?s=100" width="100px;" alt="Tyler Benning"/><br /><sub><b>Tyler Benning</b></sub></a><br /><a href="#design-tbenning" title="Design">🎨</a></td>
|
|
228
|
-
<td align="center" valign="top" width="14.28%"><a href="http://stormsoftware.com"><img src="https://avatars.githubusercontent.com/u/149802440?v=4?s=100" width="100px;" alt="Stormie"/><br /><sub><b>Stormie</b></sub></a><br /><a href="#maintenance-stormie-bot" title="Maintenance">🚧</a></td>
|
|
229
|
-
</tr>
|
|
230
|
-
</tbody>
|
|
231
|
-
<tfoot>
|
|
232
|
-
<tr>
|
|
233
|
-
<td align="center" size="13px" colspan="7">
|
|
234
|
-
<img src="https://raw.githubusercontent.com/all-contributors/all-contributors-cli/1b8533af435da9854653492b1327a23a4dbd0a10/assets/logo-small.svg" alt="All Contributors">
|
|
235
|
-
<a href="https://all-contributors.js.org/docs/en/bot/usage">Add your contributions</a>
|
|
236
|
-
</img>
|
|
237
|
-
</td>
|
|
238
|
-
</tr>
|
|
239
|
-
</tfoot>
|
|
240
|
-
</table>
|
|
241
|
-
|
|
242
|
-
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
|
243
|
-
|
|
244
|
-
This project follows the
|
|
245
|
-
[all-contributors](https://github.com/all-contributors/all-contributors)
|
|
246
|
-
specification. Contributions of any kind welcome!
|
|
247
|
-
|
|
248
|
-
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
249
|
-
<br />
|
|
250
|
-
|
|
251
|
-
<hr />
|
|
252
|
-
<br />
|
|
253
|
-
|
|
254
|
-
<div align="center">
|
|
255
|
-
<picture>
|
|
256
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x320-dark.webp">
|
|
257
|
-
<source media="(prefers-color-scheme: light)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x320-light.webp">
|
|
258
|
-
<img src="https://public.storm-cdn.com/storm-software/banner-1280x320-dark.webp" width="100%" alt="Storm Software" />
|
|
259
|
-
</picture>
|
|
260
|
-
</div>
|
|
261
|
-
<br />
|
|
262
|
-
|
|
263
|
-
<div align="center">
|
|
264
|
-
<a href="https://stormsoftware.com" target="_blank">Website</a> • <a href="https://stormsoftware.com/contact" target="_blank">Contact</a> • <a href="https://linkedin.com/in/patrick-sullivan-865526b0" target="_blank">LinkedIn</a> • <a href="https://medium.com/@pat.joseph.sullivan" target="_blank">Medium</a> • <a href="https://github.com/storm-software" target="_blank">GitHub</a> • <a href="https://keybase.io/sullivanp" target="_blank">OpenPGP Key</a>
|
|
265
|
-
</div>
|
|
266
|
-
|
|
267
|
-
<div align="center">
|
|
268
|
-
<b>Fingerprint:</b> 1BD2 7192 7770 2549 F4C9 F238 E6AD C420 DA5C 4C2D
|
|
269
|
-
</div>
|
|
270
|
-
<br />
|
|
271
|
-
|
|
272
|
-
Storm Software is an open source software development organization and creator
|
|
273
|
-
of Acidic, StormStack and StormCloud.
|
|
274
|
-
|
|
275
|
-
Our mission is to make software development more accessible. Our ideal future is
|
|
276
|
-
one where anyone can create software without years of prior development
|
|
277
|
-
experience serving as a barrier to entry. We hope to achieve this via LLMs,
|
|
278
|
-
Generative AI, and intuitive, high-level data modeling/programming languages.
|
|
279
|
-
|
|
280
|
-
Join us on [Discord](https://discord.gg/MQ6YVzakM5) to chat with the team,
|
|
281
|
-
receive release notifications, ask questions, and get involved.
|
|
282
|
-
|
|
283
|
-
If this sounds interesting, and you would like to help us in creating the next
|
|
284
|
-
generation of development tools, please reach out on our
|
|
285
|
-
[website](https://stormsoftware.com/contact) or join our
|
|
286
|
-
[Slack channel](https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA)!
|
|
287
|
-
|
|
288
|
-
<br />
|
|
289
|
-
|
|
290
|
-
<div align="center"><a href="https://stormsoftware.com" target="_blank"><img src="https://public.storm-cdn.com/icon-fill.png" alt="Storm Software" width="200px"/></a></div>
|
|
291
|
-
<br />
|
|
292
|
-
<div align="center"><a href="https://stormsoftware.com" target="_blank"><img src="https://public.storm-cdn.com/visit-us-text.svg" alt="Visit us at stormsoftware.com" height="90px"/></a></div>
|
|
293
|
-
|
|
294
|
-
<br />
|
|
295
|
-
|
|
296
|
-
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
|
|
297
|
-
<br />
|
|
298
|
-
<br />
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
<!-- markdownlint-restore -->
|
|
302
|
-
<!-- prettier-ignore-end -->
|
|
303
|
-
|
|
304
|
-
<!-- END footer -->
|
package/dist/helpers/index.d.cts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { ResolvedConfig } from "./resolved.cjs";
|
|
2
|
-
import { CallHookOptions } from "../internal/helpers/hooks.cjs";
|
|
3
|
-
import { API } from "./api.cjs";
|
|
4
|
-
import { InferHookParameters, InferHookReturnType } from "./hooks.cjs";
|
|
5
|
-
import { EnvironmentContext, PluginContext } from "./context.cjs";
|
|
6
|
-
import { PluginConfig } from "./config.cjs";
|
|
7
|
-
|
|
8
|
-
//#region ../powerlines/src/types/internal.d.ts
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Internal fields and methods for internal contexts
|
|
12
|
-
*
|
|
13
|
-
* @internal
|
|
14
|
-
*/
|
|
15
|
-
interface UNSAFE_ContextInternal<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
16
|
-
/**
|
|
17
|
-
* The API instance for interacting with Powerlines
|
|
18
|
-
*
|
|
19
|
-
* @internal
|
|
20
|
-
*/
|
|
21
|
-
api: API<TResolvedConfig>;
|
|
22
|
-
/**
|
|
23
|
-
* Add a Powerlines plugin used in the build process
|
|
24
|
-
*
|
|
25
|
-
* @internal
|
|
26
|
-
*
|
|
27
|
-
* @param config - The import path of the plugin to add
|
|
28
|
-
*/
|
|
29
|
-
addPlugin: (config: PluginConfig<PluginContext<TResolvedConfig>>) => Promise<void>;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* An internal representation of the environment context, used for managing hooks and environment data.
|
|
33
|
-
*
|
|
34
|
-
* @internal
|
|
35
|
-
*/
|
|
36
|
-
interface UNSAFE_EnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends EnvironmentContext<TResolvedConfig> {
|
|
37
|
-
$$internal: UNSAFE_ContextInternal<TResolvedConfig>;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Internal fields and methods for the internal plugin context
|
|
41
|
-
*
|
|
42
|
-
* @internal
|
|
43
|
-
*/
|
|
44
|
-
interface UNSAFE_PluginContextInternal<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends UNSAFE_ContextInternal<TResolvedConfig> {
|
|
45
|
-
api: API<TResolvedConfig>;
|
|
46
|
-
environment: UNSAFE_EnvironmentContext<TResolvedConfig>;
|
|
47
|
-
callHook: <TKey extends string>(hook: TKey, options: CallHookOptions & {
|
|
48
|
-
environment?: string | EnvironmentContext<TResolvedConfig>;
|
|
49
|
-
}, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey> | undefined>;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* An internal representation of the plugin context, used for managing hooks and environment data.
|
|
53
|
-
*
|
|
54
|
-
* @internal
|
|
55
|
-
*/
|
|
56
|
-
interface UNSAFE_PluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PluginContext<TResolvedConfig> {
|
|
57
|
-
$$internal: UNSAFE_PluginContextInternal<TResolvedConfig>;
|
|
58
|
-
}
|
|
59
|
-
//#endregion
|
|
60
|
-
export { UNSAFE_PluginContext };
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { ResolvedConfig } from "./resolved.mjs";
|
|
2
|
-
import { CallHookOptions } from "../internal/helpers/hooks.mjs";
|
|
3
|
-
import { API } from "./api.mjs";
|
|
4
|
-
import { InferHookParameters, InferHookReturnType } from "./hooks.mjs";
|
|
5
|
-
import { EnvironmentContext, PluginContext } from "./context.mjs";
|
|
6
|
-
import { PluginConfig } from "./config.mjs";
|
|
7
|
-
|
|
8
|
-
//#region ../powerlines/src/types/internal.d.ts
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Internal fields and methods for internal contexts
|
|
12
|
-
*
|
|
13
|
-
* @internal
|
|
14
|
-
*/
|
|
15
|
-
interface UNSAFE_ContextInternal<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
16
|
-
/**
|
|
17
|
-
* The API instance for interacting with Powerlines
|
|
18
|
-
*
|
|
19
|
-
* @internal
|
|
20
|
-
*/
|
|
21
|
-
api: API<TResolvedConfig>;
|
|
22
|
-
/**
|
|
23
|
-
* Add a Powerlines plugin used in the build process
|
|
24
|
-
*
|
|
25
|
-
* @internal
|
|
26
|
-
*
|
|
27
|
-
* @param config - The import path of the plugin to add
|
|
28
|
-
*/
|
|
29
|
-
addPlugin: (config: PluginConfig<PluginContext<TResolvedConfig>>) => Promise<void>;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* An internal representation of the environment context, used for managing hooks and environment data.
|
|
33
|
-
*
|
|
34
|
-
* @internal
|
|
35
|
-
*/
|
|
36
|
-
interface UNSAFE_EnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends EnvironmentContext<TResolvedConfig> {
|
|
37
|
-
$$internal: UNSAFE_ContextInternal<TResolvedConfig>;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Internal fields and methods for the internal plugin context
|
|
41
|
-
*
|
|
42
|
-
* @internal
|
|
43
|
-
*/
|
|
44
|
-
interface UNSAFE_PluginContextInternal<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends UNSAFE_ContextInternal<TResolvedConfig> {
|
|
45
|
-
api: API<TResolvedConfig>;
|
|
46
|
-
environment: UNSAFE_EnvironmentContext<TResolvedConfig>;
|
|
47
|
-
callHook: <TKey extends string>(hook: TKey, options: CallHookOptions & {
|
|
48
|
-
environment?: string | EnvironmentContext<TResolvedConfig>;
|
|
49
|
-
}, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey> | undefined>;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* An internal representation of the plugin context, used for managing hooks and environment data.
|
|
53
|
-
*
|
|
54
|
-
* @internal
|
|
55
|
-
*/
|
|
56
|
-
interface UNSAFE_PluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PluginContext<TResolvedConfig> {
|
|
57
|
-
$$internal: UNSAFE_PluginContextInternal<TResolvedConfig>;
|
|
58
|
-
}
|
|
59
|
-
//#endregion
|
|
60
|
-
export { UNSAFE_PluginContext };
|
package/dist/types/index.cjs
DELETED
|
File without changes
|
package/dist/types/index.d.cts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig } from "./plugin.cjs";
|
|
2
|
-
export { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig };
|
package/dist/types/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/types/internal.cjs
DELETED
|
File without changes
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { VitePluginResolvedConfig } from "./plugin.cjs";
|
|
2
|
-
import { UNSAFE_PluginContext } from "../powerlines/src/types/internal.cjs";
|
|
3
|
-
|
|
4
|
-
//#region src/types/internal.d.ts
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Internal fields and methods for internal Vite plugin contexts
|
|
8
|
-
*
|
|
9
|
-
* @internal
|
|
10
|
-
*/
|
|
11
|
-
type UNSAFE_VitePluginContext<TResolvedConfig extends VitePluginResolvedConfig = VitePluginResolvedConfig> = UNSAFE_PluginContext<TResolvedConfig>;
|
|
12
|
-
declare type __ΩUNSAFE_VitePluginContext = any[];
|
|
13
|
-
//#endregion
|
|
14
|
-
export { UNSAFE_VitePluginContext, __ΩUNSAFE_VitePluginContext };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { VitePluginResolvedConfig } from "./plugin.mjs";
|
|
2
|
-
import { UNSAFE_PluginContext } from "../powerlines/src/types/internal.mjs";
|
|
3
|
-
|
|
4
|
-
//#region src/types/internal.d.ts
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Internal fields and methods for internal Vite plugin contexts
|
|
8
|
-
*
|
|
9
|
-
* @internal
|
|
10
|
-
*/
|
|
11
|
-
type UNSAFE_VitePluginContext<TResolvedConfig extends VitePluginResolvedConfig = VitePluginResolvedConfig> = UNSAFE_PluginContext<TResolvedConfig>;
|
|
12
|
-
declare type __ΩUNSAFE_VitePluginContext = any[];
|
|
13
|
-
//#endregion
|
|
14
|
-
export { UNSAFE_VitePluginContext, __ΩUNSAFE_VitePluginContext };
|
package/dist/types/internal.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/types/plugin.cjs
DELETED
|
File without changes
|
package/dist/types/plugin.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|