@makoojs/cli 0.4.1 → 0.5.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/README.CN.md +48 -387
- package/README.md +48 -387
- package/dist/bin.js +594 -1141
- package/dist/cli/commands/build.d.ts +2 -0
- package/dist/cli/commands/dev/DevTerminal.d.ts +51 -0
- package/dist/cli/commands/dev/dev.d.ts +2 -0
- package/dist/cli/commands/preview.d.ts +2 -0
- package/dist/cli/injections/renderInjections.d.ts +2 -0
- package/dist/{shared → cli}/terminalColor.d.ts +2 -0
- package/dist/cli/version.d.ts +1 -0
- package/dist/config/defaults.d.ts +3 -24
- package/dist/config/errors.d.ts +3 -0
- package/dist/config/resolve.d.ts +6 -18
- package/dist/config/types.d.ts +8 -106
- package/dist/config/validation.d.ts +4 -7
- package/dist/index.cjs +89 -38
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1008 -3255
- package/dist/session/DevSession.d.ts +14 -0
- package/dist/session/types.d.ts +47 -0
- package/dist/vite/makoo.d.ts +3 -0
- package/dist/vite/makooDev.d.ts +7 -0
- package/package.json +8 -13
- package/dist/command/_util.d.ts +0 -8
- package/dist/command/add.d.ts +0 -1
- package/dist/command/build.d.ts +0 -1
- package/dist/command/dev.d.ts +0 -1
- package/dist/command/inspect.d.ts +0 -35
- package/dist/config/config.d.ts +0 -3
- package/dist/error/MakooCliError.d.ts +0 -58
- package/dist/generator/generator.d.ts +0 -3
- package/dist/generator/render/import/importAdapter.d.ts +0 -3
- package/dist/generator/render/import/importComp.d.ts +0 -3
- package/dist/generator/render/import/importMakooRuntime.d.ts +0 -1
- package/dist/generator/render/import/importManifest.d.ts +0 -3
- package/dist/generator/render/import/importRuntimeSetup.d.ts +0 -1
- package/dist/generator/render/init/initMakooRuntime.d.ts +0 -4
- package/dist/generator/render/init/registerComp.d.ts +0 -3
- package/dist/generator/render/init/registerListener.d.ts +0 -4
- package/dist/generator/render/run/renderMakooStart.d.ts +0 -1
- package/dist/generator/render/util/match.d.ts +0 -1
- package/dist/generator/render/util/value.d.ts +0 -1
- package/dist/generator/types.d.ts +0 -27
- package/dist/manifest/index.cjs +0 -1
- package/dist/manifest/index.d.ts +0 -2
- package/dist/manifest/index.js +0 -7
- package/dist/scanner/collectDependenics.d.ts +0 -2
- package/dist/scanner/load/loadManifes.d.ts +0 -3
- package/dist/scanner/load/loadMeta.d.ts +0 -2
- package/dist/scanner/manifestBinding.d.ts +0 -14
- package/dist/scanner/scanner.d.ts +0 -3
- package/dist/scanner/types.d.ts +0 -50
- package/dist/scanner/util.d.ts +0 -2
- package/dist/scanner/validation.d.ts +0 -190
- package/dist/vitePlugin/hmrController.d.ts +0 -6
- package/dist/vitePlugin/makoo.d.ts +0 -3
- package/dist/vitePlugin/makooMonkey.d.ts +0 -3
- package/dist/vitePlugin/types.d.ts +0 -18
- package/dist/vitePlugin/virtualModule.d.ts +0 -2
- package/dist/vitePlugin/watchList.d.ts +0 -5
- /package/dist/{command → cli}/bin.d.ts +0 -0
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Plugin } from 'vite';
|
|
2
|
-
import { CliConfig, ResolvedConfig } from '../config/types';
|
|
3
|
-
export type MakooMonkeyPlugin = Plugin & {
|
|
4
|
-
__makoo: ResolvedConfig;
|
|
5
|
-
};
|
|
6
|
-
export type WatchTargets = {
|
|
7
|
-
files: string[];
|
|
8
|
-
dirs: string[];
|
|
9
|
-
};
|
|
10
|
-
export type MakooOptions = CliConfig & {
|
|
11
|
-
root?: string;
|
|
12
|
-
};
|
|
13
|
-
export type StructuralChangeKind = 'top-level-manifest' | 'manifest-dependency' | 'module-manifest-dependency' | 'runtime-setup' | 'runtime-dependency' | 'module-manifest';
|
|
14
|
-
export type StructuralHmrPayload = {
|
|
15
|
-
file: string;
|
|
16
|
-
reason: StructuralChangeKind;
|
|
17
|
-
timestamp: number;
|
|
18
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ScannerResult } from '../scanner/types';
|
|
2
|
-
import { StructuralChangeKind, WatchTargets } from './types';
|
|
3
|
-
export declare function getWatchTargets(scanResult: ScannerResult): WatchTargets;
|
|
4
|
-
export declare function isStructuralChange(changedFile: string, scanResult: ScannerResult): boolean;
|
|
5
|
-
export declare function classifyStructuralChange(changedFile: string, scanResult: ScannerResult): StructuralChangeKind | null;
|
|
File without changes
|