@granite-js/mpack 0.1.6 → 0.1.8
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 +18 -0
- package/dist/bundler/Bundler.d.ts +1 -1
- package/dist/bundler/Bundler.js +7 -2
- package/dist/bundler/internal/presets.d.ts +19 -0
- package/dist/bundler/internal/presets.js +103 -0
- package/dist/bundler/plugins/buildStatusPlugin/buildStatusPlugin.d.ts +2 -2
- package/dist/bundler/plugins/buildStatusPlugin/buildStatusPlugin.js +4 -5
- package/dist/bundler/plugins/dependencyAliasPlugin/aliasResolver.d.ts +1 -1
- package/dist/bundler/plugins/dependencyAliasPlugin/protocolResolver.d.ts +1 -1
- package/dist/bundler/plugins/shared/swc.d.ts +1 -1
- package/dist/bundler/plugins/transformPlugin/steps/createTransformToHermesSyntaxStep.d.ts +1 -1
- package/dist/constants/index.d.ts +2 -2
- package/dist/constants/index.js +4 -4
- package/dist/index.d.ts +3 -8
- package/dist/index.js +9 -15
- package/dist/metro/build.d.ts +17 -0
- package/dist/metro/build.js +104 -0
- package/dist/metro/getMetroConfig.d.ts +2 -9
- package/dist/metro/getMetroConfig.js +4 -6
- package/dist/metro/index.d.ts +1 -2
- package/dist/metro/index.js +20 -3
- package/dist/operations/build.d.ts +15 -0
- package/dist/operations/{runBundle.js → build.js} +51 -51
- package/dist/operations/createDebuggerMiddleware.d.ts +1 -2
- package/dist/operations/createDebuggerMiddleware.js +4 -4
- package/dist/operations/experimental/serve.d.ts +11 -0
- package/dist/operations/experimental/{runServer.js → serve.js} +21 -25
- package/dist/operations/index.d.ts +3 -3
- package/dist/operations/index.js +23 -6
- package/dist/operations/openDebugger.d.ts +1 -1
- package/dist/operations/openDebugger.js +3 -2
- package/dist/operations/serve.d.ts +10 -0
- package/dist/operations/{runServer.js → serve.js} +15 -16
- package/dist/plugins/statusPlugin.js +1 -1
- package/dist/server/DevServer.d.ts +3 -0
- package/dist/server/DevServer.js +13 -14
- package/dist/server/helpers/createBundlerForDevServer.d.ts +3 -5
- package/dist/server/helpers/createBundlerForDevServer.js +10 -37
- package/dist/server/helpers/mergeBundles.d.ts +4 -4
- package/dist/server/helpers/mergeBundles.js +10 -10
- package/dist/server/plugins/serveBundlePlugin.d.ts +2 -2
- package/dist/server/plugins/symbolicatePlugin/symbolicatePlugin.d.ts +2 -2
- package/dist/server/types.d.ts +9 -14
- package/dist/types/BundlerConfig.d.ts +1 -34
- package/dist/types/Id.d.ts +3 -0
- package/dist/{bundler/types.js → types/Id.js} +2 -2
- package/dist/types/Plugin.d.ts +2 -2
- package/dist/types/index.d.ts +1 -7
- package/dist/types/index.js +2 -14
- package/dist/utils/getId.js +1 -8
- package/dist/utils/progressBar.d.ts +1 -1
- package/dist/utils/writeBundle.d.ts +1 -1
- package/dist/vendors/metro/src/lib/ReportableEvent.d.ts +152 -0
- package/dist/vendors/metro/src/lib/TerminalReporter.d.ts +2 -2
- package/dist/vendors/metro-transform-worker/src/index.js +0 -1
- package/package.json +5 -4
- package/dist/bundler/types.d.ts +0 -17
- package/dist/metro/runBuild.d.ts +0 -12
- package/dist/metro/runBuild.js +0 -66
- package/dist/metro/runtime.d.ts +0 -3
- package/dist/metro/runtime.js +0 -56
- package/dist/metro/types.d.ts +0 -88
- package/dist/metro/types.js +0 -16
- package/dist/operations/experimental/runServer.d.ts +0 -16
- package/dist/operations/runBundle.d.ts +0 -12
- package/dist/operations/runServer.d.ts +0 -15
- package/dist/types/BuildConfig.d.ts +0 -183
- package/dist/types/BuildConfig.js +0 -16
- package/dist/types/Config.d.ts +0 -12
- package/dist/types/Config.js +0 -16
- package/dist/types/DevServerConfig.d.ts +0 -9
- package/dist/types/DevServerConfig.js +0 -16
- package/dist/types/Preset.d.ts +0 -3
- package/dist/types/Preset.js +0 -16
- package/dist/types/PresetContext.d.ts +0 -2
- package/dist/types/PresetContext.js +0 -16
- package/dist/types/ServicesConfig.d.ts +0 -2
- package/dist/types/ServicesConfig.js +0 -16
- package/dist/types/TaskConfig.d.ts +0 -16
- package/dist/types/TaskConfig.js +0 -16
- package/dist/types/schemas/buildConfigSchema.d.ts +0 -235
- package/dist/types/schemas/buildConfigSchema.js +0 -79
- package/dist/types/schemas/bundlerConfigSchema.d.ts +0 -3
- package/dist/types/schemas/bundlerConfigSchema.js +0 -51
- package/dist/types/schemas/configSchema.d.ts +0 -3
- package/dist/types/schemas/configSchema.js +0 -50
- package/dist/types/schemas/devServerConfigSchema.d.ts +0 -3
- package/dist/types/schemas/devServerConfigSchema.js +0 -43
- package/dist/types/schemas/index.d.ts +0 -6
- package/dist/types/schemas/index.js +0 -32
- package/dist/types/schemas/servicesConfigSchema.d.ts +0 -3
- package/dist/types/schemas/servicesConfigSchema.js +0 -48
- package/dist/types/schemas/taskConfigSchema.d.ts +0 -3
- package/dist/types/schemas/taskConfigSchema.js +0 -45
- package/dist/utils/loadConfig.d.ts +0 -2
- package/dist/utils/loadConfig.js +0 -37
- package/dist/utils/loadPresets.d.ts +0 -2
- package/dist/utils/loadPresets.js +0 -40
- package/dist/utils/mergeBanners.d.ts +0 -6
- package/dist/utils/mergeBanners.js +0 -35
- package/dist/utils/mergeBuildConfigs.d.ts +0 -2
- package/dist/utils/mergeBuildConfigs.js +0 -59
- package/dist/utils/mergeInject.d.ts +0 -3
- package/dist/utils/mergeInject.js +0 -30
package/dist/metro/types.d.ts
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
type Untyped = any;
|
|
2
|
-
interface PackageJson {
|
|
3
|
-
readonly name?: string;
|
|
4
|
-
readonly main?: string;
|
|
5
|
-
readonly exports?: string | Untyped;
|
|
6
|
-
}
|
|
7
|
-
interface PackageInfo {
|
|
8
|
-
readonly packageJson: PackageJson;
|
|
9
|
-
readonly rootPath: string;
|
|
10
|
-
}
|
|
11
|
-
type ResolveAsset = (dirPath: string, assetName: string, extension: string) => string[] | undefined;
|
|
12
|
-
interface ResolutionContext {
|
|
13
|
-
readonly assetExts: string[];
|
|
14
|
-
readonly allowHaste: boolean;
|
|
15
|
-
readonly customResolverOptions: Untyped;
|
|
16
|
-
readonly disableHierarchicalLookup: boolean;
|
|
17
|
-
readonly doesFileExist: Untyped;
|
|
18
|
-
readonly extraNodeModules?: {
|
|
19
|
-
[key: string]: string;
|
|
20
|
-
};
|
|
21
|
-
readonly getPackage: (packageJsonPath: string) => PackageJson | null;
|
|
22
|
-
readonly getPackageForModule: (modulePath: string) => PackageInfo | null;
|
|
23
|
-
readonly dependency?: any;
|
|
24
|
-
readonly mainFields: string[];
|
|
25
|
-
readonly originModulePath: string;
|
|
26
|
-
readonly nodeModulesPaths: string[];
|
|
27
|
-
readonly preferNativePlatform: boolean;
|
|
28
|
-
readonly resolveAsset: ResolveAsset;
|
|
29
|
-
readonly redirectModulePath: (modulePath: string) => string | false;
|
|
30
|
-
readonly resolveHasteModule: (name: string) => string | undefined;
|
|
31
|
-
readonly resolveHastePackage: (name: string) => string | undefined;
|
|
32
|
-
readonly resolveRequest?: CustomResolver;
|
|
33
|
-
readonly sourceExts: string[];
|
|
34
|
-
readonly unstable_conditionsByPlatform: {
|
|
35
|
-
[platform: string]: string[];
|
|
36
|
-
};
|
|
37
|
-
unstable_conditionNames: string[];
|
|
38
|
-
unstable_enablePackageExports: boolean;
|
|
39
|
-
unstable_getRealPath?: any;
|
|
40
|
-
unstable_logWarning: (message: string) => void;
|
|
41
|
-
}
|
|
42
|
-
export interface CustomResolutionContext extends ResolutionContext {
|
|
43
|
-
readonly resolveRequest: CustomResolver;
|
|
44
|
-
}
|
|
45
|
-
type CustomResolver = (context: CustomResolutionContext, moduleName: string, platform: string | null) => any;
|
|
46
|
-
interface ResolverConfig {
|
|
47
|
-
assetExts: string[];
|
|
48
|
-
assetResolutions: string[];
|
|
49
|
-
blacklistRE?: RegExp | RegExp[];
|
|
50
|
-
blockList: RegExp | RegExp[];
|
|
51
|
-
dependencyExtractor?: string;
|
|
52
|
-
disableHierarchicalLookup: boolean;
|
|
53
|
-
extraNodeModules: {
|
|
54
|
-
[name: string]: string;
|
|
55
|
-
};
|
|
56
|
-
emptyModulePath: string;
|
|
57
|
-
enableGlobalPackages: boolean;
|
|
58
|
-
hasteImplModulePath?: string;
|
|
59
|
-
nodeModulesPaths: string[];
|
|
60
|
-
platforms: string[];
|
|
61
|
-
resolveRequest?: CustomResolver;
|
|
62
|
-
resolverMainFields: string[];
|
|
63
|
-
sourceExts: string[];
|
|
64
|
-
unstable_enableSymlinks: boolean;
|
|
65
|
-
unstable_conditionNames: string[];
|
|
66
|
-
unstable_conditionsByPlatform: Readonly<{
|
|
67
|
-
[platform: string]: string[];
|
|
68
|
-
}>;
|
|
69
|
-
unstable_enablePackageExports: boolean;
|
|
70
|
-
useWatchman: boolean;
|
|
71
|
-
requireCycleIgnorePatterns: ReadonlyArray<RegExp>;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* 패키지에서 타입 정의 파일이 export 되어있지 않아 별도로 타입을 정의합니다.
|
|
75
|
-
*/
|
|
76
|
-
export interface MetroConfig {
|
|
77
|
-
readonly watchFolders?: string[];
|
|
78
|
-
readonly cacheStores?: any;
|
|
79
|
-
readonly resolver?: Partial<ResolverConfig>;
|
|
80
|
-
readonly server?: any;
|
|
81
|
-
readonly serializer?: object & {
|
|
82
|
-
getPolyfills?: () => string[];
|
|
83
|
-
};
|
|
84
|
-
readonly symbolicator?: any;
|
|
85
|
-
readonly transformer?: any;
|
|
86
|
-
readonly watcher?: any;
|
|
87
|
-
}
|
|
88
|
-
export {};
|
package/dist/metro/types.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
var types_exports = {};
|
|
16
|
-
module.exports = __toCommonJS(types_exports);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { DevServerPlugin } from '../../server/types';
|
|
2
|
-
import type { DevServerConfig } from '../../types/DevServerConfig';
|
|
3
|
-
interface RunServerArgs {
|
|
4
|
-
appName: string;
|
|
5
|
-
scheme: string;
|
|
6
|
-
devServerConfig: DevServerConfig;
|
|
7
|
-
host?: string;
|
|
8
|
-
port?: number;
|
|
9
|
-
preloadBundle?: string;
|
|
10
|
-
plugins?: DevServerPlugin[];
|
|
11
|
-
onServerReady?: () => Promise<void> | void;
|
|
12
|
-
}
|
|
13
|
-
export declare function experimental_runServer({ appName, scheme, devServerConfig, host, port, plugins, preloadBundle, onServerReady, }: RunServerArgs): Promise<{
|
|
14
|
-
cleanup: () => Promise<void>;
|
|
15
|
-
}>;
|
|
16
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BundlerConfig, Config, PluginFactory } from '../types';
|
|
2
|
-
interface RunBundleOptions {
|
|
3
|
-
rootDir: BundlerConfig['rootDir'];
|
|
4
|
-
dev: BundlerConfig['dev'];
|
|
5
|
-
cache: BundlerConfig['cache'];
|
|
6
|
-
metafile: BundlerConfig['metafile'];
|
|
7
|
-
plugins?: PluginFactory[];
|
|
8
|
-
tag?: string;
|
|
9
|
-
config?: Config;
|
|
10
|
-
}
|
|
11
|
-
export declare function runBundle(options: RunBundleOptions): Promise<import("..").BuildResult[]>;
|
|
12
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { HandleFunction } from 'connect';
|
|
2
|
-
import { Config } from '..';
|
|
3
|
-
import { type AdditionalMetroConfig } from '../metro/getMetroConfig';
|
|
4
|
-
interface RunServerConfig {
|
|
5
|
-
host?: string;
|
|
6
|
-
port?: number;
|
|
7
|
-
middlewares?: HandleFunction[];
|
|
8
|
-
enableEmbeddedReactDevTools?: boolean;
|
|
9
|
-
onServerReady?: () => Promise<void> | void;
|
|
10
|
-
cwd?: string;
|
|
11
|
-
config?: Config;
|
|
12
|
-
additionalConfig?: AdditionalMetroConfig;
|
|
13
|
-
}
|
|
14
|
-
export declare function runServer({ host, port, middlewares, enableEmbeddedReactDevTools, onServerReady, cwd, config: $config, additionalConfig, }: RunServerConfig): Promise<void>;
|
|
15
|
-
export {};
|
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
import * as swc from '@swc/core';
|
|
2
|
-
import * as esbuild from 'esbuild';
|
|
3
|
-
export interface BuildConfig {
|
|
4
|
-
/**
|
|
5
|
-
* 빌드 타겟 플랫폼
|
|
6
|
-
*/
|
|
7
|
-
platform: 'ios' | 'android';
|
|
8
|
-
/**
|
|
9
|
-
* 빌드 진입점 파일 경로
|
|
10
|
-
*/
|
|
11
|
-
entry: string;
|
|
12
|
-
/**
|
|
13
|
-
* 빌드 결과 파일 경로
|
|
14
|
-
*/
|
|
15
|
-
outfile: string;
|
|
16
|
-
/**
|
|
17
|
-
* 소스맵 결과 파일 경로
|
|
18
|
-
*
|
|
19
|
-
* @default `${outfile}.map`
|
|
20
|
-
*/
|
|
21
|
-
sourcemapOutfile?: string;
|
|
22
|
-
/**
|
|
23
|
-
* 모듈 resolution 구성
|
|
24
|
-
*/
|
|
25
|
-
resolver?: {
|
|
26
|
-
/**
|
|
27
|
-
* 의존성 alias 구성
|
|
28
|
-
*/
|
|
29
|
-
alias?: AliasConfig[];
|
|
30
|
-
/**
|
|
31
|
-
* 커스텀 모듈 Protocol 구성
|
|
32
|
-
*/
|
|
33
|
-
protocols?: ProtocolConfig;
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* 커스텀 Transform 구성
|
|
37
|
-
*/
|
|
38
|
-
transformSync?: (id: string, code: string) => string;
|
|
39
|
-
transformAsync?: (id: string, code: string) => Promise<string>;
|
|
40
|
-
/**
|
|
41
|
-
* esbuild 구성
|
|
42
|
-
*/
|
|
43
|
-
esbuild?: esbuild.BuildOptions & {
|
|
44
|
-
/**
|
|
45
|
-
* Entry point 최상단에 주입할 스크립트 경로
|
|
46
|
-
*
|
|
47
|
-
* esbuild.inject 옵션에 추가한 스크립트의 경우 entry-point 모듈에만 주입되는 것이 아니라 모든 모듈에 주입되는 문제가 있음.
|
|
48
|
-
* entry-point 모듈의 최상단에만 코드를 주입하도록 별도 옵션을 구성합니다.
|
|
49
|
-
*
|
|
50
|
-
* - 의도한 것과 같이 entry-point 모듈 최상단에 1회만 주입(import)됩니다
|
|
51
|
-
* - 중복되는 inject 스크립트가 제거되어 번들 크기가 작아집니다
|
|
52
|
-
*
|
|
53
|
-
* @see issue {@link https://github.com/evanw/esbuild/issues/475}
|
|
54
|
-
*/
|
|
55
|
-
prelude?: string[];
|
|
56
|
-
};
|
|
57
|
-
/**
|
|
58
|
-
* 커스텀 babel 구성
|
|
59
|
-
*/
|
|
60
|
-
babel?: {
|
|
61
|
-
/**
|
|
62
|
-
* Babel transform 처리를 위한 규칙 리스트
|
|
63
|
-
* (속도가 느리기 때문에 특정 조건이 충족할 때에만 transform 하기 위한 옵션)
|
|
64
|
-
*
|
|
65
|
-
* 모든 규칙이 `false`를 반환할 경우 Babel transform 과정을 건너뜁니다
|
|
66
|
-
*/
|
|
67
|
-
conditions?: Array<(code: string, path: string) => boolean>;
|
|
68
|
-
configFile?: string;
|
|
69
|
-
presets?: string[];
|
|
70
|
-
plugins?: (string | [string, any])[];
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* 커스텀 swc 구성
|
|
74
|
-
*/
|
|
75
|
-
swc?: {
|
|
76
|
-
/**
|
|
77
|
-
* 플러그인 바이너리(wasm) 경로, 플러그인 구성
|
|
78
|
-
*/
|
|
79
|
-
plugins?: NonNullable<swc.JscConfig['experimental']>['plugins'];
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* 추가 데이터
|
|
83
|
-
*
|
|
84
|
-
* 작업 결과 데이터에 포함되며, 특정 값을 기반으로 후처리 하기 위한 목적으로 사용
|
|
85
|
-
* (eg. 프리셋에서 특정 extra 데이터를 추가해주고, 결과에서 어떤 프리셋으로 빌드되었는지 구분)
|
|
86
|
-
*
|
|
87
|
-
* ```js
|
|
88
|
-
* const result = new Bundler({
|
|
89
|
-
* bundlerConfig: {
|
|
90
|
-
* buildConfig: {
|
|
91
|
-
* extra: {
|
|
92
|
-
* reanimated: 3,
|
|
93
|
-
* },
|
|
94
|
-
* },
|
|
95
|
-
* },
|
|
96
|
-
* ...
|
|
97
|
-
* }).build();
|
|
98
|
-
*
|
|
99
|
-
* if (result.extra?.reanimated === 3) {
|
|
100
|
-
* // reav3 에 대한 빌드 결과물 처리
|
|
101
|
-
* }
|
|
102
|
-
* ```
|
|
103
|
-
*/
|
|
104
|
-
extra?: any;
|
|
105
|
-
}
|
|
106
|
-
export interface AliasConfig {
|
|
107
|
-
/**
|
|
108
|
-
* 치환 대상 모듈 경로
|
|
109
|
-
*/
|
|
110
|
-
from: string;
|
|
111
|
-
/**
|
|
112
|
-
* 치환할 모듈 경로 혹은 모듈 경로를 반환하는 함수
|
|
113
|
-
*/
|
|
114
|
-
to: string | ((context: {
|
|
115
|
-
args: esbuild.OnResolveArgs;
|
|
116
|
-
resolve: esbuild.PluginBuild['resolve'];
|
|
117
|
-
}) => string | Promise<string>);
|
|
118
|
-
/**
|
|
119
|
-
* - `false`: (기본값) subpath 가 존재해도 치환합니다 (`^name(?:$|/)`)
|
|
120
|
-
* - `true`: 완벽히 일치하는 대상만 치환합니다 (`^name$`)
|
|
121
|
-
*
|
|
122
|
-
* ```js
|
|
123
|
-
* const config = {
|
|
124
|
-
* alias: [
|
|
125
|
-
* { from: 'react-native', to: 'react-native-0.68' },
|
|
126
|
-
* { from: 'react', to: 'react-17', exact: true },
|
|
127
|
-
* ],
|
|
128
|
-
* };
|
|
129
|
-
*
|
|
130
|
-
* // AS IS
|
|
131
|
-
* import * as RN from 'react-native';
|
|
132
|
-
* import 'react-native/Libraries/Core/InitializeCore';
|
|
133
|
-
* import React from 'react';
|
|
134
|
-
* import runtime from 'react/runtime';
|
|
135
|
-
*
|
|
136
|
-
* // TO BE
|
|
137
|
-
* import * as RN from 'react-native-0.68';
|
|
138
|
-
* import 'react-native-0.68/Libraries/Core/InitializeCore';
|
|
139
|
-
* import React from 'react-17';
|
|
140
|
-
* import runtime from 'react/runtime'; // exact
|
|
141
|
-
* ```
|
|
142
|
-
*/
|
|
143
|
-
exact?: boolean;
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* 커스텀 프로토콜 Resolve 구성
|
|
147
|
-
*
|
|
148
|
-
* 지정한 프로토콜로 참조하는 모듈을 직접 resolve, load 할 수 있도록 구성하는 옵션입니다
|
|
149
|
-
*
|
|
150
|
-
* ```ts
|
|
151
|
-
* // AS-IS
|
|
152
|
-
* import mod from 'custom-protocol:/path/to/module';
|
|
153
|
-
*
|
|
154
|
-
* // TO-BE
|
|
155
|
-
* // `custom-protocol:/path/to/module` 모듈은 아래와 같이 처리됨
|
|
156
|
-
* export default global.__import('/path/to/module');
|
|
157
|
-
* ```
|
|
158
|
-
*
|
|
159
|
-
* 구성 예시
|
|
160
|
-
*
|
|
161
|
-
* ```ts
|
|
162
|
-
* {
|
|
163
|
-
* 'custom-protocol': {
|
|
164
|
-
* resolve: (args) => args.path,
|
|
165
|
-
* load: (args) => {
|
|
166
|
-
* return { loader: 'ts', contents: `export default global.__import('${args.path}')` };
|
|
167
|
-
* },
|
|
168
|
-
* },
|
|
169
|
-
* }
|
|
170
|
-
* ```
|
|
171
|
-
*/
|
|
172
|
-
export interface ProtocolConfig {
|
|
173
|
-
[name: string]: {
|
|
174
|
-
/**
|
|
175
|
-
* Resolve 할 모듈 경로
|
|
176
|
-
*/
|
|
177
|
-
resolve?: (args: esbuild.OnResolveArgs) => string | Promise<string>;
|
|
178
|
-
/**
|
|
179
|
-
* Resolve 된 경로를 기준으로 모듈 코드를 반환
|
|
180
|
-
*/
|
|
181
|
-
load: (args: esbuild.OnLoadArgs) => esbuild.OnLoadResult | Promise<esbuild.OnLoadResult>;
|
|
182
|
-
};
|
|
183
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
var BuildConfig_exports = {};
|
|
16
|
-
module.exports = __toCommonJS(BuildConfig_exports);
|
package/dist/types/Config.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { DevServerConfig } from './DevServerConfig';
|
|
2
|
-
import type { ServicesConfig } from './ServicesConfig';
|
|
3
|
-
import type { TaskConfig } from './TaskConfig';
|
|
4
|
-
export interface Config {
|
|
5
|
-
appName: string;
|
|
6
|
-
scheme: string;
|
|
7
|
-
commands?: unknown[];
|
|
8
|
-
concurrency?: number;
|
|
9
|
-
tasks: TaskConfig[];
|
|
10
|
-
devServer?: DevServerConfig;
|
|
11
|
-
services?: ServicesConfig;
|
|
12
|
-
}
|
package/dist/types/Config.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
var Config_exports = {};
|
|
16
|
-
module.exports = __toCommonJS(Config_exports);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
var DevServerConfig_exports = {};
|
|
16
|
-
module.exports = __toCommonJS(DevServerConfig_exports);
|
package/dist/types/Preset.d.ts
DELETED
package/dist/types/Preset.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
var Preset_exports = {};
|
|
16
|
-
module.exports = __toCommonJS(Preset_exports);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
var PresetContext_exports = {};
|
|
16
|
-
module.exports = __toCommonJS(PresetContext_exports);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
var ServicesConfig_exports = {};
|
|
16
|
-
module.exports = __toCommonJS(ServicesConfig_exports);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { BuildConfig } from './BuildConfig';
|
|
2
|
-
import type { Preset } from './Preset';
|
|
3
|
-
export type INTERNAL__Id = string & {
|
|
4
|
-
__id: true;
|
|
5
|
-
};
|
|
6
|
-
export interface TaskConfig {
|
|
7
|
-
/**
|
|
8
|
-
* 작업 식별자
|
|
9
|
-
*/
|
|
10
|
-
tag: string;
|
|
11
|
-
/**
|
|
12
|
-
* Mpack 내에 사전 구성된 프리셋
|
|
13
|
-
*/
|
|
14
|
-
presets?: Preset[];
|
|
15
|
-
build: BuildConfig;
|
|
16
|
-
}
|
package/dist/types/TaskConfig.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
var TaskConfig_exports = {};
|
|
16
|
-
module.exports = __toCommonJS(TaskConfig_exports);
|