@bleedingdev/modern-js-app-tools 3.2.0-ultramodern.0 → 3.2.0-ultramodern.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +11 -11
- package/dist/types/baseline.d.ts +0 -46
- package/dist/types/builder/builder-rspack/index.d.ts +0 -2
- package/dist/types/builder/generator/adapterCopy.d.ts +0 -3
- package/dist/types/builder/generator/createBuilderProviderConfig.d.ts +0 -3
- package/dist/types/builder/generator/createCopyPattern.d.ts +0 -16
- package/dist/types/builder/generator/getBuilderEnvironments.d.ts +0 -6
- package/dist/types/builder/generator/index.d.ts +0 -8
- package/dist/types/builder/index.d.ts +0 -3
- package/dist/types/builder/shared/builderPlugins/adapterBasic.d.ts +0 -3
- package/dist/types/builder/shared/builderPlugins/adapterHtml.d.ts +0 -3
- package/dist/types/builder/shared/builderPlugins/adapterPrecompress.d.ts +0 -3
- package/dist/types/builder/shared/builderPlugins/adapterSSR.d.ts +0 -3
- package/dist/types/builder/shared/builderPlugins/builderHooks.d.ts +0 -3
- package/dist/types/builder/shared/builderPlugins/index.d.ts +0 -5
- package/dist/types/builder/shared/bundlerPlugins/HtmlAsyncChunkPlugin.d.ts +0 -7
- package/dist/types/builder/shared/bundlerPlugins/HtmlBottomTemplate.d.ts +0 -9
- package/dist/types/builder/shared/bundlerPlugins/RouterPlugin.d.ts +0 -32
- package/dist/types/builder/shared/bundlerPlugins/index.d.ts +0 -3
- package/dist/types/builder/shared/createCopyInfo.d.ts +0 -8
- package/dist/types/builder/shared/index.d.ts +0 -3
- package/dist/types/builder/shared/loaders/serverModuleLoader.d.ts +0 -3
- package/dist/types/builder/shared/types.d.ts +0 -6
- package/dist/types/commands/build.d.ts +0 -4
- package/dist/types/commands/deploy.d.ts +0 -3
- package/dist/types/commands/dev.d.ts +0 -9
- package/dist/types/commands/index.d.ts +0 -10
- package/dist/types/commands/info.d.ts +0 -18
- package/dist/types/commands/inspect.d.ts +0 -4
- package/dist/types/commands/runtime.d.ts +0 -11
- package/dist/types/commands/serve.d.ts +0 -8
- package/dist/types/compat/hooks.d.ts +0 -7
- package/dist/types/compat/index.d.ts +0 -2
- package/dist/types/compat/utils.d.ts +0 -13
- package/dist/types/config/default.d.ts +0 -3
- package/dist/types/config/index.d.ts +0 -2
- package/dist/types/config/initialize/index.d.ts +0 -3
- package/dist/types/config/initialize/inits.d.ts +0 -4
- package/dist/types/constants.d.ts +0 -2
- package/dist/types/defineConfig.d.ts +0 -11
- package/dist/types/esm/register-esm.d.mts +0 -11
- package/dist/types/esm/ts-node-loader.d.mts +0 -6
- package/dist/types/esm/ts-paths-loader.d.mts +0 -6
- package/dist/types/exports/server.d.ts +0 -1
- package/dist/types/index.d.ts +0 -17
- package/dist/types/locale/en.d.ts +0 -44
- package/dist/types/locale/index.d.ts +0 -90
- package/dist/types/locale/zh.d.ts +0 -44
- package/dist/types/plugins/analyze/constants.d.ts +0 -3
- package/dist/types/plugins/analyze/getBundleEntry.d.ts +0 -4
- package/dist/types/plugins/analyze/getFileSystemEntry.d.ts +0 -7
- package/dist/types/plugins/analyze/getHtmlTemplate.d.ts +0 -27
- package/dist/types/plugins/analyze/getServerRoutes.d.ts +0 -8
- package/dist/types/plugins/analyze/index.d.ts +0 -3
- package/dist/types/plugins/analyze/isDefaultExportFunction.d.ts +0 -1
- package/dist/types/plugins/analyze/templates.d.ts +0 -5
- package/dist/types/plugins/analyze/utils.d.ts +0 -10
- package/dist/types/plugins/deploy/index.d.ts +0 -3
- package/dist/types/plugins/deploy/platforms/gh-pages.d.ts +0 -2
- package/dist/types/plugins/deploy/platforms/netlify.d.ts +0 -2
- package/dist/types/plugins/deploy/platforms/node.d.ts +0 -2
- package/dist/types/plugins/deploy/platforms/platform.d.ts +0 -17
- package/dist/types/plugins/deploy/platforms/templates/netlify-entry.d.cts +0 -2
- package/dist/types/plugins/deploy/platforms/templates/netlify-entry.d.mts +0 -2
- package/dist/types/plugins/deploy/platforms/templates/node-entry.d.cts +0 -1
- package/dist/types/plugins/deploy/platforms/templates/node-entry.d.mts +0 -1
- package/dist/types/plugins/deploy/platforms/templates/vercel-entry.d.cts +0 -2
- package/dist/types/plugins/deploy/platforms/templates/vercel-entry.d.mts +0 -2
- package/dist/types/plugins/deploy/platforms/vercel.d.ts +0 -2
- package/dist/types/plugins/deploy/types.d.ts +0 -3
- package/dist/types/plugins/deploy/utils/generator.d.ts +0 -24
- package/dist/types/plugins/deploy/utils/index.d.ts +0 -16
- package/dist/types/plugins/initialize/index.d.ts +0 -3
- package/dist/types/plugins/serverBuild.d.ts +0 -3
- package/dist/types/plugins/serverRuntime.d.ts +0 -3
- package/dist/types/presetUltramodern.d.ts +0 -6
- package/dist/types/rsbuild.d.ts +0 -12
- package/dist/types/run/index.d.ts +0 -20
- package/dist/types/types/config/deploy.d.ts +0 -38
- package/dist/types/types/config/dev.d.ts +0 -55
- package/dist/types/types/config/experiments.d.ts +0 -3
- package/dist/types/types/config/html.d.ts +0 -3
- package/dist/types/types/config/index.d.ts +0 -48
- package/dist/types/types/config/output.d.ts +0 -61
- package/dist/types/types/config/performance.d.ts +0 -3
- package/dist/types/types/config/resolve.d.ts +0 -2
- package/dist/types/types/config/security.d.ts +0 -2
- package/dist/types/types/config/source.d.ts +0 -61
- package/dist/types/types/config/testing.d.ts +0 -8
- package/dist/types/types/config/tools.d.ts +0 -21
- package/dist/types/types/index.d.ts +0 -10
- package/dist/types/types/plugin.d.ts +0 -114
- package/dist/types/types/utils.d.ts +0 -1
- package/dist/types/ultramodern/designSystem.d.ts +0 -54
- package/dist/types/utils/config.d.ts +0 -2
- package/dist/types/utils/createServer.d.ts +0 -5
- package/dist/types/utils/env.d.ts +0 -2
- package/dist/types/utils/generateWatchFiles.d.ts +0 -2
- package/dist/types/utils/getConfigFile.d.ts +0 -1
- package/dist/types/utils/getSelectedEntries.d.ts +0 -5
- package/dist/types/utils/initAppContext.d.ts +0 -31
- package/dist/types/utils/loadPlugins.d.ts +0 -13
- package/dist/types/utils/printInstructions.d.ts +0 -3
- package/dist/types/utils/register.d.ts +0 -19
- package/dist/types/utils/restart.d.ts +0 -2
- package/dist/types/utils/routes.d.ts +0 -4
- package/dist/types/utils/types.d.ts +0 -49
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"modern",
|
|
18
18
|
"modern.js"
|
|
19
19
|
],
|
|
20
|
-
"version": "3.2.0-ultramodern.
|
|
20
|
+
"version": "3.2.0-ultramodern.1",
|
|
21
21
|
"types": "./dist/types/index.d.ts",
|
|
22
22
|
"main": "./dist/cjs/index.js",
|
|
23
23
|
"exports": {
|
|
@@ -98,16 +98,16 @@
|
|
|
98
98
|
"ndepe": "^0.1.13",
|
|
99
99
|
"pkg-types": "^2.3.1",
|
|
100
100
|
"std-env": "4.1.0",
|
|
101
|
-
"@modern-js/builder": "npm:@bleedingdev/modern-js-builder@3.2.0-ultramodern.
|
|
102
|
-
"@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.2.0-ultramodern.
|
|
103
|
-
"@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.2.0-ultramodern.
|
|
104
|
-
"@modern-js/plugin
|
|
105
|
-
"@modern-js/prod-server": "npm:@bleedingdev/modern-js-prod-server@3.2.0-ultramodern.
|
|
106
|
-
"@modern-js/server": "npm:@bleedingdev/modern-js-server@3.2.0-ultramodern.
|
|
107
|
-
"@modern-js/server-
|
|
108
|
-
"@modern-js/
|
|
109
|
-
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.2.0-ultramodern.
|
|
110
|
-
"@modern-js/
|
|
101
|
+
"@modern-js/builder": "npm:@bleedingdev/modern-js-builder@3.2.0-ultramodern.1",
|
|
102
|
+
"@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.2.0-ultramodern.1",
|
|
103
|
+
"@modern-js/plugin-data-loader": "npm:@bleedingdev/modern-js-plugin-data-loader@3.2.0-ultramodern.1",
|
|
104
|
+
"@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.2.0-ultramodern.1",
|
|
105
|
+
"@modern-js/prod-server": "npm:@bleedingdev/modern-js-prod-server@3.2.0-ultramodern.1",
|
|
106
|
+
"@modern-js/server": "npm:@bleedingdev/modern-js-server@3.2.0-ultramodern.1",
|
|
107
|
+
"@modern-js/server-utils": "npm:@bleedingdev/modern-js-server-utils@3.2.0-ultramodern.1",
|
|
108
|
+
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.2.0-ultramodern.1",
|
|
109
|
+
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.2.0-ultramodern.1",
|
|
110
|
+
"@modern-js/server-core": "npm:@bleedingdev/modern-js-server-core@3.2.0-ultramodern.1"
|
|
111
111
|
},
|
|
112
112
|
"devDependencies": {
|
|
113
113
|
"@rslib/core": "0.21.5",
|
package/dist/types/baseline.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { AppUserConfig } from './types';
|
|
2
|
-
export interface AppBaselineOptions {
|
|
3
|
-
/**
|
|
4
|
-
* Stable producer identity used by BFF cross-project clients.
|
|
5
|
-
* @default "app"
|
|
6
|
-
*/
|
|
7
|
-
appId?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Enable BFF requestId contract by default.
|
|
10
|
-
* @default true
|
|
11
|
-
*/
|
|
12
|
-
enableBffRequestId?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Enable telemetry contract by default.
|
|
15
|
-
* Exporters are still configured separately by applications.
|
|
16
|
-
* @default true
|
|
17
|
-
*/
|
|
18
|
-
enableTelemetry?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Enable telemetry exporters by default.
|
|
21
|
-
* @default true
|
|
22
|
-
*/
|
|
23
|
-
enableTelemetryExporters?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* OTLP exporter endpoint.
|
|
26
|
-
* @default process.env.MODERN_TELEMETRY_OTLP_ENDPOINT || 'http://127.0.0.1:4318/v1/logs'
|
|
27
|
-
*/
|
|
28
|
-
otlpEndpoint?: string;
|
|
29
|
-
/**
|
|
30
|
-
* VictoriaMetrics exporter endpoint.
|
|
31
|
-
* @default process.env.MODERN_TELEMETRY_VICTORIA_ENDPOINT || 'http://127.0.0.1:8428/api/v1/import/prometheus'
|
|
32
|
-
*/
|
|
33
|
-
victoriaMetricsEndpoint?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Enable fail-loud startup probing for telemetry exporters.
|
|
36
|
-
* @default true
|
|
37
|
-
*/
|
|
38
|
-
telemetryFailLoudStartup?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Enable app-level Module Federation SSR handshake by default.
|
|
41
|
-
* @default true
|
|
42
|
-
*/
|
|
43
|
-
enableModuleFederationSSR?: boolean;
|
|
44
|
-
}
|
|
45
|
-
export declare const createAppBaselineConfig: (options?: AppBaselineOptions) => AppUserConfig;
|
|
46
|
-
export declare const withAppBaseline: (config: AppUserConfig, options?: AppBaselineOptions) => AppUserConfig;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Rspack, RspackChain } from '@rsbuild/core';
|
|
2
|
-
import type { AppNormalizedConfig } from '../../types';
|
|
3
|
-
import type { AppToolsContext } from '../../types/plugin';
|
|
4
|
-
export declare function createPublicPattern(appContext: AppToolsContext, config: AppNormalizedConfig, chain: RspackChain): {
|
|
5
|
-
info: (file: {
|
|
6
|
-
sourceFilename: string;
|
|
7
|
-
}) => {
|
|
8
|
-
minimized: boolean;
|
|
9
|
-
};
|
|
10
|
-
from: string;
|
|
11
|
-
to: string;
|
|
12
|
-
context: string;
|
|
13
|
-
noErrorOnMissing: boolean;
|
|
14
|
-
transform: (content: Buffer, absoluteFrom: string) => string | Buffer<ArrayBufferLike>;
|
|
15
|
-
};
|
|
16
|
-
export declare function createUploadPattern(appContext: AppToolsContext, config: AppNormalizedConfig): Rspack.CopyRspackPluginOptions['patterns']['0'];
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { AppNormalizedConfig } from '../../types';
|
|
2
|
-
import type { AppToolsContext } from '../../types/plugin';
|
|
3
|
-
export declare function getBuilderEnvironments(normalizedConfig: AppNormalizedConfig, appContext: AppToolsContext, tempBuilderConfig: Omit<AppNormalizedConfig, 'plugins'>): {
|
|
4
|
-
environments: Record<string, import("@rsbuild/core").EnvironmentConfig>;
|
|
5
|
-
builderConfig: Omit<AppNormalizedConfig, "plugins">;
|
|
6
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type BundlerType } from '@modern-js/builder';
|
|
2
|
-
import type { BuilderOptions } from '../shared';
|
|
3
|
-
/**
|
|
4
|
-
* @param options BuilderOptions
|
|
5
|
-
* @param bundlerType BundlerType
|
|
6
|
-
* @returns BuilderInstance
|
|
7
|
-
*/
|
|
8
|
-
export declare function generateBuilder(options: BuilderOptions, bundlerType: BundlerType): Promise<import("@rsbuild/core").RsbuildInstance>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare function createBuilderGenerator(): Promise<typeof import("./builder-rspack/index.js").createRspackBuilderForModern>;
|
|
2
|
-
export { parseRspackConfig } from '@modern-js/builder';
|
|
3
|
-
export { builderPluginAdapterBasic, builderPluginAdapterHooks, } from './shared/builderPlugins';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Rspack } from '@modern-js/builder';
|
|
2
|
-
export declare class BottomTemplatePlugin {
|
|
3
|
-
htmlPlugin: typeof Rspack.HtmlRspackPlugin;
|
|
4
|
-
bottomTemplateReg: RegExp;
|
|
5
|
-
bodyRegExp: RegExp;
|
|
6
|
-
name: string;
|
|
7
|
-
constructor(htmlPlugin: typeof Rspack.HtmlRspackPlugin);
|
|
8
|
-
apply(compiler: Rspack.Compiler): void;
|
|
9
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { Rspack, ScriptLoading } from '@rsbuild/core';
|
|
2
|
-
export interface RouteAssets {
|
|
3
|
-
[routeId: string]: {
|
|
4
|
-
chunkIds?: (string | number)[];
|
|
5
|
-
assets?: string[];
|
|
6
|
-
referenceCssAssets?: string[];
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
type Compiler = Rspack.Compiler;
|
|
10
|
-
type Options = {
|
|
11
|
-
HtmlBundlerPlugin: typeof Rspack.HtmlRspackPlugin;
|
|
12
|
-
staticJsDir?: string;
|
|
13
|
-
enableInlineRouteManifests: boolean;
|
|
14
|
-
disableFilenameHash?: boolean;
|
|
15
|
-
scriptLoading?: ScriptLoading;
|
|
16
|
-
nonce?: string;
|
|
17
|
-
};
|
|
18
|
-
export declare class RouterPlugin {
|
|
19
|
-
readonly name: string;
|
|
20
|
-
private HtmlBundlerPlugin;
|
|
21
|
-
private enableInlineRouteManifests;
|
|
22
|
-
private staticJsDir;
|
|
23
|
-
private disableFilenameHash?;
|
|
24
|
-
private scriptLoading?;
|
|
25
|
-
private nonce?;
|
|
26
|
-
constructor({ staticJsDir, HtmlBundlerPlugin, enableInlineRouteManifests, disableFilenameHash, scriptLoading, nonce, }: Options);
|
|
27
|
-
private isTargetNodeOrWebWorker;
|
|
28
|
-
private getEntryChunks;
|
|
29
|
-
private getEntryChunkFiles;
|
|
30
|
-
apply(compiler: Compiler): void;
|
|
31
|
-
}
|
|
32
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { AppNormalizedConfig } from '../../types';
|
|
2
|
-
import type { AppToolsContext } from '../../types/plugin';
|
|
3
|
-
export declare function createCopyInfo(appContext: AppToolsContext, config: AppNormalizedConfig): {
|
|
4
|
-
configDir: string;
|
|
5
|
-
uploadDir: string;
|
|
6
|
-
publicDir: string;
|
|
7
|
-
customPublicDirs: string[];
|
|
8
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { CLIPluginAPI } from '@modern-js/plugin';
|
|
2
|
-
import { type ApplyPlugins } from '@modern-js/server';
|
|
3
|
-
import type { AppTools } from '../types';
|
|
4
|
-
import type { DevOptions } from '../utils/types';
|
|
5
|
-
interface ExtraServerOptions {
|
|
6
|
-
applyPlugins?: ApplyPlugins;
|
|
7
|
-
}
|
|
8
|
-
export declare const dev: (api: CLIPluginAPI<AppTools>, options: DevOptions, devServerOptions?: ExtraServerOptions) => Promise<void>;
|
|
9
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { CLIPluginAPI } from '@modern-js/plugin';
|
|
2
|
-
import type { Command } from '@modern-js/utils';
|
|
3
|
-
import type { AppTools } from '../types';
|
|
4
|
-
export declare const devCommand: (program: Command, api: CLIPluginAPI<AppTools>) => Promise<void>;
|
|
5
|
-
export declare const buildCommand: (program: Command, api: CLIPluginAPI<AppTools>) => Promise<void>;
|
|
6
|
-
export declare const serverCommand: (program: Command, api: CLIPluginAPI<AppTools>) => void;
|
|
7
|
-
export declare const deployCommand: (program: Command, api: CLIPluginAPI<AppTools>) => void;
|
|
8
|
-
export declare const inspectCommand: (program: Command, api: CLIPluginAPI<AppTools>) => void;
|
|
9
|
-
export declare const infoCommand: (program: Command, api: CLIPluginAPI<AppTools>) => void;
|
|
10
|
-
export declare const runtimeOperationsCommand: (program: Command, api: CLIPluginAPI<AppTools>) => Promise<void>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { CLIPluginAPI } from '@modern-js/plugin';
|
|
2
|
-
import type { AppTools } from '../types';
|
|
3
|
-
import type { InfoOptions } from '../utils/types';
|
|
4
|
-
export interface EntryInfo {
|
|
5
|
-
entryName: string;
|
|
6
|
-
isMainEntry: boolean;
|
|
7
|
-
entry: string;
|
|
8
|
-
isAutoMount: boolean;
|
|
9
|
-
isCustomSourceEntry: boolean;
|
|
10
|
-
customEntry: boolean;
|
|
11
|
-
ssr: boolean | 'stream' | 'string';
|
|
12
|
-
ssg: boolean;
|
|
13
|
-
}
|
|
14
|
-
export interface ProjectInfo {
|
|
15
|
-
entries: EntryInfo[];
|
|
16
|
-
apiOnly: boolean;
|
|
17
|
-
}
|
|
18
|
-
export declare const info: (api: CLIPluginAPI<AppTools>, options?: InfoOptions) => Promise<void>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { CLIPluginAPI } from '@modern-js/plugin';
|
|
2
|
-
import type { AppTools } from '../types';
|
|
3
|
-
import type { InspectOptions } from '../utils/types';
|
|
4
|
-
export declare const inspect: (api: CLIPluginAPI<AppTools>, options: InspectOptions) => Promise<import("@rsbuild/core").InspectConfigResult>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { CLIPluginAPI } from '@modern-js/plugin';
|
|
2
|
-
import type { Command } from '@modern-js/utils';
|
|
3
|
-
import type { AppTools } from '../types';
|
|
4
|
-
import type { RuntimeFallbackSignalOptions } from '../utils/types';
|
|
5
|
-
export declare const resolveRuntimeEndpoint: (input: string | undefined, defaultPath: string) => string;
|
|
6
|
-
export declare const resolveToken: ({ token, tokenEnv, }: {
|
|
7
|
-
token?: string;
|
|
8
|
-
tokenEnv?: string;
|
|
9
|
-
}) => string | undefined;
|
|
10
|
-
export declare const createRuntimeFallbackSignalPayload: (options: RuntimeFallbackSignalOptions) => Record<string, unknown>;
|
|
11
|
-
export declare const runtimeCommand: (program: Command, _api: CLIPluginAPI<AppTools>) => Promise<void>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { CLIPluginAPI } from '@modern-js/plugin';
|
|
2
|
-
import { createProdServer } from '@modern-js/prod-server';
|
|
3
|
-
import type { AppTools } from '../types';
|
|
4
|
-
type ExtraServerOptions = {
|
|
5
|
-
launcher?: typeof createProdServer;
|
|
6
|
-
};
|
|
7
|
-
export declare const serve: (api: CLIPluginAPI<AppTools>, serverOptions?: ExtraServerOptions) => Promise<void>;
|
|
8
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { InternalContext } from '@modern-js/plugin';
|
|
2
|
-
import type { AppTools } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* old plugin useHookRunners function result
|
|
5
|
-
*/
|
|
6
|
-
export declare function getHookRunners(context: InternalContext<AppTools>): Record<string, any>;
|
|
7
|
-
export declare function handleSetupResult(setupResult: Record<string, (...args: any) => any>, api: Record<string, any>): void;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Maps old plugin hook function names to new plugin API names
|
|
3
|
-
*/
|
|
4
|
-
export declare function transformHookRunner(hookRunnerName: string): string | undefined;
|
|
5
|
-
/**
|
|
6
|
-
* Note:
|
|
7
|
-
* isMultiple Indicates whether the function parameter represents multiple values.
|
|
8
|
-
*/
|
|
9
|
-
export declare function transformHookParams(hookRunnerName: string, params: any): {
|
|
10
|
-
isMultiple: boolean;
|
|
11
|
-
params: any;
|
|
12
|
-
};
|
|
13
|
-
export declare function transformHookResult(hookRunnerName: string, result: any): any;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { AppNormalizedConfig } from '../../types';
|
|
2
|
-
import type { AppToolsContext } from '../../types/plugin';
|
|
3
|
-
export declare function initHtmlConfig(config: AppNormalizedConfig, appContext: AppToolsContext): AppNormalizedConfig['html'];
|
|
4
|
-
export declare function initSourceConfig(config: AppNormalizedConfig, appContext: AppToolsContext): void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { AppUserConfig } from './types';
|
|
2
|
-
export type ConfigParams = {
|
|
3
|
-
env: string;
|
|
4
|
-
command: string;
|
|
5
|
-
};
|
|
6
|
-
export type UserConfigExport<Config> = Config | ((env: ConfigParams) => Config | Promise<Config>);
|
|
7
|
-
/**
|
|
8
|
-
* This function helps you to autocomplete configuration types.
|
|
9
|
-
* It accepts a direct config object, or a function that returns a config.
|
|
10
|
-
*/
|
|
11
|
-
export declare const defineConfig: (config: UserConfigExport<AppUserConfig>) => UserConfigExport<import("./types").AppToolsUserConfig>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export function registerModuleHooks({ appDir, distDir, baseUrl, paths, }: {
|
|
2
|
-
appDir: any;
|
|
3
|
-
distDir: any;
|
|
4
|
-
baseUrl: any;
|
|
5
|
-
paths: any;
|
|
6
|
-
}): Promise<void>;
|
|
7
|
-
export function registerPathsLoader({ appDir, baseUrl, paths }: {
|
|
8
|
-
appDir: any;
|
|
9
|
-
baseUrl: any;
|
|
10
|
-
paths: any;
|
|
11
|
-
}): Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { ServerPlugin } from '@modern-js/server-core';
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { AppTools, CliPlugin } from './types';
|
|
2
|
-
import { initAppContext } from './utils/initAppContext';
|
|
3
|
-
export * from './baseline';
|
|
4
|
-
export * from './defineConfig';
|
|
5
|
-
export * from './presetUltramodern';
|
|
6
|
-
export * from './ultramodern/designSystem';
|
|
7
|
-
export declare const appTools: () => CliPlugin<AppTools>;
|
|
8
|
-
export { dev } from './commands/dev';
|
|
9
|
-
export { serve } from './commands/serve';
|
|
10
|
-
export { defineConfig } from './defineConfig';
|
|
11
|
-
export { type ResolveModernRsbuildConfigOptions, resolveModernRsbuildConfig, } from './rsbuild';
|
|
12
|
-
export * from './types';
|
|
13
|
-
export { generateWatchFiles } from './utils/generateWatchFiles';
|
|
14
|
-
export type { DevOptions } from './utils/types';
|
|
15
|
-
export { initAppContext };
|
|
16
|
-
export default appTools;
|
|
17
|
-
export { mergeConfig } from '@modern-js/plugin/cli';
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export declare const EN_LOCALE: {
|
|
2
|
-
command: {
|
|
3
|
-
shared: {
|
|
4
|
-
analyze: string;
|
|
5
|
-
config: string;
|
|
6
|
-
skipBuild: string;
|
|
7
|
-
noNeedInstall: string;
|
|
8
|
-
};
|
|
9
|
-
dev: {
|
|
10
|
-
describe: string;
|
|
11
|
-
entry: string;
|
|
12
|
-
apiOnly: string;
|
|
13
|
-
webOnly: string;
|
|
14
|
-
selectEntry: string;
|
|
15
|
-
requireEntry: string;
|
|
16
|
-
};
|
|
17
|
-
build: {
|
|
18
|
-
describe: string;
|
|
19
|
-
watch: string;
|
|
20
|
-
};
|
|
21
|
-
serve: {
|
|
22
|
-
describe: string;
|
|
23
|
-
};
|
|
24
|
-
deploy: {
|
|
25
|
-
describe: string;
|
|
26
|
-
};
|
|
27
|
-
new: {
|
|
28
|
-
describe: string;
|
|
29
|
-
debug: string;
|
|
30
|
-
config: string;
|
|
31
|
-
distTag: string;
|
|
32
|
-
registry: string;
|
|
33
|
-
lang: string;
|
|
34
|
-
};
|
|
35
|
-
inspect: {
|
|
36
|
-
env: string;
|
|
37
|
-
output: string;
|
|
38
|
-
verbose: string;
|
|
39
|
-
};
|
|
40
|
-
info: {
|
|
41
|
-
describe: string;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
};
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { I18n } from '@modern-js/i18n-utils';
|
|
2
|
-
declare const i18n: I18n;
|
|
3
|
-
declare const localeKeys: {
|
|
4
|
-
command: {
|
|
5
|
-
shared: {
|
|
6
|
-
analyze: string;
|
|
7
|
-
config: string;
|
|
8
|
-
skipBuild: string;
|
|
9
|
-
noNeedInstall: string;
|
|
10
|
-
};
|
|
11
|
-
dev: {
|
|
12
|
-
describe: string;
|
|
13
|
-
entry: string;
|
|
14
|
-
apiOnly: string;
|
|
15
|
-
webOnly: string;
|
|
16
|
-
selectEntry: string;
|
|
17
|
-
requireEntry: string;
|
|
18
|
-
};
|
|
19
|
-
build: {
|
|
20
|
-
describe: string;
|
|
21
|
-
watch: string;
|
|
22
|
-
};
|
|
23
|
-
serve: {
|
|
24
|
-
describe: string;
|
|
25
|
-
};
|
|
26
|
-
deploy: {
|
|
27
|
-
describe: string;
|
|
28
|
-
};
|
|
29
|
-
new: {
|
|
30
|
-
describe: string;
|
|
31
|
-
debug: string;
|
|
32
|
-
config: string;
|
|
33
|
-
distTag: string;
|
|
34
|
-
registry: string;
|
|
35
|
-
lang: string;
|
|
36
|
-
};
|
|
37
|
-
inspect: {
|
|
38
|
-
env: string;
|
|
39
|
-
output: string;
|
|
40
|
-
verbose: string;
|
|
41
|
-
};
|
|
42
|
-
info: {
|
|
43
|
-
describe: string;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
} | {
|
|
47
|
-
command: {
|
|
48
|
-
shared: {
|
|
49
|
-
analyze: string;
|
|
50
|
-
config: string;
|
|
51
|
-
skipBuild: string;
|
|
52
|
-
noNeedInstall: string;
|
|
53
|
-
};
|
|
54
|
-
dev: {
|
|
55
|
-
describe: string;
|
|
56
|
-
entry: string;
|
|
57
|
-
apiOnly: string;
|
|
58
|
-
webOnly: string;
|
|
59
|
-
selectEntry: string;
|
|
60
|
-
requireEntry: string;
|
|
61
|
-
};
|
|
62
|
-
build: {
|
|
63
|
-
describe: string;
|
|
64
|
-
watch: string;
|
|
65
|
-
};
|
|
66
|
-
serve: {
|
|
67
|
-
describe: string;
|
|
68
|
-
};
|
|
69
|
-
deploy: {
|
|
70
|
-
describe: string;
|
|
71
|
-
};
|
|
72
|
-
new: {
|
|
73
|
-
describe: string;
|
|
74
|
-
debug: string;
|
|
75
|
-
config: string;
|
|
76
|
-
distTag: string;
|
|
77
|
-
registry: string;
|
|
78
|
-
lang: string;
|
|
79
|
-
};
|
|
80
|
-
inspect: {
|
|
81
|
-
env: string;
|
|
82
|
-
output: string;
|
|
83
|
-
verbose: string;
|
|
84
|
-
};
|
|
85
|
-
info: {
|
|
86
|
-
describe: string;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
export { i18n, localeKeys };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export declare const ZH_LOCALE: {
|
|
2
|
-
command: {
|
|
3
|
-
shared: {
|
|
4
|
-
analyze: string;
|
|
5
|
-
config: string;
|
|
6
|
-
skipBuild: string;
|
|
7
|
-
noNeedInstall: string;
|
|
8
|
-
};
|
|
9
|
-
dev: {
|
|
10
|
-
describe: string;
|
|
11
|
-
entry: string;
|
|
12
|
-
apiOnly: string;
|
|
13
|
-
webOnly: string;
|
|
14
|
-
selectEntry: string;
|
|
15
|
-
requireEntry: string;
|
|
16
|
-
};
|
|
17
|
-
build: {
|
|
18
|
-
describe: string;
|
|
19
|
-
watch: string;
|
|
20
|
-
};
|
|
21
|
-
serve: {
|
|
22
|
-
describe: string;
|
|
23
|
-
};
|
|
24
|
-
deploy: {
|
|
25
|
-
describe: string;
|
|
26
|
-
};
|
|
27
|
-
new: {
|
|
28
|
-
describe: string;
|
|
29
|
-
debug: string;
|
|
30
|
-
config: string;
|
|
31
|
-
distTag: string;
|
|
32
|
-
registry: string;
|
|
33
|
-
lang: string;
|
|
34
|
-
};
|
|
35
|
-
inspect: {
|
|
36
|
-
env: string;
|
|
37
|
-
output: string;
|
|
38
|
-
verbose: string;
|
|
39
|
-
};
|
|
40
|
-
info: {
|
|
41
|
-
describe: string;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
};
|