@moneko/core 3.42.0 → 3.42.2-beta.0
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/git-hooks.d.mts +1 -0
- package/lib/bin/git-hooks.mjs +2 -2
- package/lib/config.mjs +1 -1
- package/package.json +3 -2
package/lib/bin/git-hooks.d.mts
CHANGED
package/lib/bin/git-hooks.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{spawn as o}from"node:child_process";import{argv as e}from"node:process";import{ink as
|
|
2
|
-
`,
|
|
1
|
+
import{spawn as o}from"node:child_process";import{argv as e}from"node:process";import{ink as l,print as i}from"@moneko/utils";import n from"husky";export default function t(){let t=l("Git init","cyan"),s=o=>l(`✨ ${o?"Error":"Successfully"}!
|
|
2
|
+
`,o?"red":"green");i(`${t}: ${l("Runing...","yellow")}`,!0),o("git init && git config core.ignorecase false",{stdio:[null],shell:!0}).on("close",function(r){i(`${t}: ${s(0!==r)}`,!0);let c=l("Git hooks","cyan");i(`${c}: ${l("Runing...","yellow")}`,!0);let u="node_modules/.husky";n(u);let $=e.slice(3).map(o=>{let e=o.split("=");return`echo ${e[1]} > ${u}/${e[0]}`}).join(" && ");o(`${$}`,{stdio:[null],shell:!0}).on("close",function(o){i(`${c}: ${s(0!==o)}`,!0),process.exit(o)})})}
|
package/lib/config.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{relative as e}from"node:path";import{fileExists as o}from"@moneko/utils";import{merge as t}from"webpack-merge";import r from"./commom/paths.mjs";import s from"./commom/require.mjs";import n from"./commom/setup-env.mjs";import i from"./options/jsx-dom-expressions.mjs";import a from"./options/split-chunk.mjs";import{isFunction as l,node_modules as m,resolveProgram as p}from"./utils/index.mjs";import{APPTYPE as c,FRAMEWORK as u,frameworkVersion as d,isCI as f,isDev as h,isLibrary as g,isMobile as v,isReact as x,jsxImportSource as j,mainDirectory as C,NODE_ENV as P,PACKAGENAME as b}from"./process-env.mjs";let k=["@app","@moneko","neko-ui",".cache/http/data","@element-plus","ant-design-vue","element-plus","element-ui","ng-zorro-antd","@mui","@du","@fontsource","@fortawesome","font-pingfang-sc","font-pingfang-tc","katex","react-markdown-editor-lite","react-photo-view","schema-design","monaco-editor"];export function getConfig(e){return delete s.cache[e],new Promise(t=>{if(o(e)){let o=s(e).default;return t(l(o)?o(process):o)}return t({})})}let w=await Promise.all([n(P,c,u,[]),getConfig(r.configPath),getConfig(r.customConfigPath)]),O=w[0],y=w[1],
|
|
1
|
+
import{relative as e}from"node:path";import{fileExists as o}from"@moneko/utils";import{merge as t}from"webpack-merge";import r from"./commom/paths.mjs";import s from"./commom/require.mjs";import n from"./commom/setup-env.mjs";import i from"./options/jsx-dom-expressions.mjs";import a from"./options/split-chunk.mjs";import{isFunction as l,node_modules as m,resolveProgram as p}from"./utils/index.mjs";import{APPTYPE as c,FRAMEWORK as u,frameworkVersion as d,isCI as f,isDev as h,isLibrary as g,isMobile as v,isReact as x,jsxImportSource as j,mainDirectory as C,NODE_ENV as P,PACKAGENAME as b}from"./process-env.mjs";let k=["@app","@moneko","neko-ui",".cache/http/data","@element-plus","ant-design-vue","element-plus","element-ui","ng-zorro-antd","@mui","@du","@fontsource","@fortawesome","font-pingfang-sc","font-pingfang-tc","katex","react-markdown-editor-lite","react-photo-view","schema-design","monaco-editor"];export function getConfig(e){return delete s.cache[e],new Promise(t=>{if(o(e)){let o=s(e).default;return t(l(o)?o(process):o)}return t({})})}let w=await Promise.all([n(P,c,u,[]),getConfig(r.configPath),getConfig(r.customConfigPath)]),O=w[0],y=w[1],S=w[2],M={strict:!1,devtool:h?"eval-cheap-module-source-map":"cheap-module-source-map",seo:!1,mode:"csr",bundleAnalyzer:!1,polyfill:!1,entry:{},minifier:{},sourceMap:{filename:"[file].map",publicPath:""},env:O,basename:"/",publicPath:"/",rem:{designSize:v?375:1920},fallbackCompPath:null,modifyVars:{},prefixCls:"n",alias:Object.assign({"@":p(C)},x&&d<18?{"react/package.json":m("react/package.json"),"react/jsx-runtime":m("react/jsx-runtime.js"),"react/jsx-dev-runtime":m("react/jsx-dev-runtime.js")}:{}),moduleRules:[],prefixJsLoader:[],cssModules:[],cssModuleDefinition:!0,importOnDemand:{},proxy:{},devServer:{host:"localhost",port:3e3},htmlPluginOption:{title:b.toLocaleUpperCase(),favicon:e(r.programPath,`${r.corePath}/options/favicon.ico`)},copy:{},routerMode:"browser",fixBrowserRouter:!1,plugins:[],resolvePlugins:[],overrideResolve:!1,splitChunk:a,runtimeChunk:"single",moduleFederation:[],rulesInclude:{css:k,js:k,media:k,font:k,wasm:[]},mdx:{jsx:!1,development:h,jsxImportSource:j,providerImportSource:`@moneko/${u}/mdx`},jsxDomExpressions:i,bar:{name:"Client",nameColor:"68",msgColor:"242",barBgColor:"15",barColor:"69",quiet:f},normalizeCss:!0,externalsPresets:{},buildHttp:void 0,virtualModule:{},cssExtract:{},externals:["@swc/core"],lazyCompilation:!1,performance:!1,refresh:"solid"!==u,bundleId:"com.moneko.bid",bundles:[],stylelint:{},eslint:{lintDirtyModulesOnly:!1}};g&&(M.alias=Object.assign(M.alias,{"@pkg":r.componentsPath,[b]:r.componentsPath}));let I=M;(!1===(I=t(I,y,S)).devtool||!1===I.sourceMap)&&(I.sourceMap=!1,I.devtool=!1),I.fixBrowserRouter&&I.htmlPluginOption&&(I.htmlPluginOption.tags||(I.htmlPluginOption.tags=[]),I.htmlPluginOption.tags.push({textContent:"(function(l) {if (l.search[1] === '/' ) {var decoded = l.search.slice(1).split('&').map(function(s) {return s.replace(/~and~/g, '&')}).join('?');window.history.replaceState(null, null,l.pathname.slice(0, -1) + decoded + l.hash);}}(window.location))"})),"true"===process.env.CODESPACES&&(I.devServer.https=!1),!1===I.devServer.https&&(I.devServer.open=!1);export const CONFIG=I;export const PUBLICPATH=CONFIG.publicPath;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moneko/core",
|
|
3
|
-
"version": "3.42.0",
|
|
3
|
+
"version": "3.42.2-beta.0",
|
|
4
4
|
"description": "core",
|
|
5
5
|
"main": "lib/index.mjs",
|
|
6
6
|
"type": "module",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"default": "./lib/lint/stylelint/config.mjs"
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
|
-
|
|
96
|
+
"./package.json": "./package.json"
|
|
97
97
|
},
|
|
98
98
|
"keywords": [
|
|
99
99
|
"moneko",
|
|
@@ -120,6 +120,7 @@
|
|
|
120
120
|
"core-js": "3.41.0",
|
|
121
121
|
"core-js-compat": "3.41.0",
|
|
122
122
|
"fastify": "4.29.0",
|
|
123
|
+
"husky": "9.1.7",
|
|
123
124
|
"less": "4.3.0",
|
|
124
125
|
"less-loader": "12.2.0",
|
|
125
126
|
"lightningcss": "1.29.3",
|