@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
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moneko/core",
|
|
3
|
-
"version": "3.54.0-beta.
|
|
3
|
+
"version": "3.54.0-beta.4",
|
|
4
4
|
"description": "core",
|
|
5
5
|
"main": "lib/index.mjs",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "node build.mjs",
|
|
8
|
+
"build": "rm -rf ./lib && node build.mjs && tsc",
|
|
9
9
|
"prepublishOnly": "node build.mjs"
|
|
10
10
|
},
|
|
11
11
|
"bin": {
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"homepage": "https://monako97.github.io/neko-ui/@moneko/config",
|
|
108
108
|
"license": "MIT",
|
|
109
109
|
"dependencies": {
|
|
110
|
-
"@moneko/convert": "1.0
|
|
110
|
+
"@moneko/convert": "1.1.0",
|
|
111
111
|
"@moneko/eslint": "1.8.0",
|
|
112
112
|
"@moneko/mdx": "0.1.44",
|
|
113
113
|
"@moneko/raw-import": "0.0.3",
|
|
@@ -156,4 +156,4 @@
|
|
|
156
156
|
"typings"
|
|
157
157
|
],
|
|
158
158
|
"packageManager": "pnpm@10.15.0"
|
|
159
|
-
}
|
|
159
|
+
}
|
package/typings/global.d.ts
CHANGED
|
@@ -360,7 +360,7 @@ export declare type ConfigType = {
|
|
|
360
360
|
| 'single'
|
|
361
361
|
| 'multiple'
|
|
362
362
|
| {
|
|
363
|
-
name?: string |
|
|
363
|
+
name?: string | ((entrypoint: { name: string }) => string);
|
|
364
364
|
};
|
|
365
365
|
/** 编译输出路径
|
|
366
366
|
* @description 用于配置输出选项,可以是一个字符串(表示输出目录路径)或一个对象(包含详细的输出配置)
|
package/lib/bin/build-app.d.mts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { execSync } from 'node:child_process';
|
|
2
|
-
import { existsSync, readdirSync, statSync } from 'node:fs';
|
|
3
|
-
import path from 'node:path';
|
|
4
|
-
import { argv, env, exit } from 'node:process';
|
|
5
|
-
import { buildPlist, buildXml, createDir, ink, jsonToYaml, loadFileSync, parsePlist, parseXml, parseYaml, print, println, removeDir, saveFile, saveFileSync } from '@moneko/utils';
|
|
6
|
-
import { bundleApk, bundleIOS } from './utils/bundle-app.mjs';
|
|
7
|
-
import { cwd } from './utils/config.mjs';
|
|
8
|
-
import { __dirname } from './file.mjs';
|
|
9
|
-
export declare function copyFileSync(source: string, target: string);
|
|
10
|
-
export declare function copyFolderRecursiveSync(source: string, target: string, sun?: boolean);
|
|
11
|
-
export default async function createApp();
|
package/lib/bin/build.d.mts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { join } from 'node:path';
|
|
2
|
-
import { argv, exit } from 'node:process';
|
|
3
|
-
import { convert } from '@moneko/convert';
|
|
4
|
-
import { ink, println, removeDir } from '@moneko/utils';
|
|
5
|
-
import setupEnv from '../commom/setup-env.mjs';
|
|
6
|
-
import { TransformSolidJsOption } from '../commom/transform-solid-js.mjs';
|
|
7
|
-
import { cwd, swcCachePath } from './utils/config.mjs';
|
|
8
|
-
import { convertSolid } from './utils/convert-solid.mjs';
|
|
9
|
-
import { getSwcOption } from './utils/setup-swcrc.mjs';
|
|
10
|
-
import { lesscCommonjs } from './lessc.mjs';
|
|
11
|
-
import tsc from './tsc.mjs';
|
|
12
|
-
declare async function build();
|
|
13
|
-
export default build;
|
package/lib/bin/changelog.d.mts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { execSync } from 'node:child_process';
|
|
2
|
-
import { join } from 'node:path';
|
|
3
|
-
import { argv } from 'node:process';
|
|
4
|
-
import { updateFileSync } from '@moneko/utils';
|
|
5
|
-
import log from '../commom/log.mjs';
|
|
6
|
-
import { cwd } from './utils/config.mjs';
|
|
7
|
-
declare function getRemoteUrl();
|
|
8
|
-
declare const types: Record<string, string>;
|
|
9
|
-
declare function extractCommits(text: string);
|
|
10
|
-
declare function getCommitsBetweenTags(tag1?: string, tag2?: string);
|
|
11
|
-
declare function getTags(remoteUrl: string);
|
|
12
|
-
export default function changelog();
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { join } from 'node:path';
|
|
3
|
-
import { argv } from 'node:process';
|
|
4
|
-
import { loadFileSync, println } from '@moneko/utils';
|
|
5
|
-
import log from '../commom/log.mjs';
|
|
6
|
-
import paths from '../commom/paths.mjs';
|
|
7
|
-
interface FormatProblem {
|
|
8
|
-
level: number;
|
|
9
|
-
message: string;
|
|
10
|
-
name: string;
|
|
11
|
-
}
|
|
12
|
-
interface FormatResult {
|
|
13
|
-
valid: boolean;
|
|
14
|
-
errors: FormatProblem[];
|
|
15
|
-
warnings: FormatProblem[];
|
|
16
|
-
}
|
|
17
|
-
declare const LEVEL: {
|
|
18
|
-
readonly DISABLED: number;
|
|
19
|
-
readonly WARNING: number;
|
|
20
|
-
readonly ERROR: number;
|
|
21
|
-
};
|
|
22
|
-
declare const RULE_OUTCOME: {
|
|
23
|
-
readonly ALWAYS: string;
|
|
24
|
-
readonly NEVER: string;
|
|
25
|
-
};
|
|
26
|
-
declare function isSentenceCase(text: string);
|
|
27
|
-
declare function isStartCase(text: string);
|
|
28
|
-
declare function isPascalCase(text: string);
|
|
29
|
-
declare function isUpperCase(text: string);
|
|
30
|
-
interface CommitMessage {
|
|
31
|
-
header: string;
|
|
32
|
-
type: string;
|
|
33
|
-
subject: string;
|
|
34
|
-
body: string;
|
|
35
|
-
footer: string;
|
|
36
|
-
raw: string;
|
|
37
|
-
lines: string[];
|
|
38
|
-
}
|
|
39
|
-
declare function parseCommitMessage(message: string): CommitMessage;
|
|
40
|
-
type Rules = Record<string, [number, string, ...unknown[]]>;
|
|
41
|
-
declare function lint(message: string, rules: Rules);
|
|
42
|
-
declare function format(result: FormatResult);
|
|
43
|
-
declare function main();
|
package/lib/bin/eslint.d.mts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { relative } from 'node:path';
|
|
2
|
-
import { argv, exit, stdout } from 'node:process';
|
|
3
|
-
import { ESLint } from '@moneko/eslint';
|
|
4
|
-
import { ink, print } from '@moneko/utils';
|
|
5
|
-
import { cachePath, cwd, parseBraced } from './utils/config.mjs';
|
|
6
|
-
export default async function eslint();
|
package/lib/bin/file.d.mts
DELETED
package/lib/bin/git-hooks.d.mts
DELETED
package/lib/bin/help.d.mts
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { ink, println } from '@moneko/utils';
|
|
2
|
-
declare const commands: readonly [{
|
|
3
|
-
readonly name: string;
|
|
4
|
-
readonly description: string;
|
|
5
|
-
readonly args: string;
|
|
6
|
-
readonly arguments: readonly [{
|
|
7
|
-
readonly name: string;
|
|
8
|
-
readonly description: string;
|
|
9
|
-
}, {
|
|
10
|
-
readonly name: string;
|
|
11
|
-
readonly description: string;
|
|
12
|
-
}];
|
|
13
|
-
}, {
|
|
14
|
-
readonly name: string;
|
|
15
|
-
readonly description: string;
|
|
16
|
-
readonly args: string;
|
|
17
|
-
readonly arguments: readonly [{
|
|
18
|
-
readonly name: string;
|
|
19
|
-
readonly description: string;
|
|
20
|
-
}, {
|
|
21
|
-
readonly name: string;
|
|
22
|
-
readonly description: string;
|
|
23
|
-
}];
|
|
24
|
-
}, {
|
|
25
|
-
readonly name: string;
|
|
26
|
-
readonly description: string;
|
|
27
|
-
readonly args: string;
|
|
28
|
-
readonly arguments: readonly [{
|
|
29
|
-
readonly name: string;
|
|
30
|
-
readonly description: string;
|
|
31
|
-
}];
|
|
32
|
-
}, {
|
|
33
|
-
readonly name: string;
|
|
34
|
-
readonly description: string;
|
|
35
|
-
readonly args: string;
|
|
36
|
-
readonly arguments: readonly [{
|
|
37
|
-
readonly name: string;
|
|
38
|
-
readonly description: string;
|
|
39
|
-
}];
|
|
40
|
-
}, {
|
|
41
|
-
readonly name: string;
|
|
42
|
-
readonly description: string;
|
|
43
|
-
readonly args: string;
|
|
44
|
-
readonly arguments: readonly [{
|
|
45
|
-
readonly name: string;
|
|
46
|
-
readonly description: string;
|
|
47
|
-
}];
|
|
48
|
-
}, {
|
|
49
|
-
readonly name: string;
|
|
50
|
-
readonly description: string;
|
|
51
|
-
readonly args: string;
|
|
52
|
-
readonly arguments: readonly [{
|
|
53
|
-
readonly name: string;
|
|
54
|
-
readonly description: string;
|
|
55
|
-
}, {
|
|
56
|
-
readonly name: string;
|
|
57
|
-
readonly description: string;
|
|
58
|
-
}, {
|
|
59
|
-
readonly name: string;
|
|
60
|
-
readonly description: string;
|
|
61
|
-
}, {
|
|
62
|
-
readonly name: string;
|
|
63
|
-
readonly description: string;
|
|
64
|
-
}];
|
|
65
|
-
}, {
|
|
66
|
-
readonly name: string;
|
|
67
|
-
readonly description: string;
|
|
68
|
-
}, {
|
|
69
|
-
readonly name: string;
|
|
70
|
-
readonly description: string;
|
|
71
|
-
readonly args: string;
|
|
72
|
-
readonly arguments: readonly [{
|
|
73
|
-
readonly name: string;
|
|
74
|
-
readonly description: string;
|
|
75
|
-
}];
|
|
76
|
-
}, {
|
|
77
|
-
readonly name: string;
|
|
78
|
-
readonly description: string;
|
|
79
|
-
}, {
|
|
80
|
-
readonly name: string;
|
|
81
|
-
readonly description: string;
|
|
82
|
-
}];
|
|
83
|
-
declare const examples: readonly [readonly [string, string, string, string], readonly [string, string, string, string], readonly [string, string, string, string], readonly [string, string, string, string], readonly [string, string, string, string], readonly [string, string, string, string], readonly [string, string, string, string], readonly [string, string, string, string], readonly [string, string, string, string], readonly [string, string, string, string]];
|
|
84
|
-
declare function printHelp();
|
|
85
|
-
export default printHelp;
|
package/lib/bin/index.d.mts
DELETED
package/lib/bin/lessc.d.mts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { exec } from 'node:child_process';
|
|
2
|
-
import { join } from 'node:path';
|
|
3
|
-
import { loadFile, saveFile, scanFolderSync } from '@moneko/utils';
|
|
4
|
-
import require from '../commom/require.mjs';
|
|
5
|
-
import { runtimePath } from './utils/config.mjs';
|
|
6
|
-
declare let modifyVarBash: string;
|
|
7
|
-
declare function lessc(file: string);
|
|
8
|
-
declare const lessRegExp: RegExp;
|
|
9
|
-
declare async function lesscFile(filepath: string);
|
|
10
|
-
export declare async function lesscCommonjs();
|
package/lib/bin/pin.d.mts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { spawn } from 'node:child_process';
|
|
2
|
-
import { relative } from 'node:path';
|
|
3
|
-
import { fileExists, ink, println, progressBar, updateFile } from '@moneko/utils';
|
|
4
|
-
import parseArgs from '../commom/parse-args.mjs';
|
|
5
|
-
import paths from '../commom/paths.mjs';
|
|
6
|
-
import require from '../commom/require.mjs';
|
|
7
|
-
declare const packageJsonPath: string;
|
|
8
|
-
declare function getPackageJson(): typeof import('package.json');
|
|
9
|
-
type PackageManager = 'pnpm' | 'yarn' | 'bun' | 'deno' | 'npm';
|
|
10
|
-
declare function getPackageManager(packageManager?: string): PackageManager;
|
|
11
|
-
type V = 'major' | 'minor' | 'patch' | 'equal';
|
|
12
|
-
declare function versionCompare(v1: string, v2: string): V;
|
|
13
|
-
declare async function getVersion(name: string);
|
|
14
|
-
declare async function checkDependencies(dependencies: Record<string, string>, progress: {
|
|
15
|
-
done: string[];
|
|
16
|
-
total: number;
|
|
17
|
-
});
|
|
18
|
-
interface DiffVersion {
|
|
19
|
-
name: string;
|
|
20
|
-
wanted: string;
|
|
21
|
-
latest: string;
|
|
22
|
-
color: string;
|
|
23
|
-
err?: string;
|
|
24
|
-
}
|
|
25
|
-
declare const levels: {
|
|
26
|
-
readonly major: string;
|
|
27
|
-
readonly minor: string;
|
|
28
|
-
readonly patch: string;
|
|
29
|
-
readonly equal: string;
|
|
30
|
-
};
|
|
31
|
-
declare function diff(prev: Record<string, string>, next: Record<string, string>): DiffVersion[];
|
|
32
|
-
declare async function checkUpdates(packageJson: typeof import('package.json'), key: 'peerDependencies' | 'optionalDependencies' | 'devDependencies' | 'dependencies', result: Record<string, DiffVersion[]>, progress: {
|
|
33
|
-
done: string[];
|
|
34
|
-
total: number;
|
|
35
|
-
});
|
|
36
|
-
declare function getMaxLength(pkgs: string[], result: Record<string, DiffVersion[]>, key: keyof DiffVersion);
|
|
37
|
-
declare function extractVersion(version: string): [optical: string, version: string];
|
|
38
|
-
declare async function pin(): Promise<void>;
|
|
39
|
-
export default pin;
|
package/lib/bin/pure-lint.d.mts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { spawnSync, type SpawnSyncReturns } from 'node:child_process';
|
|
3
|
-
import { join } from 'node:path';
|
|
4
|
-
import { argv, cwd as _cwd, exit, stdout } from 'node:process';
|
|
5
|
-
import { ESLint } from '@moneko/eslint';
|
|
6
|
-
import { LinterResult, stylelint as Stylelint } from '@moneko/stylelint';
|
|
7
|
-
import { ink, loadFile, println } from '@moneko/utils';
|
|
8
|
-
import log from '../commom/log.mjs';
|
|
9
|
-
import parseArgs from '../commom/parse-args.mjs';
|
|
10
|
-
import timer from '../commom/timer.mjs';
|
|
11
|
-
type Args = {
|
|
12
|
-
fix?: boolean;
|
|
13
|
-
cache?: boolean;
|
|
14
|
-
mode?: 'ci' | 'commit';
|
|
15
|
-
};
|
|
16
|
-
declare const args: Args;
|
|
17
|
-
declare const fix: boolean | undefined;
|
|
18
|
-
declare const cache: boolean;
|
|
19
|
-
declare const cwd: string;
|
|
20
|
-
declare const cachePath: string;
|
|
21
|
-
declare const cmd: {
|
|
22
|
-
readonly ci: readonly ['diff', '--name-only', 'HEAD^', 'HEAD'];
|
|
23
|
-
readonly commit: readonly ['diff', '--cached', '--name-only', '--diff-filter=ACM'];
|
|
24
|
-
};
|
|
25
|
-
declare const scriptRegExp: RegExp;
|
|
26
|
-
declare const vueRegExp: RegExp;
|
|
27
|
-
declare const styleRegExp: RegExp;
|
|
28
|
-
declare const child: SpawnSyncReturns<Buffer>;
|
|
29
|
-
declare const lintFiles: string[];
|
|
30
|
-
declare async function eslint();
|
|
31
|
-
declare const styleFiles: string[];
|
|
32
|
-
declare async function stylelint();
|
package/lib/bin/server.d.mts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import fs from 'node:fs';
|
|
2
|
-
import { ink, println } from '@moneko/utils';
|
|
3
|
-
import parseArgs from '../commom/parse-args.mjs';
|
|
4
|
-
import printLog from '../commom/print-log.mjs';
|
|
5
|
-
import { CONFIG } from '../config.mjs';
|
|
6
|
-
import server from '../dev/server.mjs';
|
|
7
|
-
interface ServerArgs {
|
|
8
|
-
port?: number;
|
|
9
|
-
root_dir?: string;
|
|
10
|
-
https?: boolean;
|
|
11
|
-
host?: string;
|
|
12
|
-
}
|
|
13
|
-
declare const _dts_1: () => any;
|
|
14
|
-
export default _dts_1;
|
package/lib/bin/setup.d.mts
DELETED
package/lib/bin/start.d.mts
DELETED
package/lib/bin/stylelint.d.mts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { relative } from 'node:path';
|
|
2
|
-
import { argv, exit, stdout } from 'node:process';
|
|
3
|
-
import { stylelint } from '@moneko/stylelint';
|
|
4
|
-
import { ink, print } from '@moneko/utils';
|
|
5
|
-
import { cachePath, cwd, parseBraced } from './utils/config.mjs';
|
|
6
|
-
declare async function run();
|
|
7
|
-
export default run;
|
package/lib/bin/tsc.d.mts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { execSync } from 'node:child_process';
|
|
2
|
-
import { renameSync } from 'node:fs';
|
|
3
|
-
import { join } from 'node:path';
|
|
4
|
-
import { bundleIpa, createDir, ink, print } from '@moneko/utils';
|
|
5
|
-
import timer from '../../commom/timer.mjs';
|
|
6
|
-
export declare function bundleApk(outputPath: string, outputBundleDir: string, type?: string);
|
|
7
|
-
export declare function bundleIOS(outputPath: string, outputBundleDir: string, type?: string);
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { dirname, join } from 'node:path';
|
|
2
|
-
import { cwd as _cwd, execPath, platform } from 'node:process';
|
|
3
|
-
declare const Deno: VoidFunction;
|
|
4
|
-
declare const Bun: VoidFunction;
|
|
5
|
-
declare function getRuntime();
|
|
6
|
-
declare const runtime: 'deno' | 'bun' | 'node';
|
|
7
|
-
declare let runtimeDir: string;
|
|
8
|
-
export declare const runtimePath: string;
|
|
9
|
-
export declare const corePkg: string;
|
|
10
|
-
export declare const cwd: string;
|
|
11
|
-
export declare const cachePath: string;
|
|
12
|
-
export declare const swcCachePath: string;
|
|
13
|
-
export declare function parseBraced(input: string);
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import path from 'node:path';
|
|
2
|
-
import { copyFile, ink, loadFileSync, println, scanFolderSync, updateFile } from '@moneko/utils';
|
|
3
|
-
import { transformSolidJs, TransformSolidJsOption } from '../../commom/transform-solid-js.mjs';
|
|
4
|
-
declare function getOutfilePath(outDir: string, file: string, outFileExtension?: string);
|
|
5
|
-
interface ConvertOptions {
|
|
6
|
-
outDir: string;
|
|
7
|
-
inputDir: string;
|
|
8
|
-
options: TransformSolidJsOption;
|
|
9
|
-
ignore?: RegExp[];
|
|
10
|
-
extensions?: string[];
|
|
11
|
-
copy?: boolean;
|
|
12
|
-
quiet?: boolean;
|
|
13
|
-
outputExtension?: string;
|
|
14
|
-
}
|
|
15
|
-
interface ConvertResult {
|
|
16
|
-
duration: number;
|
|
17
|
-
compiled: string[];
|
|
18
|
-
copied: string[];
|
|
19
|
-
failed: string[];
|
|
20
|
-
}
|
|
21
|
-
declare const normalizeExtension: Record<string, string>;
|
|
22
|
-
export declare async function convertSolid({ ignore = [], quiet = true, copy = true, outDir, outputExtension, inputDir, options, extensions = [
|
|
23
|
-
'.ts',
|
|
24
|
-
'.js',
|
|
25
|
-
'.tsx',
|
|
26
|
-
'.jsx',
|
|
27
|
-
'.mts',
|
|
28
|
-
'.mjs',
|
|
29
|
-
'.cts',
|
|
30
|
-
'.cjs'
|
|
31
|
-
] }: ConvertOptions): Promise<ConvertResult>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"node:path";import{copyFile as t,ink as o,loadFileSync as s,println as i,scanFolderSync as a,updateFile as m}from"@moneko/utils";import{transformSolidJs as n}from"../../commom/transform-solid-js.mjs";function r(t,o,s){let i=o.split(e.sep),a=""===i[0]?i[1]:i[0],m=o.replace(a,""),n=e.join(t,m);return s?n.replace(e.extname(n),s):n}let p={".ts":".js",".tsx":".js",".mts":".mjs",".cts":".cjs",".js":".js",".jsx":".js",".mjs":".mjs",".cjs":".cjs"};export async function convertSolid({ignore:l=[],quiet:c=!0,copy:d=!0,outDir:j,outputExtension:f,inputDir:h,options:u,extensions:$=[".ts",".js",".tsx",".jsx",".mts",".mjs",".cts",".cjs"]}){let g=process.hrtime(),x={duration:0,compiled:[],copied:[],failed:[]},y=a(h,["^.*"]).map(t=>e.normalize(t)),S=[],w=[];y.forEach(t=>{!(/\.DS_Store/.test(t)||l.some(e=>e.test(t)))&&($.includes(e.extname(t))?S.push(t):d&&w.push(t))});let E=S.map(async t=>{try{let o=f||p[e.extname(t)],i=await n(s(t)||"",{...u,filename:t,minified:!0,compact:!0}),a=r(j,t,o);await m(a,i?.code??""),i?.map&&await m(`${a}.map`,"string"==typeof i.map?i.map:JSON.stringify(i.map)),x.compiled.push(`${t} -> ${a}`)}catch(e){x.failed.push(`Error converting ${t}: ${e}`)}}).concat(w.map(async e=>{let o=r(j,e);await t(e,o)?x.copied.push(`${e} -> ${o}`):x.failed.push(`Error copying ${e} -> ${o}`)}));await Promise.all(E);let v=process.hrtime(g);if(x.duration=1e3*v[0]+v[1]/1e6,c){let e=u.presetEnvOption?.modules,t=!1===e?"ESM":e?.toString().toLocaleUpperCase();i([`${o("✨ 编译成功!🎉","82",{bold:!0})} ${o(`(${t})`,"213")}`,o(`⏱️ 总耗时:${x.duration.toFixed(3)} ms`,"117"),x.compiled.length&&o(`📄 编译文件:${x.compiled.length} 个`,"111"),x.copied.length&&o(`📋 复制文件:${x.copied.length} 个`,"226"),x.failed.length&&o(`❌ 编译失败:${x.failed.length} 个`,"203")].filter(Boolean).join("\n- "))}return x}
|
package/lib/build/common.d.mts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
|
|
2
|
-
import webpack, { type Configuration } from 'webpack';
|
|
3
|
-
import { merge } from 'webpack-merge';
|
|
4
|
-
import { commonConfig } from '../common.mjs';
|
|
5
|
-
import { CONFIG } from '../config.mjs';
|
|
6
|
-
import { LightningCssMinifyPlugin } from '../plugin/lightningcss-plugin.mjs';
|
|
7
|
-
import { SwcMinifyPlugin } from '../plugin/swc-minify-plugin.mjs';
|
|
8
|
-
import { getLightningCssTargets } from '../polyfills/targets.mjs';
|
|
9
|
-
declare const minimizer: readonly [];
|
|
10
|
-
declare const defaultPerformance: Configuration['performance'];
|
|
11
|
-
declare const buildCommon: Configuration;
|
|
12
|
-
export default buildCommon;
|
package/lib/build/server.d.mts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { env } from 'node:process';
|
|
2
|
-
import { type Configuration } from 'webpack';
|
|
3
|
-
import { CUSTOMCONFIG } from '../commom/paths.mjs';
|
|
4
|
-
import moduleConfig from '../module.config.mjs';
|
|
5
|
-
import { isLibrary } from '../process-env.mjs';
|
|
6
|
-
import { resolveProgram } from '../utils/index.mjs';
|
|
7
|
-
declare const serverOption: Configuration;
|
|
8
|
-
export default serverOption;
|
package/lib/build.d.mts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { relative } from 'node:path';
|
|
2
|
-
import process from 'node:process';
|
|
3
|
-
import { analyzeBundleSize, completedInfo, ink, println, progressBar } from '@moneko/utils';
|
|
4
|
-
import webpack, { type Compiler, type Configuration, type Stats } from 'webpack';
|
|
5
|
-
import { merge } from 'webpack-merge';
|
|
6
|
-
import buildCommon from './build/common.mjs';
|
|
7
|
-
import paths from './commom/paths.mjs';
|
|
8
|
-
import { DonePlugin } from './plugin/done.mjs';
|
|
9
|
-
import { empty } from './utils/index.mjs';
|
|
10
|
-
import seo from './utils/seo.mjs';
|
|
11
|
-
import { CONFIG } from './config.mjs';
|
|
12
|
-
import moduleConfig from './module.config.mjs';
|
|
13
|
-
declare const clientOption: Configuration;
|
|
14
|
-
declare const instance: Compiler;
|
|
15
|
-
declare function printCompilationMessages(stats: Stats);
|
|
16
|
-
declare async function build();
|
package/lib/commom/ca.d.mts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type ChildProcess, exec, type ExecException, type PromiseWithChild } from 'node:child_process';
|
|
2
|
-
import { join, relative } from 'node:path';
|
|
3
|
-
import { platform } from 'node:process';
|
|
4
|
-
import { promisify } from 'node:util';
|
|
5
|
-
import { type CertificateResult, fileExists, generateCert, loadFile, normalCertificateAuthority, println, saveFile } from '@moneko/utils';
|
|
6
|
-
import log from './log.mjs';
|
|
7
|
-
import { getIPv4 } from './net.mjs';
|
|
8
|
-
import paths from './paths.mjs';
|
|
9
|
-
type ExecPromise = (command: string) => PromiseWithChild<{
|
|
10
|
-
stdout: string;
|
|
11
|
-
stderr: string;
|
|
12
|
-
}>;
|
|
13
|
-
declare const execPromise: ExecPromise;
|
|
14
|
-
declare async function isCertificateInstalled(organization: string): Promise<boolean>;
|
|
15
|
-
declare function installCallback(error: ExecException | null, _stdout: string, stderr: string): void;
|
|
16
|
-
export declare function installCA(certPath: string): ChildProcess | void;
|
|
17
|
-
export declare async function setupCert(domain?: string, install?: boolean): Promise<CertificateResult>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { spawn, type SpawnOptions } from 'node:child_process';
|
|
2
|
-
import { dirname, join } from 'node:path';
|
|
3
|
-
import { execPath, platform, versions } from 'node:process';
|
|
4
|
-
import { ink, loadFile, loadFileSync, println, saveFile } from '@moneko/utils';
|
|
5
|
-
import log from './log.mjs';
|
|
6
|
-
declare const packageJsonPath: string;
|
|
7
|
-
declare const packageJson: typeof import('package.json');
|
|
8
|
-
declare const shim: string;
|
|
9
|
-
declare const spawnOptions: SpawnOptions;
|
|
10
|
-
declare function getManagerVersion(): string;
|
|
11
|
-
declare function corepackInstalled(): Promise<boolean>;
|
|
12
|
-
export declare function corepack(enable?: boolean);
|
package/lib/commom/esm.d.mts
DELETED
package/lib/commom/has-pkg.d.mts
DELETED
package/lib/commom/host.d.mts
DELETED
package/lib/commom/log.d.mts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { hrtime } from 'node:process';
|
|
2
|
-
import { appendToFileSync } from '@moneko/utils';
|
|
3
|
-
declare const startDate: Date;
|
|
4
|
-
declare const startHrTime: [number, number];
|
|
5
|
-
declare function getCurrentTime(): string;
|
|
6
|
-
declare async function log(message: Error | string | unknown): Promise<void>;
|
|
7
|
-
export default log;
|
package/lib/commom/mime.d.mts
DELETED
package/lib/commom/net.d.mts
DELETED
package/lib/commom/open.d.mts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { resolve } from 'node:path';
|
|
2
|
-
import paths from './paths.mjs';
|
|
3
|
-
export type ModuleMeta = {
|
|
4
|
-
name: string;
|
|
5
|
-
main: string;
|
|
6
|
-
pkg: string;
|
|
7
|
-
file: string;
|
|
8
|
-
meta: string;
|
|
9
|
-
};
|
|
10
|
-
declare function parseModuleMeta(path: string, version?: number): ModuleMeta;
|
|
11
|
-
export default parseModuleMeta;
|
package/lib/commom/paths.d.mts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { tmpdir } from 'node:os';
|
|
2
|
-
import { resolve } from 'node:path';
|
|
3
|
-
import { argv, cwd, env } from 'node:process';
|
|
4
|
-
import url from 'node:url';
|
|
5
|
-
import { fileExists } from '@moneko/utils';
|
|
6
|
-
import parseArgs from './parse-args.mjs';
|
|
7
|
-
declare const original: string[];
|
|
8
|
-
export declare const __dirname: string;
|
|
9
|
-
export declare const yarnArgv: Record<string, string> & {
|
|
10
|
-
config?: string;
|
|
11
|
-
};
|
|
12
|
-
export declare const CUSTOMCONFIG: string | undefined;
|
|
13
|
-
declare const programPath: string;
|
|
14
|
-
declare const nodeModules: string;
|
|
15
|
-
export declare const TMP_DIR: string;
|
|
16
|
-
declare const paths: {
|
|
17
|
-
readonly nodeModules;
|
|
18
|
-
readonly pnpmNodeModules;
|
|
19
|
-
readonly denoNodeModules;
|
|
20
|
-
readonly corePath;
|
|
21
|
-
readonly programPath;
|
|
22
|
-
readonly CA_DIR;
|
|
23
|
-
readonly webpackCachePath;
|
|
24
|
-
readonly lintCachePath;
|
|
25
|
-
readonly httpCachePath;
|
|
26
|
-
readonly swcCachePath;
|
|
27
|
-
readonly configPath;
|
|
28
|
-
readonly customConfigPath;
|
|
29
|
-
readonly coveragePath;
|
|
30
|
-
readonly pagesPath;
|
|
31
|
-
readonly componentsPath;
|
|
32
|
-
readonly mockPath;
|
|
33
|
-
};
|
|
34
|
-
export declare const config_files: string[];
|
|
35
|
-
export declare const routeDir: string;
|
|
36
|
-
export default paths;
|