@moneko/core 3.55.2-beta.0 → 3.55.2-beta.2
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/loader/react-compiler.cjs +1 -1
- package/lib/loader/solid.cjs +1 -1
- package/lib/plugin/eslint.mjs +1 -1
- package/lib/plugin/exposes-declararion.mjs +1 -1
- package/lib/plugin/stylelint.mjs +1 -1
- package/lib/worker/dts.mjs +1 -1
- package/lib/worker/eslint.mjs +1 -1
- package/lib/worker/react-compiler.mjs +1 -1
- package/lib/worker/solid.mjs +1 -1
- package/lib/worker/stylelint.mjs +1 -1
- package/lib/worker/swc-minify.mjs +1 -1
- package/package.json +1 -1
- package/lib/bin/build-app.d.mts +0 -16
- package/lib/bin/build.d.mts +0 -2
- package/lib/bin/changelog.d.mts +0 -1
- package/lib/bin/commit-lint.d.mts +0 -2
- package/lib/bin/eslint.d.mts +0 -1
- package/lib/bin/file.d.mts +0 -2
- package/lib/bin/git-hooks.d.mts +0 -1
- package/lib/bin/help.d.mts +0 -2
- package/lib/bin/index.d.mts +0 -2
- package/lib/bin/lessc.d.mts +0 -1
- package/lib/bin/pin.d.mts +0 -6
- package/lib/bin/pure-lint.d.mts +0 -2
- package/lib/bin/server.d.mts +0 -2
- package/lib/bin/setup.d.mts +0 -2
- package/lib/bin/start.d.mts +0 -2
- package/lib/bin/stylelint.d.mts +0 -2
- package/lib/bin/tsc.d.mts +0 -2
- package/lib/bin/utils/bundle-app.d.mts +0 -2
- package/lib/bin/utils/config.d.mts +0 -6
- package/lib/bin/utils/get-commit-files.d.mts +0 -2
- package/lib/bin/utils/setup-swcrc.d.mts +0 -2
- package/lib/build/common.d.mts +0 -3
- package/lib/build/server.d.mts +0 -3
- package/lib/build.d.mts +0 -1
- package/lib/commom/ca.d.mts +0 -8
- package/lib/commom/check-npm.d.mts +0 -4
- package/lib/commom/corepack.d.mts +0 -11
- 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 -2
- package/lib/commom/host.d.mts +0 -1
- package/lib/commom/is-ci-environment.d.mts +0 -6
- package/lib/commom/log.d.mts +0 -2
- package/lib/commom/match-path.d.mts +0 -22
- package/lib/commom/mime.d.mts +0 -2
- package/lib/commom/module-resolve.d.mts +0 -2
- package/lib/commom/net.d.mts +0 -2
- package/lib/commom/open.d.mts +0 -2
- package/lib/commom/parse-args.d.mts +0 -2
- package/lib/commom/parse-module-meta.d.mts +0 -9
- package/lib/commom/paths.d.mts +0 -52
- package/lib/commom/print-log.d.mts +0 -15
- package/lib/commom/reactive-object.d.mts +0 -10
- package/lib/commom/require.d.mts +0 -2
- package/lib/commom/rule.d.mts +0 -26
- package/lib/commom/setup-env.d.mts +0 -6
- package/lib/commom/sigint-exit.d.mts +0 -2
- package/lib/commom/timer.d.mts +0 -12
- package/lib/commom/transform-solid-js.d.mts +0 -18
- package/lib/common.d.mts +0 -3
- package/lib/config.d.mts +0 -4
- package/lib/dev/config.d.mts +0 -4
- package/lib/dev/generate-progress-html.d.mts +0 -6
- package/lib/dev/get-cert.d.mts +0 -8
- package/lib/dev/json-schema.d.mts +0 -70
- package/lib/dev/mock.d.mts +0 -67
- package/lib/dev/proxy.d.mts +0 -15
- package/lib/dev/server.d.mts +0 -26
- package/lib/dev.d.mts +0 -1
- 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 -14
- package/lib/loader/lightning-css/codegen.d.cts +0 -35
- package/lib/loader/lightning-css/loader.d.cts +0 -29
- package/lib/loader/lightning-css/runtime/api.d.cts +0 -1
- package/lib/loader/lightning-css/runtime/get-url.d.cts +0 -1
- package/lib/loader/lightning-css/utils.d.cts +0 -16
- package/lib/loader/mdx.d.cts +0 -3
- package/lib/loader/react-compiler.d.cts +0 -26
- package/lib/loader/solid.d.cts +0 -6
- package/lib/loader/ts-doc.d.cts +0 -7
- package/lib/module.config.d.mts +0 -3
- package/lib/options/css-extract.d.mts +0 -3
- package/lib/options/jsx-dom-expressions.d.mts +0 -10
- package/lib/options/md-to-html.d.mts +0 -2
- package/lib/options/modify-vars.d.mts +0 -2
- package/lib/options/reslove.d.mts +0 -9
- package/lib/options/split-chunk.d.mts +0 -4
- package/lib/options/swcrc.d.mts +0 -10
- package/lib/plugin/compression.d.mts +0 -15
- package/lib/plugin/copy.d.mts +0 -30
- package/lib/plugin/done.d.mts +0 -11
- package/lib/plugin/eslint.d.mts +0 -14
- package/lib/plugin/exposes-declararion.d.mts +0 -15
- package/lib/plugin/external-remotes.d.mts +0 -4
- package/lib/plugin/html-plugin.d.mts +0 -60
- package/lib/plugin/lightningcss-plugin.d.mts +0 -20
- package/lib/plugin/manifest.d.mts +0 -46
- package/lib/plugin/module-federation.d.mts +0 -3
- package/lib/plugin/override-resolve.d.mts +0 -25
- package/lib/plugin/stylelint.d.mts +0 -13
- package/lib/plugin/swc-minify-plugin.d.mts +0 -8
- package/lib/plugin/virtual-module.d.mts +0 -12
- package/lib/plugins.config.d.mts +0 -3
- package/lib/polyfills/polyfills.d.mts +0 -3
- package/lib/polyfills/replace-children.d.mts +0 -1
- package/lib/polyfills/targets.d.mts +0 -3
- package/lib/process-env.d.mts +0 -26
- package/lib/utils/compile-dts.d.mts +0 -23
- package/lib/utils/create-types.d.mts +0 -2
- package/lib/utils/dts.d.mts +0 -14
- package/lib/utils/fetch-module-federation-dts.d.mts +0 -2
- package/lib/utils/index.d.mts +0 -35
- package/lib/utils/run.d.mts +0 -2
- package/lib/utils/seo.d.mts +0 -2
- package/lib/utils/svg-to-data-uri.d.mts +0 -2
- package/lib/utils/vts.d.mts +0 -18
- package/lib/vm/coverage.d.mts +0 -2
- package/lib/vm/docs.d.mts +0 -7
- package/lib/vm/example.d.mts +0 -4
- package/lib/vm/generate-doc.d.mts +0 -1
- package/lib/vm/info.d.mts +0 -2
- package/lib/vm/locales.d.mts +0 -5
- package/lib/vm/modules.d.mts +0 -2
- package/lib/vm/render-app.d.mts +0 -2
- package/lib/vm/routes.d.mts +0 -8
- package/lib/vm/utils.d.mts +0 -1
- package/lib/worker/dts.d.mts +0 -1
- package/lib/worker/eslint.d.mts +0 -1
- package/lib/worker/react-compiler.d.mts +0 -1
- package/lib/worker/solid.d.mts +0 -1
- package/lib/worker/stylelint.d.mts +0 -1
- package/lib/worker/swc-minify.d.mts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=exports,t={get custom(){return i},get default(){return c}};for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get});const o=require("node:path"),s=new(require("node:worker_threads")).Worker((0,o.join)(__dirname,"../worker/react-compiler.mjs"));function n(e,t){let r=this.resourcePath,o=this.getOptions();if(r.endsWith(".d.ts")||!("annotation"===o.compilationMode?e.includes("use memo")||e.includes("use forget"):e.includes("react")||r.endsWith(".tsx")||r.endsWith(".jsx")))return e;let n=this.async();this._compiler?.options.mode!=="development"&&this._compiler?.hooks.done.tap("react-compiler-loader",()=>{s.terminate()}),this.cacheable&&this.cacheable(),s.postMessage({sourceCode:e,filename:r,inputSourceMap:t,options:o}),s.on("message",e=>{r===e[0]&&n(e[1],e[2],e[3])})}function i(e,t){return n.bind(this,e,t)}s.setMaxListeners(0);const c=n;
|
package/lib/loader/solid.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=exports,t={get custom(){return
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=exports,t={get custom(){return i},get default(){return a}};for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get});const o=require("node:path"),s=new(require("node:worker_threads")).Worker((0,o.join)(__dirname,"../worker/solid.mjs"));async function n(e,t){this.cacheable&&this.cacheable(),this._compiler?.options.mode!=="development"&&this._compiler?.hooks.done.tap("solid-loader",()=>{s.terminate()});let r=this.async(),o=this.getOptions(),n=this.resourcePath;s.postMessage({...o,sourceCode:e,filename:n,inputSourceMap:t}),s.on("message",e=>{n===e[0]&&r(e[1],e[2],e[3])})}function i(e,t){return n.bind(this,e,t)}s.setMaxListeners(0);const a=n;
|
package/lib/plugin/eslint.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{fileURLToPath as t}from"node:url";import e
|
|
1
|
+
import{fileURLToPath as t}from"node:url";import{Worker as e}from"node:worker_threads";import s from"webpack";class o extends s.WebpackError{constructor(t){super(`[ESLint] ${t}`),this.name="ESLintError",this.stack=""}}export class ESLintPlugin{constructor(s={files:[]}){this.name="ESLintPlugin",this.options=s,this.worker=new e(t(new URL("../worker/eslint.mjs",import.meta.url))),this.worker.setMaxListeners(0)}apply(t){t.hooks.thisCompilation.tap(this.name,e=>{let s=t.modifiedFiles||new Set;e.hooks.finishModules.tap(this.name,t=>{let o=this.options;if(this.options?.lintDirtyModulesOnly){let e=[];for(let o of t){let t=o.resource;s.has(t)&&e.push(t)}o.files=e}this.worker.postMessage({options:o}),this.worker.once("message",t=>{this.report(e,t)})})}),t.hooks.shutdown.tap(this.name,()=>{this.worker.terminate()})}report(t,e){e?.length&&t&&(e[0]?.length&&t.warnings.push(new o(e[0])),e[1]?.length&&t.errors.push(new o(e[1])))}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{join as e,parse as t,resolve as o}from"node:path";import{fileURLToPath as s}from"node:url";import{
|
|
1
|
+
import{join as e,parse as t,resolve as o}from"node:path";import{fileURLToPath as s}from"node:url";import{Worker as i}from"node:worker_threads";import{loadFile as r}from"@moneko/utils";import a from"webpack";import n from"../utils/create-types.mjs";let m="ModuleFederationExposesDeclarationPlugin";export class ModuleFederationExposesDeclarationPlugin{constructor(e){this.name="ModuleFederationExposesDeclarationPlugin",this.assetName="module-federation.d.ts",this.dts="",this.option=e,this.worker=new i(s(new URL("../worker/dts.mjs",import.meta.url))),this.worker.setMaxListeners(0),this.worker.postMessage({options:{compilerOptions:{outFile:this.assetName},include:Object.values(e.exposes)}}),this.worker.once("message",e=>{this.dts=e,this.worker.terminate()})}apply(s){let{exposes:i}=this.option,p=Object.keys(i).map(e=>{let t=e.replace(/\.tsx?$/i,"");return{key:e,name:t,path:o(`types/${this.option.name}/${t}.d.ts`),originPath:i[e]}});s.hooks.thisCompilation.tap({name:m,stage:s.webpack.Compilation.PROCESS_ASSETS_STAGE_ADDITIONS},o=>{o.hooks.processAssets.tapPromise(m,async()=>{let s=p.map(async o=>{if(null!==await r(o.originPath)){let s=t(o.originPath);return`${n(e(this.option.name,o.name),`export * from '${t(s.dir).name}/${s.name}'`)}`}return""}),i=await Promise.all(s);i.unshift(this.dts),o.emitAsset("module-federation.d.ts",new a.sources.RawSource(i.join("\n")),{javascriptModule:!1})})})}}
|
package/lib/plugin/stylelint.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{fileURLToPath as t}from"node:url";import
|
|
1
|
+
import{fileURLToPath as t}from"node:url";import{Worker as e}from"node:worker_threads";import r from"webpack";class s extends r.WebpackError{constructor(t){super(`[Stylelint] ${t}`),this.name="StylelintError",this.stack=""}}export class StylelintPlugin{constructor(r={files:[]}){this.name="StylelintPlugin",this.options=r,this.worker=new e(t(new URL("../worker/stylelint.mjs",import.meta.url))),this.worker.setMaxListeners(0)}apply(t){t.hooks.thisCompilation.tap(this.name,t=>{this.worker.postMessage({options:this.options}),this.worker.once("message",e=>{this.report(e,t)})}),t.hooks.shutdown.tap(this.name,()=>{this.worker.terminate()})}report(t,e){t?.length&&e&&(t[0]?.length&&e.warnings.push(new s(t[0])),t[1]?.length&&e.errors.push(new s(t[1])))}}
|
package/lib/worker/dts.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{parentPort as
|
|
1
|
+
import{parentPort as s}from"node:worker_threads";import{compileDts as e}from"../utils/compile-dts.mjs";if(!s)throw Error("This file must be run as a worker");s?.setMaxListeners(0),s.on("message",async({options:r})=>{let o=e(r);s.postMessage(o)});
|
package/lib/worker/eslint.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
let e,t;import{relative as a}from"node:path";import{
|
|
1
|
+
let e,t;import{relative as a}from"node:path";import{parentPort as r}from"node:worker_threads";import{ESLint as o}from"@moneko/eslint";import i from"../commom/paths.mjs";if(!r)throw Error("This file must be run as a worker");let s=null;r?.setMaxListeners(0),r.on("message",async({options:c})=>{s&&clearTimeout(s),s=setTimeout(async()=>{s&&(clearTimeout(s),s=null);try{e||(e=new o({cache:c.cache,cacheLocation:c.cacheLocation,cacheStrategy:c.cacheStrategy,fix:c.fix}),t=await e.loadFormatter("stylish"));let s=c.files.map(e=>(c.lintDirtyModulesOnly?a(i.programPath,e):e).replace(/\\/g,"/")),l=await e.lintFiles(s),m=[],n=[];c.fix&&await o.outputFixes(l),l.forEach(e=>{e.errorCount?n.push(e):e.warningCount&&m.push(e)});let h=await Promise.all([t.format(m),t.format(n)]);r.postMessage(h.map(e=>e.replace(/[^\r\n]*(\r?\n)*$/,"")))}catch(e){r.postMessage(e)}},2)}),r.on("close",()=>{s&&clearTimeout(s)});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{parentPort as e}from"node:worker_threads";import{runBabelPluginReactCompiler as
|
|
1
|
+
import{parentPort as e}from"node:worker_threads";import{runBabelPluginReactCompiler as r}from"@moneko/eslint/react-compiler";e?.setMaxListeners(0),e?.on("message",({sourceCode:s,filename:t,inputSourceMap:o,options:a})=>{try{let o=r(s,t,"typescript",a);e?.postMessage([t,null,o?.code??s,o.map])}catch(r){e?.postMessage([t,r,s,o])}});
|
package/lib/worker/solid.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{parentPort as e}from"node:worker_threads";import{transformSolidJs as o}from"@moneko/convert/solid";e?.on("message",({sourceCode:s,filename:r,inputSourceMap:t,...a})=>{o(s,{...a,filename:r
|
|
1
|
+
import{parentPort as e}from"node:worker_threads";import{transformSolidJs as o}from"@moneko/convert/solid";e?.setMaxListeners(0),e?.on("message",({sourceCode:s,filename:r,inputSourceMap:t,...a})=>{o(s,{...a,filename:r,inputSourceMap:t}).then(o=>{null===o?e?.postMessage([r,Error(`Failed to transform "${r}"`),s,t]):e?.postMessage([r,null,o.code??s,o.map??t])}).catch(o=>{e?.postMessage([r,o,s,t])})});
|
package/lib/worker/stylelint.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{parentPort as e}from"node:worker_threads";import{stylelint as r}from"@moneko/stylelint";if(!e)throw Error("This file must be run as a worker");let t=null,a=await r.formatters.string;e?.setMaxListeners(0),e.on("message",async({options:i})=>{t&&clearTimeout(t),t=setTimeout(async()=>{t&&(clearTimeout(t),t=null);try{let t=await r.lint({cache:i.cache,cacheLocation:i.cacheLocation,fix:i.fix,files:i.files.map(e=>e.replace(/\\/g,"/")),quietDeprecationWarnings:i.quietDeprecationWarnings,quiet:i.quiet});delete t.output;let n=[],s=[];t.results.forEach(e=>{if(!e.ignored&&(e.errored||e.parseErrors.length||e.invalidOptionWarnings.length||e.deprecations.length)){let r=[],t=[];e.warnings.forEach(e=>{"error"===e.severity?r.push(e):"warning"===e.severity&&t.push(e)}),r.length>0&&n.push({...e,warnings:r}),t.length>0&&s.push({...e,warnings:t})}});let o=[a(s,t),a(n,t)];e.postMessage(o.map(e=>e.replace(/[^\r\n]*(\r?\n)*$/,"")))}catch(r){e.postMessage(r)}},4)}),e.on("close",()=>{t&&clearTimeout(t)});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{parentPort as r}from"node:worker_threads";import{minify as e}from"@swc/core";if(!r)throw Error("This file must be run as a worker");r?.setMaxListeners(0),r.on("message",async({buffer:o,options:s})=>{let{code:t}=await e(Buffer.from(o).toString().replace(/\r\n/g,"\n"),s);r.postMessage(t)});
|
package/package.json
CHANGED
package/lib/bin/build-app.d.mts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 拷贝文件
|
|
3
|
-
* @param {String} source 源文件
|
|
4
|
-
* @param {String} target 目标文件
|
|
5
|
-
* @constructor
|
|
6
|
-
* */
|
|
7
|
-
export declare function copyFileSync(source: string, target: string): void;
|
|
8
|
-
/**
|
|
9
|
-
* 拷贝文件夹
|
|
10
|
-
* @param {String} source 源文件夹
|
|
11
|
-
* @param {String} target 目标文件夹
|
|
12
|
-
* @param {String} sun 是否子文件夹
|
|
13
|
-
* @constructor
|
|
14
|
-
* */
|
|
15
|
-
export declare function copyFolderRecursiveSync(source: string, target: string, sun?: boolean): void;
|
|
16
|
-
export default function createApp(): Promise<void>;
|
package/lib/bin/build.d.mts
DELETED
package/lib/bin/changelog.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function changelog(): void;
|
package/lib/bin/eslint.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function eslint(): Promise<void>;
|
package/lib/bin/file.d.mts
DELETED
package/lib/bin/git-hooks.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function githooks(): void;
|
package/lib/bin/help.d.mts
DELETED
package/lib/bin/index.d.mts
DELETED
package/lib/bin/lessc.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function lesscCommonjs(): Promise<void>;
|
package/lib/bin/pin.d.mts
DELETED
package/lib/bin/pure-lint.d.mts
DELETED
package/lib/bin/server.d.mts
DELETED
package/lib/bin/setup.d.mts
DELETED
package/lib/bin/start.d.mts
DELETED
package/lib/bin/stylelint.d.mts
DELETED
package/lib/bin/tsc.d.mts
DELETED
package/lib/build/common.d.mts
DELETED
package/lib/build/server.d.mts
DELETED
package/lib/build.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/lib/commom/ca.d.mts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type ChildProcess } from 'node:child_process';
|
|
2
|
-
import { type CertificateResult } from '@moneko/utils';
|
|
3
|
-
/**
|
|
4
|
-
* 安装本地根 CA 到用户证书存储区(开发时信任 HTTPS 证书)
|
|
5
|
-
* @param certPath 本地 CA 证书路径
|
|
6
|
-
*/
|
|
7
|
-
export declare function installCA(certPath: string): ChildProcess | void;
|
|
8
|
-
export declare function setupCert(domain?: string, install?: boolean): Promise<CertificateResult>;
|
package/lib/commom/esm.d.mts
DELETED
package/lib/commom/has-pkg.d.mts
DELETED
package/lib/commom/host.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function hostHelp(domain: string): void;
|
package/lib/commom/log.d.mts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
type MatchPath = {
|
|
2
|
-
path: string;
|
|
3
|
-
params: Record<string, unknown>;
|
|
4
|
-
};
|
|
5
|
-
/**
|
|
6
|
-
* RESTful 风格api
|
|
7
|
-
* @param {String} pattern pattern
|
|
8
|
-
* @param {String} path paths
|
|
9
|
-
* @example
|
|
10
|
-
* const pattern = '/users/:id';
|
|
11
|
-
* const pathToMatch = '/users/123';
|
|
12
|
-
* const result = matchPath(pattern, pathToMatch);
|
|
13
|
-
* if (result) {
|
|
14
|
-
* console.log('Match found:', result);
|
|
15
|
-
* console.log('Params:', result.params);
|
|
16
|
-
* } else {
|
|
17
|
-
* console.log('No match found.');
|
|
18
|
-
* }
|
|
19
|
-
* @returns {MatchPath|null} MatchPath
|
|
20
|
-
*/
|
|
21
|
-
declare function matchPath(pattern: string, path: string): MatchPath | null;
|
|
22
|
-
export default matchPath;
|
package/lib/commom/mime.d.mts
DELETED
package/lib/commom/net.d.mts
DELETED
package/lib/commom/open.d.mts
DELETED
package/lib/commom/paths.d.mts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/** 当前文件所在目录的绝对路径 */
|
|
2
|
-
export declare const __dirname: string;
|
|
3
|
-
/** yarn 命令行参数对象,包含配置选项 */
|
|
4
|
-
export declare const yarnArgv: Record<string, string> & {
|
|
5
|
-
config?: string;
|
|
6
|
-
};
|
|
7
|
-
/** 附加启动配置名称
|
|
8
|
-
* @example
|
|
9
|
-
* 当通过以下命令启动时, 此时 CUSTOMCONFIG 为 test
|
|
10
|
-
* ```sh
|
|
11
|
-
* npm run start --config=test
|
|
12
|
-
* ```
|
|
13
|
-
*/
|
|
14
|
-
export declare const CUSTOMCONFIG: string | undefined;
|
|
15
|
-
export declare const TMP_DIR: string;
|
|
16
|
-
declare const paths: {
|
|
17
|
-
/** node_modules 目录路径 */
|
|
18
|
-
nodeModules: string;
|
|
19
|
-
/** pnpm node_modules 目录路径 */
|
|
20
|
-
pnpmNodeModules: string;
|
|
21
|
-
/** deno node_modules 目录路径 */
|
|
22
|
-
denoNodeModules: string;
|
|
23
|
-
/** 核心代码路径 */
|
|
24
|
-
corePath: string;
|
|
25
|
-
/** 项目根目录路径 */
|
|
26
|
-
programPath: string;
|
|
27
|
-
/** CA 目录路径 */
|
|
28
|
-
CA_DIR: string;
|
|
29
|
-
/** webpack 缓存目录路径 */
|
|
30
|
-
webpackCachePath: string;
|
|
31
|
-
/** 代码检查工具(ESLint、Stylelint等)的缓存目录路径 */
|
|
32
|
-
lintCachePath: string;
|
|
33
|
-
/** HTTP 远程模块缓存路径 */
|
|
34
|
-
httpCachePath: string;
|
|
35
|
-
/** SWC 缓存目录路径 */
|
|
36
|
-
swcCachePath: string;
|
|
37
|
-
/** 默认配置文件路径 */
|
|
38
|
-
configPath: string;
|
|
39
|
-
/** 自定义配置文件路径 */
|
|
40
|
-
customConfigPath: string;
|
|
41
|
-
/** 测试覆盖率报告路径 */
|
|
42
|
-
coveragePath: string;
|
|
43
|
-
/** 页面目录路径 */
|
|
44
|
-
pagesPath: string;
|
|
45
|
-
/** 组件目录路径 */
|
|
46
|
-
componentsPath: string;
|
|
47
|
-
/** Mock 数据目录路径 */
|
|
48
|
-
mockPath: string;
|
|
49
|
-
};
|
|
50
|
-
export declare const config_files: string[];
|
|
51
|
-
export declare const routeDir: string;
|
|
52
|
-
export default paths;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare const METHOD_COLOR: Record<string, {
|
|
2
|
-
fg: string;
|
|
3
|
-
bg: string;
|
|
4
|
-
}>;
|
|
5
|
-
interface PrintLogOption {
|
|
6
|
-
note?: string;
|
|
7
|
-
timestamp?: boolean;
|
|
8
|
-
labelAlign?: 'left' | 'right' | 'center';
|
|
9
|
-
labelLen?: number;
|
|
10
|
-
labelForegroundColor?: string;
|
|
11
|
-
labelBackgroundColor?: string;
|
|
12
|
-
noteForegroundColor?: string;
|
|
13
|
-
}
|
|
14
|
-
declare function printLog(label: string, url: string, option?: PrintLogOption): void;
|
|
15
|
-
export default printLog;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import EventEmitter from 'node:events';
|
|
2
|
-
declare class ReactiveObject<T extends object = Record<string, string | undefined>> extends EventEmitter {
|
|
3
|
-
readonly data: T;
|
|
4
|
-
constructor(props?: T);
|
|
5
|
-
setData(key: keyof T, value: T[keyof T]): void;
|
|
6
|
-
getData(key: keyof T): T[keyof T];
|
|
7
|
-
removeData(key: keyof T): void;
|
|
8
|
-
[Symbol.iterator](): Iterator<[keyof T, T[keyof T]]>;
|
|
9
|
-
}
|
|
10
|
-
export default ReactiveObject;
|
package/lib/commom/require.d.mts
DELETED
package/lib/commom/rule.d.mts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
declare const Rule: {
|
|
2
|
-
js: RegExp;
|
|
3
|
-
css: RegExp;
|
|
4
|
-
less: RegExp;
|
|
5
|
-
scss: RegExp;
|
|
6
|
-
wasm: RegExp;
|
|
7
|
-
txt: RegExp;
|
|
8
|
-
image: RegExp;
|
|
9
|
-
video: RegExp;
|
|
10
|
-
font: RegExp;
|
|
11
|
-
markdown: RegExp;
|
|
12
|
-
tsdoc: RegExp;
|
|
13
|
-
css_module: RegExp;
|
|
14
|
-
node_modules_css_module: RegExp;
|
|
15
|
-
node_modules: RegExp;
|
|
16
|
-
__tests__: RegExp;
|
|
17
|
-
dev_watch_ignored: RegExp;
|
|
18
|
-
/**
|
|
19
|
-
* 提取函数字符串
|
|
20
|
-
* @example
|
|
21
|
-
* // () => import('@app')
|
|
22
|
-
* "rr(() => import('@app'))rr".replace(Rule.extract_func, '$1')
|
|
23
|
-
* */
|
|
24
|
-
extract_func: RegExp;
|
|
25
|
-
};
|
|
26
|
-
export default Rule;
|
package/lib/commom/timer.d.mts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { BabelFileMetadata } from '@moneko/eslint/babel-core';
|
|
2
|
-
import type { JSDocNullableType } from 'typescript';
|
|
3
|
-
export interface BabelFileResult {
|
|
4
|
-
ast?: unknown;
|
|
5
|
-
code?: string | JSDocNullableType;
|
|
6
|
-
ignored?: boolean;
|
|
7
|
-
map?: {
|
|
8
|
-
version: number;
|
|
9
|
-
sources: string[];
|
|
10
|
-
names: string[];
|
|
11
|
-
sourceRoot?: string;
|
|
12
|
-
sourcesContent?: string[];
|
|
13
|
-
mappings: string;
|
|
14
|
-
file: string;
|
|
15
|
-
} | null;
|
|
16
|
-
metadata?: BabelFileMetadata;
|
|
17
|
-
}
|
|
18
|
-
export * from '@moneko/convert/solid';
|
package/lib/common.d.mts
DELETED
package/lib/config.d.mts
DELETED
package/lib/dev/config.d.mts
DELETED
package/lib/dev/get-cert.d.mts
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
type Any = any;
|
|
2
|
-
type NonArraySchemaObjectType = 'boolean' | 'object' | 'number' | 'string' | 'integer';
|
|
3
|
-
type ArraySchemaObjectType = 'array';
|
|
4
|
-
type SchemaObject = ArraySchemaObject | NonArraySchemaObject;
|
|
5
|
-
interface ExternalDocumentationObject {
|
|
6
|
-
description?: string;
|
|
7
|
-
url: string;
|
|
8
|
-
}
|
|
9
|
-
interface ArraySchemaObject extends BaseSchemaObject {
|
|
10
|
-
type: ArraySchemaObjectType;
|
|
11
|
-
items: ReferenceObject | SchemaObject;
|
|
12
|
-
}
|
|
13
|
-
interface NonArraySchemaObject extends BaseSchemaObject {
|
|
14
|
-
type?: NonArraySchemaObjectType;
|
|
15
|
-
}
|
|
16
|
-
interface BaseSchemaObject {
|
|
17
|
-
title?: string;
|
|
18
|
-
description?: string;
|
|
19
|
-
format?: string;
|
|
20
|
-
default?: Any;
|
|
21
|
-
multipleOf?: number;
|
|
22
|
-
maximum?: number;
|
|
23
|
-
exclusiveMaximum?: boolean;
|
|
24
|
-
minimum?: number;
|
|
25
|
-
exclusiveMinimum?: boolean;
|
|
26
|
-
maxLength?: number;
|
|
27
|
-
minLength?: number;
|
|
28
|
-
pattern?: string;
|
|
29
|
-
additionalProperties?: boolean | ReferenceObject | SchemaObject;
|
|
30
|
-
maxItems?: number;
|
|
31
|
-
minItems?: number;
|
|
32
|
-
uniqueItems?: boolean;
|
|
33
|
-
maxProperties?: number;
|
|
34
|
-
minProperties?: number;
|
|
35
|
-
required?: string[];
|
|
36
|
-
enum?: Any[];
|
|
37
|
-
properties?: {
|
|
38
|
-
[name: string]: ReferenceObject | SchemaObject;
|
|
39
|
-
};
|
|
40
|
-
allOf?: (ReferenceObject | SchemaObject)[];
|
|
41
|
-
oneOf?: (ReferenceObject | SchemaObject)[];
|
|
42
|
-
anyOf?: (ReferenceObject | SchemaObject)[];
|
|
43
|
-
not?: ReferenceObject | SchemaObject;
|
|
44
|
-
nullable?: boolean;
|
|
45
|
-
discriminator?: DiscriminatorObject;
|
|
46
|
-
readOnly?: boolean;
|
|
47
|
-
writeOnly?: boolean;
|
|
48
|
-
xml?: XMLObject;
|
|
49
|
-
externalDocs?: ExternalDocumentationObject;
|
|
50
|
-
example?: Any;
|
|
51
|
-
deprecated?: boolean;
|
|
52
|
-
}
|
|
53
|
-
interface DiscriminatorObject {
|
|
54
|
-
propertyName: string;
|
|
55
|
-
mapping?: {
|
|
56
|
-
[value: string]: string;
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
interface XMLObject {
|
|
60
|
-
name?: string;
|
|
61
|
-
namespace?: string;
|
|
62
|
-
prefix?: string;
|
|
63
|
-
attribute?: boolean;
|
|
64
|
-
wrapped?: boolean;
|
|
65
|
-
}
|
|
66
|
-
interface ReferenceObject {
|
|
67
|
-
$ref: string;
|
|
68
|
-
}
|
|
69
|
-
export declare function jsonSchema<T>(schema: SchemaObject): any;
|
|
70
|
-
export {};
|