@moneko/core 3.54.0-beta.2 → 3.54.0-beta.4
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/lib/bin/build.mjs +1 -1
- package/lib/bin/changelog.mjs +2 -2
- package/lib/bin/commit-lint.mjs +1 -1
- package/lib/bin/pure-lint.mjs +1 -1
- package/lib/bin/start.mjs +1 -1
- package/lib/build.mjs +2 -2
- package/lib/commom/ca.mjs +1 -1
- package/lib/commom/diff-object.mjs +1 -1
- package/lib/commom/transform-solid-js.mjs +1 -1
- package/lib/dev/mock.mjs +1 -1
- package/lib/dev/server.mjs +1 -1
- package/lib/dev.mjs +2 -2
- package/lib/loader/css-in-js-minify.cjs +1 -1
- package/lib/loader/lightning-css/codegen.cjs +13 -13
- package/lib/loader/lightning-css/loader.cjs +1 -1
- package/lib/loader/lightning-css/runtime/get-url.cjs +1 -1
- package/lib/loader/lightning-css/utils.cjs +1 -1
- package/lib/loader/solid.cjs +1 -1
- package/lib/loader/ts-doc.cjs +1 -1
- package/lib/module.config.mjs +1 -1
- package/lib/options/md-to-html.mjs +1 -1
- package/lib/plugin/compression.mjs +1 -1
- package/lib/plugin/copy.mjs +1 -1
- package/lib/plugin/lightningcss-plugin.mjs +1 -1
- package/lib/plugin/swc-minify-plugin.mjs +1 -1
- package/lib/utils/create-types.mjs +1 -1
- package/lib/utils/fetch-module-federation-dts.mjs +1 -1
- package/lib/vm/docs.mjs +1 -1
- package/lib/vm/generate-doc.mjs +1 -1
- package/lib/worker/eslint.mjs +1 -1
- package/lib/worker/react-compiler.mjs +1 -1
- package/package.json +4 -4
- package/typings/global.d.ts +1 -1
- package/lib/bin/build-app.d.mts +0 -11
- package/lib/bin/build.d.mts +0 -13
- package/lib/bin/changelog.d.mts +0 -12
- package/lib/bin/commit-lint.d.mts +0 -43
- package/lib/bin/eslint.d.mts +0 -6
- package/lib/bin/file.d.mts +0 -4
- package/lib/bin/git-hooks.d.mts +0 -5
- package/lib/bin/help.d.mts +0 -85
- package/lib/bin/index.d.mts +0 -6
- package/lib/bin/lessc.d.mts +0 -10
- package/lib/bin/pin.d.mts +0 -39
- package/lib/bin/pure-lint.d.mts +0 -32
- package/lib/bin/server.d.mts +0 -14
- package/lib/bin/setup.d.mts +0 -5
- package/lib/bin/start.d.mts +0 -5
- package/lib/bin/stylelint.d.mts +0 -7
- package/lib/bin/tsc.d.mts +0 -6
- package/lib/bin/utils/bundle-app.d.mts +0 -7
- package/lib/bin/utils/config.d.mts +0 -13
- package/lib/bin/utils/convert-solid.d.mts +0 -31
- package/lib/bin/utils/convert-solid.mjs +0 -1
- package/lib/bin/utils/get-commit-files.d.mts +0 -3
- package/lib/bin/utils/setup-swcrc.d.mts +0 -4
- package/lib/build/common.d.mts +0 -12
- package/lib/build/server.d.mts +0 -8
- package/lib/build.d.mts +0 -16
- package/lib/commom/ca.d.mts +0 -17
- package/lib/commom/check-npm.d.mts +0 -4
- package/lib/commom/corepack.d.mts +0 -12
- package/lib/commom/diff-object.d.mts +0 -2
- package/lib/commom/esm.d.mts +0 -2
- package/lib/commom/has-pkg.d.mts +0 -3
- package/lib/commom/host.d.mts +0 -3
- package/lib/commom/is-ci-environment.d.mts +0 -3
- package/lib/commom/log.d.mts +0 -7
- package/lib/commom/match-path.d.mts +0 -6
- package/lib/commom/mime.d.mts +0 -2
- package/lib/commom/module-resolve.d.mts +0 -3
- package/lib/commom/net.d.mts +0 -4
- package/lib/commom/open.d.mts +0 -5
- package/lib/commom/parse-args.d.mts +0 -2
- package/lib/commom/parse-module-meta.d.mts +0 -11
- package/lib/commom/paths.d.mts +0 -36
- package/lib/commom/print-log.d.mts +0 -16
- package/lib/commom/reactive-object.d.mts +0 -10
- package/lib/commom/require.d.mts +0 -8
- package/lib/commom/rule.d.mts +0 -20
- package/lib/commom/setup-env.d.mts +0 -4
- package/lib/commom/sigint-exit.d.mts +0 -3
- package/lib/commom/timer.d.mts +0 -12
- package/lib/commom/transform-solid-js.d.mts +0 -41
- package/lib/common.d.mts +0 -16
- package/lib/config.d.mts +0 -28
- package/lib/dev/config.d.mts +0 -14
- package/lib/dev/generate-progress-html.d.mts +0 -6
- package/lib/dev/get-cert.d.mts +0 -10
- package/lib/dev/json-schema.d.mts +0 -72
- package/lib/dev/mock.d.mts +0 -61
- package/lib/dev/proxy.d.mts +0 -19
- package/lib/dev/server.d.mts +0 -34
- package/lib/dev.d.mts +0 -48
- package/lib/file-system.d.mts +0 -2
- package/lib/index.d.mts +0 -24
- package/lib/lint/eslint/base.d.mts +0 -2
- package/lib/lint/eslint/index.d.mts +0 -2
- package/lib/lint/eslint/react.d.mts +0 -2
- package/lib/lint/eslint/solid.d.mts +0 -2
- package/lib/lint/eslint/vue.d.mts +0 -2
- package/lib/lint/stylelint/config.d.mts +0 -2
- package/lib/lint/stylelint/index.d.mts +0 -1
- package/lib/loader/css-in-js-minify.d.cts +0 -22
- package/lib/loader/lightning-css/codegen.d.cts +0 -36
- package/lib/loader/lightning-css/loader.d.cts +0 -49
- package/lib/loader/lightning-css/runtime/api.d.cts +0 -3
- package/lib/loader/lightning-css/runtime/get-url.d.cts +0 -9
- package/lib/loader/lightning-css/utils.d.cts +0 -26
- package/lib/loader/mdx.d.cts +0 -4
- package/lib/loader/react-compiler.d.cts +0 -21
- package/lib/loader/solid.d.cts +0 -9
- package/lib/loader/ts-doc.d.cts +0 -11
- package/lib/module.config.d.mts +0 -49
- package/lib/options/css-extract.d.mts +0 -9
- package/lib/options/jsx-dom-expressions.d.mts +0 -10
- package/lib/options/md-to-html.d.mts +0 -5
- package/lib/options/modify-vars.d.mts +0 -11
- package/lib/options/reslove.d.mts +0 -11
- package/lib/options/split-chunk.d.mts +0 -6
- package/lib/options/swcrc.d.mts +0 -21
- package/lib/plugin/compression.d.mts +0 -17
- package/lib/plugin/copy.d.mts +0 -21
- package/lib/plugin/done.d.mts +0 -11
- package/lib/plugin/eslint.d.mts +0 -22
- package/lib/plugin/exposes-declararion.d.mts +0 -20
- package/lib/plugin/external-remotes.d.mts +0 -8
- package/lib/plugin/html-plugin.d.mts +0 -48
- package/lib/plugin/lightningcss-plugin.d.mts +0 -31
- package/lib/plugin/manifest.d.mts +0 -43
- package/lib/plugin/module-federation.d.mts +0 -21
- package/lib/plugin/override-resolve.d.mts +0 -14
- package/lib/plugin/stylelint.d.mts +0 -21
- package/lib/plugin/swc-minify-plugin.d.mts +0 -13
- package/lib/plugin/virtual-module.d.mts +0 -24
- package/lib/plugins.config.d.mts +0 -12
- package/lib/polyfills/polyfills.d.mts +0 -7
- package/lib/polyfills/replace-children.d.mts +0 -1
- package/lib/polyfills/targets.d.mts +0 -8
- package/lib/process-env.d.mts +0 -26
- package/lib/utils/compile-dts.d.mts +0 -9
- package/lib/utils/create-types.d.mts +0 -15
- package/lib/utils/dts.d.mts +0 -5
- package/lib/utils/fetch-module-federation-dts.d.mts +0 -6
- package/lib/utils/index.d.mts +0 -12
- package/lib/utils/run.d.mts +0 -3
- package/lib/utils/seo.d.mts +0 -10
- package/lib/utils/svg-to-data-uri.d.mts +0 -59
- package/lib/utils/vts.d.mts +0 -10
- package/lib/vm/coverage.d.mts +0 -39
- package/lib/vm/docs.d.mts +0 -18
- package/lib/vm/example.d.mts +0 -12
- package/lib/vm/generate-doc.d.mts +0 -35
- package/lib/vm/info.d.mts +0 -5
- package/lib/vm/locales.d.mts +0 -29
- package/lib/vm/modules.d.mts +0 -27
- package/lib/vm/render-app.d.mts +0 -11
- package/lib/vm/routes.d.mts +0 -17
- package/lib/vm/utils.d.mts +0 -5
- package/lib/worker/dts.d.mts +0 -2
- package/lib/worker/eslint.d.mts +0 -7
- package/lib/worker/react-compiler.d.mts +0 -20
- package/lib/worker/stylelint.d.mts +0 -5
- package/lib/worker/swc-minify.d.mts +0 -2
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { request } from '@moneko/request';
|
|
2
|
-
import { updateFile } from '@moneko/utils';
|
|
3
|
-
import log from '../commom/log.mjs';
|
|
4
|
-
import { node_modules } from './index.mjs';
|
|
5
|
-
declare async function fetchModuleFederationDts(host: string, name: string);
|
|
6
|
-
export default fetchModuleFederationDts;
|
package/lib/utils/index.d.mts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { resolve } from 'node:path';
|
|
2
|
-
import paths from '../commom/paths.mjs';
|
|
3
|
-
export declare function toCamelCase(str: string): string;
|
|
4
|
-
export declare function convertToCamelCase(name: string): string;
|
|
5
|
-
type ProgramPath<T extends string> = `${T extends string ? T : string}`;
|
|
6
|
-
export declare function resolveProgram<T extends string>(src: T): ProgramPath<T>;
|
|
7
|
-
export declare function node_modules<T extends string>(name: T): `node_modules/${T}`;
|
|
8
|
-
export declare function isObject(target: unknown): target is object;
|
|
9
|
-
type AnyFunction = (...a: any[]) => any;
|
|
10
|
-
export declare function isFunction<T>(target: T): target is T & AnyFunction;
|
|
11
|
-
export declare function transformModule(obj: object | string);
|
|
12
|
-
export declare function empty();
|
package/lib/utils/run.d.mts
DELETED
package/lib/utils/seo.d.mts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { join } from 'node:path';
|
|
2
|
-
import { scanRouter, sitemap } from '@moneko/mdx';
|
|
3
|
-
import { saveFileSync } from '@moneko/utils';
|
|
4
|
-
import { routeDir } from '../commom/paths.mjs';
|
|
5
|
-
import { outputConfig } from '../common.mjs';
|
|
6
|
-
import { CONFIG } from '../config.mjs';
|
|
7
|
-
import { isLibrary } from '../process-env.mjs';
|
|
8
|
-
import { resolveProgram } from './index.mjs';
|
|
9
|
-
declare const seo: () => any;
|
|
10
|
-
export default seo;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
declare const shorterNames: {
|
|
2
|
-
readonly aqua: RegExp;
|
|
3
|
-
readonly azure: RegExp;
|
|
4
|
-
readonly beige: RegExp;
|
|
5
|
-
readonly bisque: RegExp;
|
|
6
|
-
readonly black: RegExp;
|
|
7
|
-
readonly blue: RegExp;
|
|
8
|
-
readonly brown: RegExp;
|
|
9
|
-
readonly coral: RegExp;
|
|
10
|
-
readonly cornsilk: RegExp;
|
|
11
|
-
readonly crimson: RegExp;
|
|
12
|
-
readonly cyan: RegExp;
|
|
13
|
-
readonly darkblue: RegExp;
|
|
14
|
-
readonly darkcyan: RegExp;
|
|
15
|
-
readonly darkgrey: RegExp;
|
|
16
|
-
readonly darkred: RegExp;
|
|
17
|
-
readonly deeppink: RegExp;
|
|
18
|
-
readonly dimgrey: RegExp;
|
|
19
|
-
readonly gold: RegExp;
|
|
20
|
-
readonly green: RegExp;
|
|
21
|
-
readonly grey: RegExp;
|
|
22
|
-
readonly honeydew: RegExp;
|
|
23
|
-
readonly hotpink: RegExp;
|
|
24
|
-
readonly indigo: RegExp;
|
|
25
|
-
readonly ivory: RegExp;
|
|
26
|
-
readonly khaki: RegExp;
|
|
27
|
-
readonly lavender: RegExp;
|
|
28
|
-
readonly lime: RegExp;
|
|
29
|
-
readonly linen: RegExp;
|
|
30
|
-
readonly maroon: RegExp;
|
|
31
|
-
readonly moccasin: RegExp;
|
|
32
|
-
readonly navy: RegExp;
|
|
33
|
-
readonly oldlace: RegExp;
|
|
34
|
-
readonly olive: RegExp;
|
|
35
|
-
readonly orange: RegExp;
|
|
36
|
-
readonly orchid: RegExp;
|
|
37
|
-
readonly peru: RegExp;
|
|
38
|
-
readonly pink: RegExp;
|
|
39
|
-
readonly plum: RegExp;
|
|
40
|
-
readonly purple: RegExp;
|
|
41
|
-
readonly red: RegExp;
|
|
42
|
-
readonly salmon: RegExp;
|
|
43
|
-
readonly seagreen: RegExp;
|
|
44
|
-
readonly seashell: RegExp;
|
|
45
|
-
readonly sienna: RegExp;
|
|
46
|
-
readonly silver: RegExp;
|
|
47
|
-
readonly skyblue: RegExp;
|
|
48
|
-
readonly snow: RegExp;
|
|
49
|
-
readonly tan: RegExp;
|
|
50
|
-
readonly teal: RegExp;
|
|
51
|
-
readonly thistle: RegExp;
|
|
52
|
-
readonly tomato: RegExp;
|
|
53
|
-
readonly violet: RegExp;
|
|
54
|
-
readonly wheat: RegExp;
|
|
55
|
-
readonly white: RegExp;
|
|
56
|
-
};
|
|
57
|
-
declare function colorCodeToShorterNames(str: string);
|
|
58
|
-
declare function svgToDataUri(svgString: string);
|
|
59
|
-
export default svgToDataUri;
|
package/lib/utils/vts.d.mts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { createContext, Script } from 'node:vm';
|
|
2
|
-
import { type Options, transformFileSync } from '@swc/core';
|
|
3
|
-
import require from '../commom/require.mjs';
|
|
4
|
-
import * as monekoCore from '../index.mjs';
|
|
5
|
-
declare const transformOption: Options;
|
|
6
|
-
interface VfsOptions {
|
|
7
|
-
namedExport?: boolean;
|
|
8
|
-
modules: Record<string, any>;
|
|
9
|
-
}
|
|
10
|
-
export declare function vts<T>(filepath: string, options?: VfsOptions): T;
|
package/lib/vm/coverage.d.mts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { fileExists, parseXml } from '@moneko/utils';
|
|
2
|
-
import { PACKAGENAME } from '../process-env.mjs';
|
|
3
|
-
type CoverageType = {
|
|
4
|
-
statements: string;
|
|
5
|
-
coveredstatements: string;
|
|
6
|
-
conditionals: string;
|
|
7
|
-
coveredconditionals: string;
|
|
8
|
-
methods: string;
|
|
9
|
-
coveredmethods: string;
|
|
10
|
-
};
|
|
11
|
-
type ProjectCoverageType = {
|
|
12
|
-
elements: string;
|
|
13
|
-
coveredelements: string;
|
|
14
|
-
complexity: string;
|
|
15
|
-
loc: string;
|
|
16
|
-
ncloc: string;
|
|
17
|
-
packages: string;
|
|
18
|
-
files: string;
|
|
19
|
-
classes: string;
|
|
20
|
-
};
|
|
21
|
-
type CoverageResult = {
|
|
22
|
-
coverage: {
|
|
23
|
-
project: {
|
|
24
|
-
metrics: {
|
|
25
|
-
$: object;
|
|
26
|
-
};
|
|
27
|
-
package: {
|
|
28
|
-
$: {
|
|
29
|
-
name: string;
|
|
30
|
-
};
|
|
31
|
-
metrics: {
|
|
32
|
-
$: string;
|
|
33
|
-
};
|
|
34
|
-
}[];
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
declare function getCoverage(coveragePath: string);
|
|
39
|
-
export default getCoverage;
|
package/lib/vm/docs.d.mts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { relative, sep } from 'node:path';
|
|
2
|
-
import { loadFile, scanFolderSync } from '@moneko/utils';
|
|
3
|
-
import parseModuleMeta, { type ModuleMeta } from '../commom/parse-module-meta.mjs';
|
|
4
|
-
import paths from '../commom/paths.mjs';
|
|
5
|
-
import ReactiveObject from '../commom/reactive-object.mjs';
|
|
6
|
-
import Rule from '../commom/rule.mjs';
|
|
7
|
-
import { CONFIG } from '../config.mjs';
|
|
8
|
-
import { FRAMEWORK, framework, isLibrary, isReact, isSolid } from '../process-env.mjs';
|
|
9
|
-
import generateDoc from './generate-doc.mjs';
|
|
10
|
-
declare const createElement: string;
|
|
11
|
-
declare const moduleMeta: ModuleMeta;
|
|
12
|
-
export declare const docsModuleName: string;
|
|
13
|
-
export declare const docsModulePkgJson: string;
|
|
14
|
-
export declare const docsModuleMeta: string;
|
|
15
|
-
export declare const docs: ReactiveObject<Record<string, string>>;
|
|
16
|
-
export declare const comment: ReactiveObject<Record<string, string>>;
|
|
17
|
-
declare function commentPath();
|
|
18
|
-
export declare const getCommentPath: (file: string) => string;
|
package/lib/vm/example.d.mts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { generateExample } from '@moneko/mdx';
|
|
2
|
-
import parseModuleMeta from '../commom/parse-module-meta.mjs';
|
|
3
|
-
import paths from '../commom/paths.mjs';
|
|
4
|
-
import ReactiveObject from '../commom/reactive-object.mjs';
|
|
5
|
-
import Rule from '../commom/rule.mjs';
|
|
6
|
-
import { CONFIG } from '../config.mjs';
|
|
7
|
-
import { isDev, isLibrary } from '../process-env.mjs';
|
|
8
|
-
import { watchFiles } from './utils.mjs';
|
|
9
|
-
export declare const exampleModuleName: string;
|
|
10
|
-
declare function getExample();
|
|
11
|
-
export declare const examples: ReactiveObject<Record<string, string>>;
|
|
12
|
-
export declare function generatorExample();
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { dirname } from 'node:path';
|
|
2
|
-
import ts, { type EnumDeclaration, type EnumMember, type InterfaceDeclaration, type MethodSignature, type PropertySignature } from 'typescript';
|
|
3
|
-
import { CONFIG } from '../config.mjs';
|
|
4
|
-
import mdToHtml from '../options/md-to-html.mjs';
|
|
5
|
-
declare const ScriptKind: typeof ts.ScriptKind;
|
|
6
|
-
declare const ScriptTarget: typeof ts.ScriptTarget;
|
|
7
|
-
declare const SyntaxKind: typeof ts.SyntaxKind;
|
|
8
|
-
declare const createSourceFile: typeof ts.createSourceFile;
|
|
9
|
-
declare const forEachChild: typeof ts.forEachChild;
|
|
10
|
-
declare const getLeadingCommentRanges: typeof ts.getLeadingCommentRanges;
|
|
11
|
-
declare const isInterfaceDeclaration: typeof ts.isInterfaceDeclaration;
|
|
12
|
-
declare const isQuestionToken: typeof ts.isQuestionToken;
|
|
13
|
-
declare const isPropertySignature: typeof ts.isPropertySignature;
|
|
14
|
-
declare const isFunctionTypeNode: typeof ts.isFunctionTypeNode;
|
|
15
|
-
declare const isUnionTypeNode: typeof ts.isUnionTypeNode;
|
|
16
|
-
declare const isMethodSignature: typeof ts.isMethodSignature;
|
|
17
|
-
declare const allType: Record<string, string>;
|
|
18
|
-
declare function getPropertyComment(propertyNode: InterfaceDeclaration | PropertySignature | EnumMember | EnumDeclaration);
|
|
19
|
-
declare function getDefaultValueFromComment(commentText?: string);
|
|
20
|
-
declare function getVersionFromComment(commentText?: string);
|
|
21
|
-
declare function getExampleComment(commentText?: string);
|
|
22
|
-
declare function getAuthor(commentText?: string);
|
|
23
|
-
declare function getIgnore(commentText?: string);
|
|
24
|
-
declare const regex: RegExp;
|
|
25
|
-
declare function getTypeText(typeText?: string, hasColor?: boolean);
|
|
26
|
-
declare function getMemberValue(memberNode: EnumMember);
|
|
27
|
-
declare function replacePairedSymbols(inputString?: string);
|
|
28
|
-
declare function isFunctionTypeProperty(member: PropertySignature): boolean;
|
|
29
|
-
declare function replaceText(str?: string);
|
|
30
|
-
declare function getBaseInterfaces(interfaceNode: InterfaceDeclaration);
|
|
31
|
-
declare function getComment(comment?: string);
|
|
32
|
-
declare function getMethodText(member: PropertySignature | MethodSignature);
|
|
33
|
-
declare function generateInterfaceDocumentation(node: InterfaceDeclaration);
|
|
34
|
-
declare function generateEnumDocumentation(node: EnumDeclaration);
|
|
35
|
-
export default function generateDoc(content: string, path: string);
|
package/lib/vm/info.d.mts
DELETED
package/lib/vm/locales.d.mts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { basename, join } from 'node:path';
|
|
2
|
-
import { directoryExists, scanFolderSync } from '@moneko/utils';
|
|
3
|
-
import { watch } from 'chokidar';
|
|
4
|
-
import log from '../commom/log.mjs';
|
|
5
|
-
import parseModuleMeta, { type ModuleMeta } from '../commom/parse-module-meta.mjs';
|
|
6
|
-
import ReactiveObject from '../commom/reactive-object.mjs';
|
|
7
|
-
import require from '../commom/require.mjs';
|
|
8
|
-
import sigintExit from '../commom/sigint-exit.mjs';
|
|
9
|
-
import { CONFIG } from '../config.mjs';
|
|
10
|
-
import type { Framework } from '../index.mjs';
|
|
11
|
-
import { FRAMEWORK, isDev } from '../process-env.mjs';
|
|
12
|
-
declare const prefixStr: Record<Framework, string>;
|
|
13
|
-
declare const suffixStr: string;
|
|
14
|
-
declare function getStr(lang: Omit<LocaleConfig, 'translation'>[], data: Record<string, LocaleConfig>);
|
|
15
|
-
declare const moduleMeta: ModuleMeta;
|
|
16
|
-
export declare const localesModuleName: string;
|
|
17
|
-
export declare const locales: ReactiveObject<{
|
|
18
|
-
[x: string]: string;
|
|
19
|
-
}>;
|
|
20
|
-
type LocaleConfig = {
|
|
21
|
-
language?: string;
|
|
22
|
-
title: string;
|
|
23
|
-
icon?: string;
|
|
24
|
-
translation: Record<string, string>;
|
|
25
|
-
};
|
|
26
|
-
declare const caches: Record<string, LocaleConfig>;
|
|
27
|
-
declare async function handleFileChange(filePath: string, type: 'change' | 'deleted' | 'added');
|
|
28
|
-
declare function watchDirectory(paths: string, ignored: RegExp[]);
|
|
29
|
-
declare const localsPath: string;
|
package/lib/vm/modules.d.mts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { join } from 'node:path';
|
|
2
|
-
import { getAppEntry, getAppFallback, getAppMdxScope, getAppMergeRouter, getAppNormalizeCss, getAppPrefixRouter, getAppRem, getAppSuspense } from '@moneko/mdx';
|
|
3
|
-
import { updateFileSync } from '@moneko/utils';
|
|
4
|
-
import hasPkg from '../commom/has-pkg.mjs';
|
|
5
|
-
import paths from '../commom/paths.mjs';
|
|
6
|
-
import Rule from '../commom/rule.mjs';
|
|
7
|
-
import { CONFIG } from '../config.mjs';
|
|
8
|
-
import moduleFederation from '../plugin/module-federation.mjs';
|
|
9
|
-
import type { VirtualModulePluginOption } from '../plugin/virtual-module.mjs';
|
|
10
|
-
import { APPTYPE, FRAMEWORK } from '../process-env.mjs';
|
|
11
|
-
import createTypes from '../utils/create-types.mjs';
|
|
12
|
-
import { generateDeclaration } from '../utils/dts.mjs';
|
|
13
|
-
import { node_modules, transformModule } from '../utils/index.mjs';
|
|
14
|
-
import getCoverage from './coverage.mjs';
|
|
15
|
-
import { docs, docsModuleName } from './docs.mjs';
|
|
16
|
-
import info from './info.mjs';
|
|
17
|
-
import { locales, localesModuleName } from './locales.mjs';
|
|
18
|
-
import renderApp from './render-app.mjs';
|
|
19
|
-
import { route, routesModuleName } from './routes.mjs';
|
|
20
|
-
declare const mdxScope: string | false;
|
|
21
|
-
declare const normalModules: Record<string, string | object>;
|
|
22
|
-
declare const appDtsPath: string;
|
|
23
|
-
declare const appDts: string[];
|
|
24
|
-
declare const vmDtsPath: string;
|
|
25
|
-
declare const virtualModule: VirtualModulePluginOption;
|
|
26
|
-
declare const customVirtualModuleDts: string[];
|
|
27
|
-
export default normalModules;
|
package/lib/vm/render-app.d.mts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CONFIG } from '../config.mjs';
|
|
2
|
-
import { APPTYPE, frameworkVersion, isDev } from '../process-env.mjs';
|
|
3
|
-
declare const legend: boolean;
|
|
4
|
-
declare const ReactDomPath: string;
|
|
5
|
-
declare const isHashRouter: boolean;
|
|
6
|
-
declare const Router: string;
|
|
7
|
-
declare const StrictMode: string;
|
|
8
|
-
declare const remoteReactRefresh: string;
|
|
9
|
-
declare const Root: string;
|
|
10
|
-
declare const renderApp: string;
|
|
11
|
-
export default renderApp;
|
package/lib/vm/routes.d.mts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { generateRouter } from '@moneko/mdx';
|
|
2
|
-
import parseModuleMeta, { type ModuleMeta } from '../commom/parse-module-meta.mjs';
|
|
3
|
-
import { routeDir } from '../commom/paths.mjs';
|
|
4
|
-
import ReactiveObject from '../commom/reactive-object.mjs';
|
|
5
|
-
import { CONFIG } from '../config.mjs';
|
|
6
|
-
import { FRAMEWORK, isDev, isLibrary } from '../process-env.mjs';
|
|
7
|
-
import { watchFiles } from './utils.mjs';
|
|
8
|
-
declare const routerAlia: '@pkg' | '@/pages';
|
|
9
|
-
declare const moduleMeta: ModuleMeta;
|
|
10
|
-
export declare const routesModuleName: string;
|
|
11
|
-
export declare const routesModulePkgJson: string;
|
|
12
|
-
export declare const routesModuleMeta: string;
|
|
13
|
-
declare function getRouter();
|
|
14
|
-
export declare const route: ReactiveObject<{
|
|
15
|
-
[x: string]: string;
|
|
16
|
-
}>;
|
|
17
|
-
export declare function generatorRouter();
|
package/lib/vm/utils.d.mts
DELETED
package/lib/worker/dts.d.mts
DELETED
package/lib/worker/eslint.d.mts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { relative } from 'node:path';
|
|
2
|
-
import { ESLint } from '@moneko/eslint';
|
|
3
|
-
import { parentPort } from 'worker_threads';
|
|
4
|
-
import paths from '../commom/paths.mjs';
|
|
5
|
-
export type ESLintWorkerMessage = [warnings: string, errors: string];
|
|
6
|
-
declare let timer: NodeJS.Timeout | null;
|
|
7
|
-
declare let eslint: ESLint, formatter: ESLint.LoadedFormatter;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { parentPort } from 'node:worker_threads';
|
|
2
|
-
import { transform } from '@moneko/eslint/babel-core';
|
|
3
|
-
import { BabelPluginReactCompiler } from '@moneko/eslint/react-compiler';
|
|
4
|
-
import log from '../commom/log.mjs';
|
|
5
|
-
export interface ReactCompilerOption {
|
|
6
|
-
target?: '17' | '18' | '19';
|
|
7
|
-
sources?(filename: string): boolean;
|
|
8
|
-
compilationMode?: 'annotation' | 'infer' | 'syntax' | 'all';
|
|
9
|
-
logger?: {
|
|
10
|
-
logEvent?: (fileName: string, event: MessageEvent) => void;
|
|
11
|
-
};
|
|
12
|
-
noEmit?: boolean;
|
|
13
|
-
flowSuppressions?: boolean;
|
|
14
|
-
ignoreUseNoForget?: boolean;
|
|
15
|
-
enableReanimatedCheck?: boolean;
|
|
16
|
-
panicThreshold?: string;
|
|
17
|
-
environment?: unknown;
|
|
18
|
-
gating?: null;
|
|
19
|
-
eslintSuppressionRules?: Record<string, string | boolean | number>;
|
|
20
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type Formatter, type LinterResult, type LintResult, stylelint, type Warning } from '@moneko/stylelint';
|
|
2
|
-
import { parentPort } from 'worker_threads';
|
|
3
|
-
export type StylelintWorkerMessage = [warnings: string, errors: string];
|
|
4
|
-
declare let timer: NodeJS.Timeout | null;
|
|
5
|
-
declare const formatter: Formatter;
|