@modern-js/module-tools 1.5.8 → 1.6.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/CHANGELOG.md +41 -0
- package/dist/js/modern/cli/build.js +5 -4
- package/dist/js/modern/commands/build.js +55 -28
- package/dist/js/modern/features/build/bundle/index.js +9 -0
- package/dist/js/modern/features/build/bundle/runRollup.js +149 -0
- package/dist/js/modern/features/build/bundle/runSpeedy.js +185 -0
- package/dist/js/modern/{tasks → features/build/bundleless}/copy-assets.js +31 -56
- package/dist/js/modern/{tasks → features/build/bundleless}/generator-dts/index.js +46 -71
- package/dist/js/modern/{tasks → features/build/bundleless}/generator-dts/utils.js +10 -10
- package/dist/js/modern/features/build/bundleless/index.js +23 -0
- package/dist/js/modern/features/build/bundleless/runBabel.js +269 -0
- package/dist/js/modern/features/build/bundleless/style.js +266 -0
- package/dist/js/modern/features/build/constants.js +94 -59
- package/dist/js/modern/features/build/error.js +150 -0
- package/dist/js/modern/features/build/index.js +87 -18
- package/dist/js/modern/features/build/legacy-constants.js +99 -0
- package/dist/js/modern/features/build/normalize.js +301 -0
- package/dist/js/modern/features/build/types.js +0 -0
- package/dist/js/modern/features/build/utils.js +39 -136
- package/dist/js/modern/index.js +3 -1
- package/dist/js/modern/locale/en.js +5 -3
- package/dist/js/modern/locale/zh.js +5 -3
- package/dist/js/modern/schema/build-config.js +111 -0
- package/dist/js/modern/schema/index.js +2 -1
- package/dist/js/modern/schema/output.js +18 -9
- package/dist/js/modern/schema/source.js +2 -10
- package/dist/js/modern/schema/tools.js +6 -0
- package/dist/js/modern/schema/types.js +0 -0
- package/dist/js/modern/utils/babel.js +4 -1
- package/dist/js/modern/utils/constants.js +3 -0
- package/dist/js/modern/utils/copy.js +2 -2
- package/dist/js/node/cli/build.js +5 -4
- package/dist/js/node/commands/build.js +62 -29
- package/dist/js/node/features/build/bundle/index.js +23 -0
- package/dist/js/node/features/build/bundle/runRollup.js +174 -0
- package/dist/js/node/features/build/bundle/runSpeedy.js +209 -0
- package/dist/js/node/{tasks → features/build/bundleless}/copy-assets.js +37 -56
- package/dist/js/node/{tasks → features/build/bundleless}/generator-dts/index.js +58 -73
- package/dist/js/node/{tasks → features/build/bundleless}/generator-dts/utils.js +9 -10
- package/dist/js/node/features/build/bundleless/index.js +40 -0
- package/dist/js/node/features/build/bundleless/runBabel.js +309 -0
- package/dist/js/node/features/build/bundleless/style.js +299 -0
- package/dist/js/node/features/build/constants.js +115 -67
- package/dist/js/node/features/build/error.js +175 -0
- package/dist/js/node/features/build/index.js +104 -18
- package/dist/js/node/features/build/legacy-constants.js +107 -0
- package/dist/js/node/features/build/normalize.js +330 -0
- package/dist/js/node/features/build/types.js +0 -0
- package/dist/js/node/features/build/utils.js +48 -145
- package/dist/js/node/index.js +20 -1
- package/dist/js/node/locale/en.js +5 -3
- package/dist/js/node/locale/zh.js +5 -3
- package/dist/js/node/schema/build-config.js +120 -0
- package/dist/js/node/schema/index.js +3 -1
- package/dist/js/node/schema/output.js +20 -9
- package/dist/js/node/schema/source.js +2 -10
- package/dist/js/node/schema/tools.js +13 -0
- package/dist/js/node/schema/types.js +0 -0
- package/dist/js/node/utils/babel.js +4 -1
- package/dist/js/node/utils/constants.js +11 -0
- package/dist/js/node/utils/copy.js +1 -1
- package/dist/types/cli/build.d.ts +1 -1
- package/dist/types/commands/build.d.ts +12 -12
- package/dist/types/features/build/bundle/index.d.ts +3 -0
- package/dist/types/features/build/bundle/runRollup.d.ts +3 -0
- package/dist/types/features/build/bundle/runSpeedy.d.ts +10 -0
- package/dist/types/features/build/bundleless/copy-assets.d.ts +3 -0
- package/dist/types/features/build/bundleless/generator-dts/index.d.ts +3 -0
- package/dist/types/{tasks → features/build/bundleless}/generator-dts/utils.d.ts +3 -6
- package/dist/types/features/build/bundleless/index.d.ts +4 -0
- package/dist/types/features/build/bundleless/runBabel.d.ts +32 -0
- package/dist/types/features/build/bundleless/style.d.ts +25 -0
- package/dist/types/features/build/constants.d.ts +17 -13
- package/dist/types/features/build/error.d.ts +33 -0
- package/dist/types/features/build/index.d.ts +12 -3
- package/dist/types/features/build/legacy-constants.d.ts +8 -0
- package/dist/types/features/build/normalize.d.ts +19 -0
- package/dist/types/features/build/types.d.ts +15 -0
- package/dist/types/features/build/utils.d.ts +10 -31
- package/dist/types/index.d.ts +1 -0
- package/dist/types/locale/en.d.ts +2 -0
- package/dist/types/locale/index.d.ts +4 -0
- package/dist/types/locale/zh.d.ts +2 -0
- package/dist/types/schema/build-config.d.ts +197 -0
- package/dist/types/schema/index.d.ts +184 -18
- package/dist/types/schema/output.d.ts +188 -10
- package/dist/types/schema/source.d.ts +2 -11
- package/dist/types/schema/tools.d.ts +6 -0
- package/dist/types/schema/types.d.ts +46 -0
- package/dist/types/types.d.ts +29 -28
- package/dist/types/utils/babel.d.ts +3 -2
- package/dist/types/utils/constants.d.ts +2 -0
- package/package.json +23 -9
- package/dist/js/modern/features/build/build-watch.js +0 -101
- package/dist/js/modern/features/build/build.js +0 -123
- package/dist/js/modern/tasks/build-source-code.js +0 -208
- package/dist/js/modern/tasks/build-style.js +0 -169
- package/dist/js/modern/tasks/build-watch-source-code.js +0 -162
- package/dist/js/modern/tasks/build-watch-style.js +0 -216
- package/dist/js/modern/tasks/constants.js +0 -1
- package/dist/js/node/features/build/build-watch.js +0 -121
- package/dist/js/node/features/build/build.js +0 -143
- package/dist/js/node/tasks/build-source-code.js +0 -234
- package/dist/js/node/tasks/build-style.js +0 -184
- package/dist/js/node/tasks/build-watch-source-code.js +0 -174
- package/dist/js/node/tasks/build-watch-style.js +0 -233
- package/dist/js/node/tasks/constants.js +0 -8
- package/dist/types/features/build/build-watch.d.ts +0 -3
- package/dist/types/features/build/build.d.ts +0 -3
- package/dist/types/tasks/build-source-code.d.ts +0 -25
- package/dist/types/tasks/build-style.d.ts +0 -1
- package/dist/types/tasks/build-watch-source-code.d.ts +0 -1
- package/dist/types/tasks/build-watch-style.d.ts +0 -1
- package/dist/types/tasks/constants.d.ts +0 -1
- package/dist/types/tasks/copy-assets.d.ts +0 -1
- package/dist/types/tasks/generator-dts/index.d.ts +0 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { PluginAPI } from '@modern-js/core';
|
|
2
|
+
import type { BabelOptions, ICompilerResult, BuildWatchEmitter, ICompilerMessageDetail } from '@modern-js/babel-compiler';
|
|
3
|
+
import type { NormalizedBundlelessBuildConfig } from '../types';
|
|
4
|
+
import type { ITsconfig } from '../../../types';
|
|
5
|
+
export declare class BabelBuildError extends Error {
|
|
6
|
+
readonly summary?: string;
|
|
7
|
+
readonly details?: ICompilerMessageDetail[];
|
|
8
|
+
constructor(message: string, opts?: {
|
|
9
|
+
summary?: string;
|
|
10
|
+
details?: ICompilerMessageDetail[];
|
|
11
|
+
});
|
|
12
|
+
toString(): string;
|
|
13
|
+
formatError(): string[];
|
|
14
|
+
}
|
|
15
|
+
interface IBuildSourceCodeConfig {
|
|
16
|
+
appDirectory: string;
|
|
17
|
+
watch?: boolean;
|
|
18
|
+
babelConfig: BabelOptions;
|
|
19
|
+
srcRootDir: string;
|
|
20
|
+
willCompilerDirOrFile: string;
|
|
21
|
+
distDir: string;
|
|
22
|
+
tsconfigPath: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const getWillCompilerCode: (srcDirOrFile: string, option: {
|
|
25
|
+
tsconfig: ITsconfig | null;
|
|
26
|
+
isTsProject: boolean;
|
|
27
|
+
}) => string[];
|
|
28
|
+
export declare const buildSourceCode: (config: IBuildSourceCodeConfig) => Promise<ICompilerResult | BuildWatchEmitter>;
|
|
29
|
+
export declare const jsFileSuffix: string[];
|
|
30
|
+
export declare const haveNotAnyJsFile: (sourceDir: string) => Promise<boolean>;
|
|
31
|
+
export declare const runBabelBuild: (api: PluginAPI, config: NormalizedBundlelessBuildConfig) => Promise<void>;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { PluginAPI } from '@modern-js/core';
|
|
2
|
+
import type { BuildWatchEmitter, ICompilerResult, SingleFileCompilerResult, LessOption, PostcssOption, SassOptions } from '@modern-js/style-compiler';
|
|
3
|
+
import type { NormalizedBundlelessBuildConfig } from '../types';
|
|
4
|
+
export declare class StyleBuildError extends Error {
|
|
5
|
+
readonly summary?: string;
|
|
6
|
+
readonly details?: SingleFileCompilerResult[];
|
|
7
|
+
constructor(message: string, opts?: {
|
|
8
|
+
summary?: string;
|
|
9
|
+
details?: SingleFileCompilerResult[];
|
|
10
|
+
});
|
|
11
|
+
toString(): string;
|
|
12
|
+
formatError(): string[];
|
|
13
|
+
}
|
|
14
|
+
export declare const runBuild: (option: {
|
|
15
|
+
appDirectory: string;
|
|
16
|
+
srcDir: string;
|
|
17
|
+
outDir: string;
|
|
18
|
+
watch: boolean;
|
|
19
|
+
lessOption: LessOption | undefined;
|
|
20
|
+
sassOption: SassOptions<'sync'> | undefined;
|
|
21
|
+
postcssOption: PostcssOption;
|
|
22
|
+
}) => Promise<BuildWatchEmitter | ICompilerResult | undefined>;
|
|
23
|
+
export declare const styleFileSuffix: string[];
|
|
24
|
+
export declare const haveNotAnyStyles: (sourceDir: string) => Promise<boolean>;
|
|
25
|
+
export declare const buildStyle: (api: PluginAPI, config: NormalizedBundlelessBuildConfig) => Promise<void>;
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import type { BaseBuildConfig, Target } from '../../schema/types';
|
|
2
|
+
export declare const clearFlag = "\u001Bc";
|
|
3
|
+
export declare const buildingText: string;
|
|
4
|
+
export declare const buildSuccessText: string;
|
|
5
|
+
export declare const buildFailText: string;
|
|
6
|
+
export declare const targets: Target[];
|
|
7
|
+
export declare const npmLibraryPresetConfig: BaseBuildConfig[];
|
|
8
|
+
export declare const npmLibraryWithUmdPresetConfig: BaseBuildConfig[];
|
|
9
|
+
export declare const npmComponentPresetConfig: BaseBuildConfig[];
|
|
10
|
+
export declare const npmComponentWithUmdPresetConfig: BaseBuildConfig[];
|
|
11
|
+
export declare const unPresetConfigs: {
|
|
12
|
+
'npm-library': BaseBuildConfig[];
|
|
13
|
+
'npm-library-with-umd': BaseBuildConfig[];
|
|
14
|
+
'npm-component': BaseBuildConfig[];
|
|
15
|
+
'npm-component-with-umd': BaseBuildConfig[];
|
|
9
16
|
};
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const runTscTitle = "Run `tsc` log";
|
|
13
|
-
export declare const runStyleCompilerTitle = "Run style compiler code log";
|
|
14
|
-
export declare const clearFlag = "\u001Bc";
|
|
17
|
+
export declare const unPresets: ("npm-library" | "npm-library-with-umd" | "npm-component" | "npm-component-with-umd")[];
|
|
18
|
+
export declare const unPresetWithTargetConfigs: Record<string, BaseBuildConfig[]>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ExecaError } from '@modern-js/utils';
|
|
2
|
+
import type { BuildType, Format, Target } from '../../schema/types';
|
|
3
|
+
export declare const padSpaceWith: (str: string, targetL: number, opts?: {
|
|
4
|
+
endStr?: string | undefined;
|
|
5
|
+
style?: ((s: string) => string) | undefined;
|
|
6
|
+
}) => string;
|
|
7
|
+
export declare class InternalBuildError extends Error {
|
|
8
|
+
buildType: BuildType;
|
|
9
|
+
target: Target;
|
|
10
|
+
format: Format;
|
|
11
|
+
private e;
|
|
12
|
+
constructor(e: Error, opts: {
|
|
13
|
+
buildType: BuildType;
|
|
14
|
+
format: Format;
|
|
15
|
+
target: Target;
|
|
16
|
+
});
|
|
17
|
+
toString(): string;
|
|
18
|
+
formatError(): string[];
|
|
19
|
+
}
|
|
20
|
+
export declare class InternalDTSError extends Error {
|
|
21
|
+
buildType: BuildType;
|
|
22
|
+
private e;
|
|
23
|
+
constructor(e: Error | ExecaError, opts: {
|
|
24
|
+
buildType: BuildType;
|
|
25
|
+
});
|
|
26
|
+
toString(): string;
|
|
27
|
+
formatError(): string[];
|
|
28
|
+
}
|
|
29
|
+
export declare class ModuleBuildError extends Error {
|
|
30
|
+
constructor(e: InternalBuildError | InternalDTSError);
|
|
31
|
+
}
|
|
32
|
+
export declare const isInternalError: (e: unknown) => e is InternalBuildError | InternalDTSError;
|
|
33
|
+
export declare const isExecaError: (e: any) => e is ExecaError<string>;
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
|
|
1
|
+
import type { PluginAPI } from '@modern-js/core';
|
|
2
|
+
import type { IBuildFeatOption } from '../../types';
|
|
3
|
+
import type { NormalizedBuildConfig } from './types';
|
|
4
|
+
export declare const checkPlatformAndRunBuild: (platform: IBuildFeatOption['platform'], options: {
|
|
5
|
+
api: PluginAPI;
|
|
6
|
+
isTsProject: boolean;
|
|
7
|
+
}) => Promise<{
|
|
8
|
+
exit: boolean;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const runBuild: (api: PluginAPI, normalizedModuleConfig: NormalizedBuildConfig[], config: IBuildFeatOption) => Promise<void>;
|
|
11
|
+
export declare const buildInNormalMode: (api: PluginAPI, normalizedModuleConfig: NormalizedBuildConfig[], config: IBuildFeatOption) => Promise<void>;
|
|
12
|
+
export declare const build: (api: PluginAPI, config: IBuildFeatOption) => Promise<void>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const DEFAULT_PACKAGE_MODE = "universal-js";
|
|
2
|
+
export declare const PACKAGE_MODES: {
|
|
3
|
+
'universal-js': import("../../schema/types").BaseBuildConfig[];
|
|
4
|
+
'universal-js-lite': import("../../schema/types").BaseBuildConfig[];
|
|
5
|
+
'browser-js': import("../../schema/types").BaseBuildConfig[];
|
|
6
|
+
'browser-js-lite': import("../../schema/types").BaseBuildConfig[];
|
|
7
|
+
'node-js': import("../../schema/types").BaseBuildConfig[];
|
|
8
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { PluginAPI } from '@modern-js/core';
|
|
2
|
+
import type { BuildConfig, BaseBuildConfig, SourceMap } from '../../schema/types';
|
|
3
|
+
import type { IBuildFeatOption } from '../../types';
|
|
4
|
+
import type { NormalizedBuildConfig } from './types';
|
|
5
|
+
export declare const getNormalizeModuleConfigByPackageModeAndFileds: (api: PluginAPI, buildFeatOption: IBuildFeatOption) => BuildConfig;
|
|
6
|
+
export declare const getFinalTsconfig: (config: {
|
|
7
|
+
tsconfig?: string;
|
|
8
|
+
}, buildFeatOption: IBuildFeatOption) => string;
|
|
9
|
+
export declare const getFinalDts: (config: Pick<BaseBuildConfig, 'enableDts'>, buildFeatOption: IBuildFeatOption) => boolean;
|
|
10
|
+
export declare const getSourceMap: (config: Pick<BaseBuildConfig, 'sourceMap'>, buildType: BaseBuildConfig['buildType'], api: PluginAPI) => SourceMap;
|
|
11
|
+
export declare const normalizeBuildConfig: (context: {
|
|
12
|
+
buildFeatOption: IBuildFeatOption;
|
|
13
|
+
api: PluginAPI;
|
|
14
|
+
}, buildConfig: BuildConfig, deps?: string[]) => NormalizedBuildConfig[];
|
|
15
|
+
export declare const normalizeModuleConfig: (context: {
|
|
16
|
+
buildFeatOption: IBuildFeatOption;
|
|
17
|
+
api: PluginAPI;
|
|
18
|
+
deps?: string[];
|
|
19
|
+
}) => NormalizedBuildConfig[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { BaseBuildConfig, BundlelessOptions, BundleOptions } from '../../schema/types';
|
|
2
|
+
export declare type NormalizedBuildConfig = NormalizedBundleBuildConfig | NormalizedBundlelessBuildConfig;
|
|
3
|
+
export declare type CommonNormalizedBuildConfig = Required<Omit<BaseBuildConfig, 'bundleOptions' | 'bundlelessOptions'>> & {
|
|
4
|
+
watch?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare type NormalizedBundleBuildConfig = {
|
|
7
|
+
buildType: 'bundle';
|
|
8
|
+
} & CommonNormalizedBuildConfig & {
|
|
9
|
+
bundleOptions: BundleOptions;
|
|
10
|
+
};
|
|
11
|
+
export declare type NormalizedBundlelessBuildConfig = {
|
|
12
|
+
buildType: 'bundleless';
|
|
13
|
+
} & CommonNormalizedBuildConfig & {
|
|
14
|
+
bundlelessOptions: Required<BundlelessOptions>;
|
|
15
|
+
};
|
|
@@ -1,29 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type { LoggerText } from './logger';
|
|
4
|
-
export declare const getCodeInitMapper: (api: PluginAPI, _: IBuildConfig) => IPackageModeValue[];
|
|
5
|
-
export declare const getCodeMapper: (api: PluginAPI, {
|
|
6
|
-
logger,
|
|
7
|
-
taskPath,
|
|
8
|
-
config,
|
|
9
|
-
initMapper,
|
|
10
|
-
srcRootDir,
|
|
11
|
-
willCompilerDirOrFile
|
|
12
|
-
}: ITaskMapper & {
|
|
13
|
-
config: IBuildConfig;
|
|
14
|
-
initMapper: IPackageModeValue[];
|
|
15
|
-
srcRootDir: string;
|
|
16
|
-
willCompilerDirOrFile: string;
|
|
17
|
-
}) => {
|
|
18
|
-
logger: LoggerText | null;
|
|
19
|
-
taskPath: string;
|
|
20
|
-
params: string[];
|
|
21
|
-
}[];
|
|
22
|
-
export declare const getDtsMapper: (api: PluginAPI, config: IBuildConfig, logger: LoggerText) => {
|
|
23
|
-
logger: LoggerText;
|
|
24
|
-
taskPath: string;
|
|
25
|
-
params: string[];
|
|
26
|
-
}[];
|
|
1
|
+
import type { NormalizedConfig } from '@modern-js/core';
|
|
2
|
+
import type { PostcssOption } from '@modern-js/style-compiler';
|
|
27
3
|
/**
|
|
28
4
|
* 处理日志信息
|
|
29
5
|
*/
|
|
@@ -52,8 +28,11 @@ export declare const logTemplate: (title: string, messageStack: string[], maxLen
|
|
|
52
28
|
leftBorder?: string | undefined;
|
|
53
29
|
contentColor?: ((s: string) => string) | undefined;
|
|
54
30
|
}) => string;
|
|
55
|
-
export declare
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
31
|
+
export declare enum SectionTitleStatus {
|
|
32
|
+
Success = 0,
|
|
33
|
+
Fail = 1,
|
|
34
|
+
Log = 2,
|
|
35
|
+
}
|
|
36
|
+
export declare const watchSectionTitle: (str: string, status: SectionTitleStatus) => string;
|
|
37
|
+
export declare const getPostcssOption: (appDirectory: string, modernConfig: NormalizedConfig) => PostcssOption;
|
|
38
|
+
export declare const getAllDeps: <T>(appDirectory: string) => string[];
|
package/dist/types/index.d.ts
CHANGED
|
@@ -8,7 +8,9 @@ declare const localeKeys: {
|
|
|
8
8
|
style_only: string;
|
|
9
9
|
platform: string;
|
|
10
10
|
no_tsc: string;
|
|
11
|
+
dts: string;
|
|
11
12
|
no_clear: string;
|
|
13
|
+
config: string;
|
|
12
14
|
};
|
|
13
15
|
dev: {
|
|
14
16
|
describe: string;
|
|
@@ -30,7 +32,9 @@ declare const localeKeys: {
|
|
|
30
32
|
style_only: string;
|
|
31
33
|
platform: string;
|
|
32
34
|
no_tsc: string;
|
|
35
|
+
dts: string;
|
|
33
36
|
no_clear: string;
|
|
37
|
+
config: string;
|
|
34
38
|
};
|
|
35
39
|
dev: {
|
|
36
40
|
describe: string;
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
export declare const targets: string[];
|
|
2
|
+
export declare const presets: string[];
|
|
3
|
+
export declare const buildSchema: ({
|
|
4
|
+
target: string;
|
|
5
|
+
schema: {
|
|
6
|
+
if: {
|
|
7
|
+
type: string;
|
|
8
|
+
};
|
|
9
|
+
then: {
|
|
10
|
+
items: {
|
|
11
|
+
type: string;
|
|
12
|
+
properties: {
|
|
13
|
+
target: {
|
|
14
|
+
enum: string[];
|
|
15
|
+
};
|
|
16
|
+
format: {
|
|
17
|
+
enum: string[];
|
|
18
|
+
};
|
|
19
|
+
sourceMap: {
|
|
20
|
+
enum: (string | boolean)[];
|
|
21
|
+
};
|
|
22
|
+
buildType: {
|
|
23
|
+
enum: string[];
|
|
24
|
+
};
|
|
25
|
+
bundleOptions: {
|
|
26
|
+
type: string;
|
|
27
|
+
properties: {
|
|
28
|
+
entry: {
|
|
29
|
+
type: string;
|
|
30
|
+
};
|
|
31
|
+
splitting: {
|
|
32
|
+
type: string;
|
|
33
|
+
};
|
|
34
|
+
externals: {
|
|
35
|
+
type: string;
|
|
36
|
+
items: {
|
|
37
|
+
anyOf: ({
|
|
38
|
+
instanceof: string;
|
|
39
|
+
typeof?: undefined;
|
|
40
|
+
} | {
|
|
41
|
+
typeof: string;
|
|
42
|
+
instanceof?: undefined;
|
|
43
|
+
})[];
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
platform: {
|
|
47
|
+
enum: string[];
|
|
48
|
+
};
|
|
49
|
+
minify: {
|
|
50
|
+
enum: (string | boolean)[];
|
|
51
|
+
};
|
|
52
|
+
skipDeps: {
|
|
53
|
+
type: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
bundlelessOptions: {
|
|
58
|
+
type: string;
|
|
59
|
+
properties: {
|
|
60
|
+
sourceDir: {
|
|
61
|
+
type: string;
|
|
62
|
+
};
|
|
63
|
+
style: {
|
|
64
|
+
type: string;
|
|
65
|
+
properties: {
|
|
66
|
+
compileMode: {
|
|
67
|
+
enum: (string | boolean)[];
|
|
68
|
+
};
|
|
69
|
+
path: {
|
|
70
|
+
type: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
static: {
|
|
75
|
+
type: string;
|
|
76
|
+
properties: {
|
|
77
|
+
path: {
|
|
78
|
+
type: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
tsconfig: {
|
|
85
|
+
type: string;
|
|
86
|
+
};
|
|
87
|
+
enableDts: {
|
|
88
|
+
type: string;
|
|
89
|
+
};
|
|
90
|
+
dtsOnly: {
|
|
91
|
+
type: string;
|
|
92
|
+
};
|
|
93
|
+
outputPath: {
|
|
94
|
+
type: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
}[];
|
|
98
|
+
};
|
|
99
|
+
else: {
|
|
100
|
+
type: string;
|
|
101
|
+
properties: {
|
|
102
|
+
target: {
|
|
103
|
+
enum: string[];
|
|
104
|
+
};
|
|
105
|
+
format: {
|
|
106
|
+
enum: string[];
|
|
107
|
+
};
|
|
108
|
+
sourceMap: {
|
|
109
|
+
enum: (string | boolean)[];
|
|
110
|
+
};
|
|
111
|
+
buildType: {
|
|
112
|
+
enum: string[];
|
|
113
|
+
};
|
|
114
|
+
bundleOptions: {
|
|
115
|
+
type: string;
|
|
116
|
+
properties: {
|
|
117
|
+
entry: {
|
|
118
|
+
type: string;
|
|
119
|
+
};
|
|
120
|
+
splitting: {
|
|
121
|
+
type: string;
|
|
122
|
+
};
|
|
123
|
+
externals: {
|
|
124
|
+
type: string;
|
|
125
|
+
items: {
|
|
126
|
+
anyOf: ({
|
|
127
|
+
instanceof: string;
|
|
128
|
+
typeof?: undefined;
|
|
129
|
+
} | {
|
|
130
|
+
typeof: string;
|
|
131
|
+
instanceof?: undefined;
|
|
132
|
+
})[];
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
platform: {
|
|
136
|
+
enum: string[];
|
|
137
|
+
};
|
|
138
|
+
minify: {
|
|
139
|
+
enum: (string | boolean)[];
|
|
140
|
+
};
|
|
141
|
+
skipDeps: {
|
|
142
|
+
type: string;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
bundlelessOptions: {
|
|
147
|
+
type: string;
|
|
148
|
+
properties: {
|
|
149
|
+
sourceDir: {
|
|
150
|
+
type: string;
|
|
151
|
+
};
|
|
152
|
+
style: {
|
|
153
|
+
type: string;
|
|
154
|
+
properties: {
|
|
155
|
+
compileMode: {
|
|
156
|
+
enum: (string | boolean)[];
|
|
157
|
+
};
|
|
158
|
+
path: {
|
|
159
|
+
type: string;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
static: {
|
|
164
|
+
type: string;
|
|
165
|
+
properties: {
|
|
166
|
+
path: {
|
|
167
|
+
type: string;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
tsconfig: {
|
|
174
|
+
type: string;
|
|
175
|
+
};
|
|
176
|
+
enableDts: {
|
|
177
|
+
type: string;
|
|
178
|
+
};
|
|
179
|
+
dtsOnly: {
|
|
180
|
+
type: string;
|
|
181
|
+
};
|
|
182
|
+
outputPath: {
|
|
183
|
+
type: string;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
enum?: undefined;
|
|
188
|
+
};
|
|
189
|
+
} | {
|
|
190
|
+
target: string;
|
|
191
|
+
schema: {
|
|
192
|
+
enum: string[];
|
|
193
|
+
if?: undefined;
|
|
194
|
+
then?: undefined;
|
|
195
|
+
else?: undefined;
|
|
196
|
+
};
|
|
197
|
+
})[];
|