@moneko/core 3.0.0-beta.13 → 3.0.0-beta.130
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/app-entry.d.ts +2 -0
- package/lib/app-entry.js +1 -0
- package/lib/app.d.ts +30 -0
- package/lib/app.js +1 -0
- package/lib/cleanup.js +1 -0
- package/lib/common/localisable-react.txt +20 -0
- package/lib/common/localisable-solid.txt +34 -0
- package/lib/common/rem.d.ts +2 -0
- package/lib/common/rem.js +28 -0
- package/{build → lib}/common.d.ts +2 -1
- package/lib/common.js +1 -0
- package/{build → lib}/coverage.d.ts +1 -1
- package/{build → lib}/coverage.js +1 -1
- package/lib/define.d.ts +4 -0
- package/lib/define.js +1 -0
- package/lib/docs.d.ts +4 -0
- package/lib/docs.js +1 -0
- package/{build → lib}/done.d.ts +2 -7
- package/lib/done.js +1 -0
- package/lib/esm.d.ts +1 -0
- package/lib/esm.js +1 -0
- package/lib/generate-api.d.ts +1 -0
- package/lib/generate-api.js +1 -0
- package/{build → lib}/html-add-entry-attr.js +1 -1
- package/{build → lib}/html-plugin-option.d.ts +1 -1
- package/lib/html-plugin-option.js +1 -0
- package/lib/index.d.ts +3 -36
- package/lib/index.js +1 -1
- package/lib/loader/css-unicode.cjs +10 -0
- package/lib/loader/frontmatter.cjs +7 -0
- package/lib/locales.d.ts +10 -0
- package/lib/locales.js +2 -0
- package/lib/modifyVars.js +1 -0
- package/lib/module-federation.js +1 -0
- package/lib/module.config.js +1 -0
- package/lib/net.d.ts +3 -0
- package/lib/net.js +1 -0
- package/lib/object-listener.d.ts +4 -0
- package/lib/object-listener.js +1 -0
- package/lib/persist.d.ts +2 -0
- package/lib/persist.js +1 -0
- package/{build → lib}/process-env.d.ts +11 -3
- package/lib/process-env.js +1 -0
- package/lib/routes.d.ts +31 -0
- package/lib/routes.js +3 -0
- package/lib/seo.js +1 -0
- package/{build → lib}/swcrc.d.ts +1 -1
- package/lib/swcrc.js +1 -0
- package/{build → lib}/tsloader.config.d.ts +1 -1
- package/lib/tsloader.config.js +1 -0
- package/{build → lib}/utils.d.ts +14 -4
- package/lib/utils.js +1 -0
- package/lib/virtual-module-plugin.d.ts +10 -0
- package/lib/virtual-module-plugin.js +1 -0
- package/lib/virtual-modules.d.ts +2 -0
- package/lib/virtual-modules.js +1 -0
- package/{build → lib}/webpack.common.d.ts +2 -2
- package/lib/webpack.common.js +1 -0
- package/lib/webpack.dev.d.ts +3 -0
- package/lib/webpack.dev.js +4 -0
- package/{build → lib}/webpack.prod.d.ts +1 -1
- package/lib/webpack.prod.js +1 -0
- package/package.json +31 -45
- package/template/index.html +5 -1
- package/typings/global.d.ts +81 -36
- package/build/common.js +0 -12
- package/build/done.js +0 -1
- package/build/envFlags.d.ts +0 -17
- package/build/envFlags.js +0 -1
- package/build/esm.d.ts +0 -1
- package/build/esm.js +0 -1
- package/build/html-plugin-option.js +0 -1
- package/build/index.d.ts +0 -2
- package/build/index.js +0 -1
- package/build/modifyVars.js +0 -1
- package/build/module-federation.js +0 -1
- package/build/module.config.js +0 -1
- package/build/process-env.js +0 -1
- package/build/seo.js +0 -1
- package/build/swcrc.js +0 -1
- package/build/tsloader.config.js +0 -1
- package/build/utils.js +0 -1
- package/build/webpack.common.js +0 -1
- package/build/webpack.dev.d.ts +0 -2
- package/build/webpack.dev.js +0 -4
- package/build/webpack.prod.js +0 -1
- package/lib/normalize.css +0 -254
- package/lib/packages/library/bootstrap.tsx +0 -39
- package/lib/packages/library/index.d.ts +0 -4
- package/lib/packages/library/index.js +0 -1
- package/lib/refresh-rem.d.ts +0 -0
- package/lib/refresh-rem.js +0 -1
- package/lib/router/index.d.ts +0 -52
- package/lib/router/index.js +0 -1
- /package/lib/{packages/library/bootstrap.d.ts → cleanup.d.ts} +0 -0
- /package/{build → lib}/has-pkg.d.ts +0 -0
- /package/{build → lib}/has-pkg.js +0 -0
- /package/{build → lib}/html-add-entry-attr.d.ts +0 -0
- /package/{build → lib}/minify.d.ts +0 -0
- /package/{build → lib}/minify.js +0 -0
- /package/{build → lib}/modifyVars.d.ts +0 -0
- /package/{build → lib}/module-federation.d.ts +0 -0
- /package/{build → lib}/module.config.d.ts +0 -0
- /package/{build → lib}/resolver-sync.d.ts +0 -0
- /package/{build → lib}/resolver-sync.js +0 -0
- /package/{build → lib}/seo.d.ts +0 -0
- /package/{build → lib}/yarn-argv.d.ts +0 -0
- /package/{build → lib}/yarn-argv.js +0 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import e from"@soda/friendly-errors-webpack-plugin";import o from"chalk";import r from"webpack";import{merge as t}from"webpack-merge";import{CONFIG as s}from"./common.js";import{hasPkg as p}from"./has-pkg.js";import{getIPv4 as i,getPort as a}from"./net.js";import{isReact as m}from"./process-env.js";import{isFunction as n,resolveProgramPath as l}from"./utils.js";import{clientConfig as d}from"./webpack.common.js";let{HotModuleReplacementPlugin:c}=r,{yellow:v,green:h}=o,w=i(),f=s.devServer.port||3e3,u=await a(f,65535,s.devServer.host),k=s.devServer.port!==u,g=p("@moneko/mock"),$=g&&await import("@moneko/mock"),S=m&&(await import("@pmmmwh/react-refresh-webpack-plugin")).default,b=!1===s.devtool||s.devtool?s.devtool:"eval-cheap-module-source-map";s.devServer.port=u;let y="/"===s.routeBaseName,j=s.devServer.https?"https:":"http:",x=y?"":s.routeBaseName,A=t(d,{devtool:b,mode:"development",devServer:{headers:{"Access-Control-Allow-Origin":"*"},compress:s.devServer.compress,host:"0.0.0.0",port:u,historyApiFallback:y||{index:x.endsWith("/")?x:`${x}/`,disableDotRule:!0},https:s.devServer.https,proxy:s.proxy,allowedHosts:s.devServer.allowedHosts,client:{progress:!1,logging:"info",overlay:!1},static:{watch:{ignored:e=>e.endsWith(".d.ts")||/\/node_modules\//.test(e)}},setupMiddlewares:(e,o)=>{if(!o)throw Error("webpack-dev-server is not defined");return o.app&&n($)&&$(o.app,l("mock/")),e},open:!1,hot:!0},plugins:[new c,S&&new S,new e({compilationSuccessInfo:{messages:[`You application is running here:
|
|
2
|
+
|
|
3
|
+
Local: ${o.cyan(`${j}//${s.devServer.host}:${u}${x}`)}
|
|
4
|
+
Network: ${o.cyan(`${j}//${w}:${u}${x}`)}`],notes:k?[`Port ${v(f)} is in use, trying ${h(u)} instead`]:[]},clearConsole:!0})].filter(Boolean)});export default[A];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"css-minimizer-webpack-plugin";import i from"mini-css-extract-plugin";import n from"terser-webpack-plugin";import m from"webpack";import{BundleAnalyzerPlugin as o}from"webpack-bundle-analyzer";import{merge as r}from"webpack-merge";import{CONFIG as s}from"./common.js";import{getMinifyOption as t}from"./minify.js";import{clientConfig as p}from"./webpack.common.js";let{optimize:l}=m,{cssnanoMinify:u,swcMinify:c}=e,a="swc"===s.compiler?"swc":"terser",f="swc"===s.compiler?"swc":"cssnano",d=[];s.minifier&&(s.minifier.js&&d.push(new n(t(s.minifier.js?.type||a,s.minifier.js?.options))),s.minifier.css&&d.push(new e({minify:{swc:c,cssnano:u}[s.minifier.css?.type||f],minimizerOptions:s.minifier.css?.options})));let k={splitChunks:s.splitChunk,runtimeChunk:s.runtimeChunk,chunkIds:"named",moduleIds:"named",removeAvailableModules:!0,removeEmptyChunks:!0,mergeDuplicateChunks:!0,minimize:!0,minimizer:d},w=r(p,{devtool:!1===s.devtool||s.devtool?s.devtool:"cheap-module-source-map",mode:"production",optimization:k,plugins:[new i({filename:"style/[name].bundle.css",chunkFilename:"style/[name].chunk.css",experimentalUseImportModule:!0}),s.bundleAnalyzer&&new o(s.bundleAnalyzer),s.splitChunk&&new l.MinChunkSizePlugin({minChunkSize:1e4})].filter(Boolean)});export default[w];
|
package/package.json
CHANGED
|
@@ -1,77 +1,63 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moneko/core",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.130",
|
|
4
4
|
"description": "core",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "
|
|
9
|
-
"
|
|
10
|
-
"build-src": "swc src -d lib --extensions=.ts --ignore=src/packages/library/*.tsx -C module.type=es6 -C jsc.loose=true -C jsc.minify.mangle=true -C jsc.minify.compress=true -C minify=true -D",
|
|
11
|
-
"build:types": "tsc && tsc --project cli.json",
|
|
12
|
-
"postbuild": "node ./copy.js ./prefix ./lib",
|
|
13
|
-
"prebuild": "rm -rf ./build && rm -rf ./lib"
|
|
8
|
+
"build": "swc src -d lib -C module.type=nodenext -C jsc.target=esnext -C jsc.loose=true -C jsc.minify.mangle=true -C jsc.minify.compress=true -C minify=true -D",
|
|
9
|
+
"prebuild": "rm -rf ./lib && tsc"
|
|
14
10
|
},
|
|
15
11
|
"keywords": [],
|
|
16
12
|
"author": "moneko",
|
|
17
13
|
"license": "MIT",
|
|
18
14
|
"dependencies": {
|
|
19
|
-
"@emotion/css": "11.11.0",
|
|
20
|
-
"@mapbox/rehype-prism": "0.8.0",
|
|
21
15
|
"@mdx-js/loader": "2.3.0",
|
|
22
|
-
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
|
|
23
16
|
"@soda/friendly-errors-webpack-plugin": "1.8.1",
|
|
24
|
-
"@swc/core": "1.3.
|
|
25
|
-
"@swc/css": "0.0.
|
|
17
|
+
"@swc/core": "1.3.62",
|
|
18
|
+
"@swc/css": "0.0.28",
|
|
26
19
|
"@swc/helpers": "0.5.1",
|
|
20
|
+
"@teamsupercell/typings-for-css-modules-loader": "2.5.2",
|
|
27
21
|
"add-asset-html-webpack-plugin": "6.0.0",
|
|
28
|
-
"core-js": "3.
|
|
22
|
+
"core-js": "3.32.1",
|
|
29
23
|
"cross-env": "7.0.3",
|
|
30
|
-
"css-loader": "6.
|
|
31
|
-
"css-minimizer-webpack-plugin": "5.0.
|
|
32
|
-
"css-unicode-loader": "1.0.3",
|
|
24
|
+
"css-loader": "6.8.1",
|
|
25
|
+
"css-minimizer-webpack-plugin": "5.0.1",
|
|
33
26
|
"external-remotes-plugin": "1.0.0",
|
|
34
|
-
"html-webpack-plugin": "5.5.
|
|
35
|
-
"less": "4.
|
|
36
|
-
"less-loader": "11.1.
|
|
37
|
-
"mini-css-extract-plugin": "2.7.
|
|
27
|
+
"html-webpack-plugin": "5.5.3",
|
|
28
|
+
"less": "4.2.0",
|
|
29
|
+
"less-loader": "11.1.3",
|
|
30
|
+
"mini-css-extract-plugin": "2.7.6",
|
|
38
31
|
"mini-svg-data-uri": "1.4.4",
|
|
39
|
-
"
|
|
40
|
-
"portfinder": "1.0.32",
|
|
41
|
-
"rehype-accessible-emojis": "0.3.2",
|
|
42
|
-
"rehype-figure": "1.0.1",
|
|
43
|
-
"style-loader": "3.3.2",
|
|
32
|
+
"style-loader": "3.3.3",
|
|
44
33
|
"style-resources-loader": "1.5.0",
|
|
45
34
|
"swc-loader": "0.2.3",
|
|
46
|
-
"swc-plugin-another-transform-imports": "0.2.
|
|
35
|
+
"swc-plugin-another-transform-imports": "0.2.4",
|
|
47
36
|
"ts-import-plugin": "3.0.0",
|
|
48
|
-
"ts-loader": "9.4.
|
|
37
|
+
"ts-loader": "9.4.4",
|
|
49
38
|
"typescript": "5.0.4",
|
|
50
|
-
"webpack": "5.
|
|
51
|
-
"webpack-bundle-analyzer": "4.
|
|
52
|
-
"webpack-cli": "5.1.
|
|
53
|
-
"webpack-dev-server": "4.15.
|
|
54
|
-
"webpack-merge": "5.
|
|
39
|
+
"webpack": "5.77.0",
|
|
40
|
+
"webpack-bundle-analyzer": "4.9.0",
|
|
41
|
+
"webpack-cli": "5.1.4",
|
|
42
|
+
"webpack-dev-server": "4.15.1",
|
|
43
|
+
"webpack-merge": "5.9.0",
|
|
44
|
+
"webpack-virtual-modules": "0.5.0",
|
|
55
45
|
"webpackbar": "5.0.2",
|
|
56
|
-
"xml2js": "0.
|
|
46
|
+
"xml2js": "0.6.2"
|
|
57
47
|
},
|
|
58
48
|
"devDependencies": {
|
|
59
|
-
"@moneko/mock": "^1.0.9",
|
|
60
|
-
"@moneko/postcss": "^1.0.30",
|
|
61
|
-
"@solidjs/router": "^0.8.2",
|
|
62
49
|
"@swc/cli": "0.1.62",
|
|
63
|
-
"@types/
|
|
64
|
-
"@types/
|
|
65
|
-
"@types/
|
|
66
|
-
"@types/webpack-
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"stylelint-config-moneko": "
|
|
50
|
+
"@types/js-yaml": "4.0.5",
|
|
51
|
+
"@types/mini-css-extract-plugin": "2.5.1",
|
|
52
|
+
"@types/shelljs": "0.8.12",
|
|
53
|
+
"@types/webpack-bundle-analyzer": "4.6.0",
|
|
54
|
+
"@types/webpack-env": "1.18.1",
|
|
55
|
+
"eslint-config-neko": "1.1.1",
|
|
56
|
+
"shelljs": "0.8.5",
|
|
57
|
+
"stylelint-config-moneko": "1.0.17"
|
|
71
58
|
},
|
|
72
59
|
"files": [
|
|
73
60
|
"lib",
|
|
74
|
-
"build",
|
|
75
61
|
"template",
|
|
76
62
|
"typings/global.d.ts"
|
|
77
63
|
]
|
package/template/index.html
CHANGED
|
@@ -20,6 +20,10 @@
|
|
|
20
20
|
<%= customTag %>
|
|
21
21
|
</head>
|
|
22
22
|
<body>
|
|
23
|
-
<div id="root"
|
|
23
|
+
<div id="root">
|
|
24
|
+
<div style="width: 100%; height: 100vh; display: flex;justify-content: center;align-items: center;">
|
|
25
|
+
<svg xmlns="http://www.w3.org/2000/svg" style="margin:auto;background:0 0;display:block;shape-rendering:auto" width="289" height="180" preserveAspectRatio="xMidYMid"><g style="transform-origin:144.5px 90px;transform:scale(1)"><g style="transform:matrix(1,0,0,1,0,0);transform-origin:-106.379979px -18.690895px;animation:1s linear -.644286s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M41.85 69.65q.48-1.76.64-4.28.16-2.52 0-5.04t-.76-4.76q-.6-2.24-1.8-3.44-.48-.48-.76-.32-.28.16.12.8.8 1.44.76 4.44-.04 3-.52 6.52-.48 3.52-1.28 7.04t-1.6 6.16q-.4 1.12-.8 2.8-.4 1.68-.84 3.4-.44 1.72-.76 3.36t-.48 2.76q0 .24-.08.92t.16.84q.16 0 .48-.68.32-.68.4-.84 1.92-4.48 3.92-9.56t3.2-10.12" fill="#d2d2cb" stroke-width="none" style="fill:#d2d2cb"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:-104.214976px -7.74362px;animation:1s linear -.628571s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M40.01 89.17q.4-1.44 1.12-3.76.72-2.32 1.44-5.08.72-2.76 1.4-5.76.68-3 1.04-5.84t.24-5.24q-.12-2.4-.84-3.92-.08-.24-.32-.48t-.24.4q.16 5.12-1.04 10.24t-2.56 9.28q-1.04 3.28-2.12 6.56t-1.84 6.52q-.76 3.24-.96 6.36-.2 3.12.6 6 .32 1.04.56 1.04.24-.08.24-1.04 0-1.44.28-3.24.28-1.8.76-3.8.48-2 1.04-4.12t1.2-4.12" fill="#d2d2cb" stroke-width="none" style="fill:#4d695d"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:-111.122235px -9.275339px;animation:1s linear -.612857s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M38.49 111.09q-2.8-.32-5-2.8t-2.92-6.08q-.72-3.44-.36-7t1.24-6.68q1.28-4.8 3.04-9.88 1.76-5.08 3-10.04 1.24-4.96 1.4-9.56.16-4.6-1.6-8.44-.16-.08-.24-.36-.08-.28-.24-.2-.24 0-.08.56.64 3.68.08 7.96-.56 4.28-1.8 8.88-1.24 4.6-2.8 9.48-1.56 4.88-2.92 9.76-1.04 3.6-1.4 7.64-.36 4.04.52 8.12.48 2.08 1.48 3.76 1 1.68 2.36 2.84 1.36 1.16 2.96 1.8 1.6.64 3.28.56h.24q.08 0 .24-.08 0-.24-.48-.24" fill="#d2d2cb" stroke-width="none" style="fill:#83a79d"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:-108.070783px 14.809107px;animation:1s linear -.597143s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M36.09 107.09q-1.44-1.68-2.32-4.32-.08-.24-.24-.76l-.32-1.04q-.16-.52-.32-.96-.16-.44-.24-.44-.32 0-.32 1.04t.24 2.4q.24 1.36.72 2.76.48 1.4 1.12 2.2 1.28 1.44 2.6 1.76 1.32.32 2.68.32.48 0 .76-.28t-.44-.44q-2.32-.24-3.92-2.24" fill="#d2d2cb" stroke-width="none" style="fill:#dae8e5"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:-86.985215px 2.089108px;animation:1s linear -.581429s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M69.29 89.17q.24-2.16.08-4.56-.16-2.4-1-4.44-.84-2.04-2.56-3.4-1.72-1.36-4.52-1.36-3.76 0-6.56 2.04t-4.8 5.04q-2 3-3.12 6.4-1.12 3.4-1.44 6.2-.48 3.84-.12 6.64t1.32 4.6q.96 1.8 2.44 2.68 1.48.88 3.24.88 2.48.08 5.24-1.4 2.76-1.48 5.16-4.16 2.4-2.68 4.2-6.56 1.8-3.88 2.44-8.6zm-25.76 5.52q.32-3.2 1.6-7.04t3.56-7.12q2.28-3.28 5.48-5.48 3.2-2.2 7.44-2.2 3.2 0 5.28 1.52t3.2 3.88q1.12 2.36 1.44 5.12.32 2.76 0 5.24-.72 5.76-2.8 10t-4.88 7.08q-2.8 2.84-5.92 4.24-3.12 1.4-6 1.4-2.16 0-3.88-.96-1.72-.96-2.88-3t-1.6-5.2q-.44-3.16-.04-7.48zm8.96 11.28q-.4 0-.8-.28t-.64-.68q-.24-.4-.32-.8-.08-.4.32-.56.24-.08.64.56t.88.64q.8 0 1.88-1.04 1.08-1.04 2.08-2.44t1.76-2.76q.76-1.36 1.08-2 .32-.64.64-1.64.32-1 .6-2.04.28-1.04.48-2.04.2-1 .28-1.72.4-3.6-.16-5.56-.56-1.96-1.84-1.96-.96 0-2 .6t-1.96 1.56q-.92.96-1.64 2.12-.72 1.16-1.04 2.36-.4 1.36-.56 1.36-.24 0-.24-1.36.24-1.52 1.04-3t2-2.64q1.2-1.16 2.64-1.92 1.44-.76 2.96-.76t2.28 1.08q.76 1.08 1.08 2.64.32 1.56.28 3.2-.04 1.64-.2 2.6-.32 2.16-1 4.2-.68 2.04-1.64 4.12-.48.96-1.44 2.36t-2.2 2.68q-1.24 1.28-2.64 2.2-1.4.92-2.6.92zm2.56 1.52q.08.48-.76.8-.84.32-1.72.32-2.48-.08-3.8-1.6-1.32-1.52-1.84-3.6t-.48-4.32q.04-2.24.2-3.76.32-2.64 1.28-5.92t2.72-6.16q1.76-2.88 4.32-4.84 2.56-1.96 6.08-1.96 2.32 0 3.72 1.2 1.4 1.2 2.08 2.96.68 1.76.8 3.8t-.12 3.72q-.16 1.84-.56 3.36-.4 1.52-1.12 3.36-.24.56-.64 1.28t-.88.64q-.24-.08-.12-.64t.32-1.4q.2-.84.44-1.76t.32-1.72q.16-1.36.2-3.4.04-2.04-.32-3.96t-1.32-3.28q-.96-1.36-2.88-1.36-2.8 0-5.16 1.8-2.36 1.8-4.12 4.4-1.76 2.6-2.84 5.44-1.08 2.84-1.32 5-.16 1.28-.08 3.2.08 1.92.6 3.8t1.72 3.24q1.2 1.36 3.28 1.44.64.08 1.24-.12t.76.04" fill="#d2d2cb" stroke-width="none" style="fill:#30b0e0"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:-43.379211px -5.480892px;animation:1s linear -.565714s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M104.01 83.17q-.64 3.2-2.16 6.4t-2.88 6q-.08.16-.36.56-.28.4-.44.4-.24-.08-.24-.52v-.6q.08-.72.28-1.72t.36-2.08.36-2.08q.2-1 .44-1.8.72-2.72 1.2-4.68.48-1.96.72-3.56t.28-3.04q.04-1.44-.2-3.12-.08-.64.08-.8.16-.08.4.16.24.24.4.48 1.36 2.16 1.84 4.76.48 2.6-.08 5.24" fill="#d2d2cb" stroke-width="none" style="fill:#a1cde5"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:-41.109985px 2.209107px;animation:1s linear -.55s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M105.61 77.33l.32.48q1.04 1.52 1.04 4t-.48 5.08q-.48 2.6-1.2 5t-1.04 3.84q-.64 2.8-1.76 5.6t-1.92 4.96q-.08.24-.24.52-.16.28-.32.28t-.16-.32v-.56q-.24-4.4.96-8.6 1.2-4.2 2.56-8.52.8-2.64 1.52-5.4.72-2.76.64-6.04 0-.32.08-.32" fill="#d2d2cb" stroke-width="none" style="fill:#bfdeee"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:-57.851713px 1.885033px;animation:1s linear -.534286s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M98.41 76.45q-4.88 2-8.28 5.72-3.4 3.72-5.24 8.36-.8 2.08-1.2 3.72-.4 1.64-.64 3.56-.08.4.24.8t.64 0q1.44-1.76 3.68-4.48 2.24-2.72 4.48-5.76 2.24-3.04 4.04-6.16 1.8-3.12 2.28-5.76zm-5.36 27.12q-1.2 1.68-2.32 3.12-1.12 1.44-2.48 2.52-1.36 1.08-3.04 1.72-1.68.64-3.84.72-3.6.16-5.48-1.84-1.88-2-2.6-4.88-.72-2.88-.52-5.96.2-3.08.84-5.08.88-2.8 2.12-5.32 1.24-2.52 2.64-4.56 1.4-2.04 2.88-3.52t2.92-2.28q.08 0 .36-.16.28-.16.28.08.08 0-.08.24t-.32.4q-4.16 4.32-6.6 9.76-2.44 5.44-2.76 11.2-.08 1.44.12 3.12.2 1.68.8 3.16.6 1.48 1.72 2.48t3.04 1q1.52 0 2.8-.52 1.28-.52 2.4-1.36 1.12-.84 2.04-1.84.92-1 1.64-1.88 1.6-2 2.96-4.16 0-1.6.2-3.12t.6-3.04q.24-1.12.44-1.8.2-.68.4-1.28t.4-1.28q.2-.68.6-1.8-1.28 2.24-2.52 4.2t-2.64 3.76q-1.4 1.8-2.88 3.52t-3.24 3.48q-1.36 1.36-2.24.88-.88-.48-1.04-2.24-.16-2.72.28-5.28.44-2.56 1.56-5.36 1.04-2.56 2.6-4.96t3.6-4.36q2.04-1.96 4.52-3.36 2.48-1.4 5.28-1.88.16-.88.28-1.52.12-.64.2-1.28l.16-.88q.16-.08.36.16.2.24.36.64.96 2.64.64 5.28-.32 2.64-1.16 5.36-.84 2.72-1.96 5.56-1.12 2.84-1.84 5.72-.96 4.08-.52 8.44.44 4.36 3.4 7.88l.24.32q-.08.08-.48-.16-2.32-1.44-3.48-3.48-1.16-2.04-1.64-4.28" fill="#d2d2cb" stroke-width="none" style="fill:#bc252d"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:-58.343315px 1.437679px;animation:1s linear -.518571s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M95.85 75.25q.16.16-.04.24-.2.08-.84.24-1.04.32-2.52 1.2-1.48.88-3.12 2.24-1.64 1.36-3.24 3.16-1.6 1.8-2.8 3.88-1.2 2.16-2.04 4.24-.84 2.08-1.36 3.8-.52 1.72-.76 2.96t-.24 1.72v2.52q0 1.32.32 2.36.32 1.04 1.12 1.6t2.4.32q.08 0 .4-.12l.64-.24q.32-.12.6-.2.28-.08.36-.08.08.16-.12.4-.2.24-.52.52t-.6.52q-.28.24-.36.32-2 1.2-3.36.72-1.36-.48-2.12-1.8t-1.04-3.12q-.28-1.8-.2-3.24.16-2.8.88-5.56t1.84-5.56q.88-2.16 2.64-4.44 1.76-2.28 3.96-4.2 2.2-1.92 4.6-3.16 2.4-1.24 4.64-1.32.8 0 .88.08" fill="#d2d2cb" stroke-width="none" style="fill:#d2d2cb"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:-45.756649px 16.809107px;animation:1s linear -.502857s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M100.57 111.17q.16.24.08.32-.24 0-.64-.16-.24-.16-1.28-.96-1.04-.8-1.52-2.56-.16-.64-.28-1.64-.12-1-.12-1.88 0-.88.12-1.52t.36-.64q.24 0 .52.96t.36 1.2q.24 1.12.44 1.96.2.84.44 1.56.32.88.84 2t.68 1.36" fill="#d2d2cb" stroke-width="none" style="fill:#4d695d"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:-5.481979px -18.174894px;animation:1s linear -.487143s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M142.65 69.65q-1.12 5.04-2.92 10.04-1.8 5-3.56 9.48-.08.4-.4 1.04t-.72.48q-.08 0-.08-.72t.08-.96q.16-1.12.44-2.68t.64-3.16q.36-1.6.76-3.16t.72-2.68q.24-.48.6-2.16.36-1.68.76-3.96.4-2.28.72-4.92.32-2.64.4-5.08.08-2.44-.04-4.44-.12-2-.68-2.96-.4-.8-.16-.88.32 0 .72.4 1.2 1.2 1.88 3.24.68 2.04 1 4.4.32 2.36.24 4.68-.08 2.32-.4 4" fill="#d2d2cb" stroke-width="none" style="fill:#83a79d"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:-3.125813px -7.088036px;animation:1s linear -.471429s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M144.73 60.77q.8 1.6.96 3.92.16 2.32-.08 5t-.76 5.52q-.52 2.84-1.16 5.44-.64 2.6-1.24 4.84-.6 2.24-1 3.68-1.12 4.16-2.04 8.28-.92 4.12-.92 7 0 1.04-.08 1.04-.16.16-.36-.24-.2-.4-.36-.8-.8-2.88-.68-5.96t.76-6.32q.64-3.24 1.64-6.56 1-3.32 1.96-6.6 1.12-4.16 2.24-8.68t.72-9.56q0-.4-.04-.44-.04-.04.04-.04.16 0 .4.48" fill="#d2d2cb" stroke-width="none" style="fill:#dae8e5"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:-20.039978px -8.560894px;animation:1s linear -.455714s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M133.21 77.17q-4.8 2.08-8.2 5.8-3.4 3.72-5.16 8.28-.72 1.92-1.16 3.64-.44 1.72-.6 3.64-.08.96.48.72.56-.24.96-.72.96-1.2 1.76-2.36t1.64-2.4q.84-1.24 1.76-2.64.92-1.4 2.04-3 1.2-1.68 2.28-3.32 1.08-1.64 1.92-3.08.84-1.44 1.44-2.64.6-1.2.84-1.92zm-1.76 6.32q-2.88 5.6-5.92 10.52t-6.96 9q-2.48 2.64-2.96-.8-.16-2.72.4-5.68.56-2.96 1.68-5.6 1.04-2.56 2.56-4.96t3.52-4.4q2-2 4.44-3.36 2.44-1.36 5.24-1.84.96-3.36 1.84-6.6.88-3.24 1.44-6.36.56-3.12.6-6.04.04-2.92-.52-5.56-.16-.48-.08-.48.16-.08.28.16.12.24.12.32 1.92 3.84 1.88 8.24-.04 4.4-1.08 9.12-1.04 4.72-2.6 9.6t-2.68 9.76q-.72 3.12-.84 6.68-.12 3.56.68 7 .8 3.6 2.96 6.12t4.96 2.76q.64.08.64.24 0 .16-.2.2-.2.04-.36.04-1.68 0-3.32-.64t-3.08-1.84q-1.44-1.2-2.52-2.84t-1.56-3.72q-.16-.64-.16-1.04-2.24 4.24-5.4 6.84-3.16 2.6-7.96 3-3.6.24-5.48-1.68-1.88-1.92-2.6-4.64-.72-2.72-.48-5.72.24-3 .88-4.92 1.84-5.52 4.64-9.72 2.8-4.2 5.6-5.88.16-.16.48-.28.32-.12.4-.04.16.08-.08.32l-.32.32q-4.32 4.32-6.68 9.88-2.36 5.56-2.52 11.32-.08 1.44.08 3.12.16 1.68.76 3.16.6 1.48 1.72 2.48t3.04 1q2.72.08 5.16-1.64t4.24-4.24q1.8-2.52 2.92-5.4 1.12-2.88 1.28-5.28-.56.64-.96 1.32-.4.68-1.04 1.48-.08.16-.48.52-.4.36-.64.28-.16-.08.16-.92.32-.84.8-1.84.48-1 .96-1.92.48-.92.64-1.24.88-1.84 1.36-3.68.48-1.84 1.12-4" fill="#d2d2cb" stroke-width="none" style="fill:#30b0e0"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:-6.232479px 14.829108px;animation:1s linear -.44s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M142.57 109.49q0 .16-.4.32-.24.08-.4.08-1.52.16-2.84-.16-1.32-.32-2.68-1.68-.72-.72-1.24-2.16-.52-1.44-.8-2.8-.28-1.36-.24-2.4.04-1.04.36-.96.08-.08.28.32t.36.92l.32 1.04q.16.52.24.76.4 1.28.96 2.32.56 1.04 1.36 1.84 1.92 2.24 4.16 2.32.16 0 .36.04.2.04.2.2" fill="#d2d2cb" stroke-width="none" style="fill:#a1cde5"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:-23.213318px 1.764662px;animation:1s linear -.424286s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M130.97 75.73q0 .08-.12.16t-.6.24q-1.04.4-2.56 1.32t-3.2 2.28q-1.68 1.36-3.32 3.16t-2.84 3.88q-1.2 2.16-2.04 4.2-.84 2.04-1.32 3.76-.48 1.72-.68 2.92-.2 1.2-.28 1.6-.08 1.36-.08 2.68t.36 2.4q.36 1.08 1.16 1.64.8.56 2.4.32.16 0 1-.36t1-.28q.08.08-.08.32t-.48.52q-.32.28-.6.48-.28.2-.36.28-.72.4-1.6.6-.88.2-1.72.04t-1.56-.68q-.72-.52-1.04-1.48-.88-2.96-.8-5.76.16-2.8.72-5.56.56-2.76 1.92-5.56.8-2.16 2.52-4.48 1.72-2.32 3.96-4.24 2.24-1.92 4.68-3.2 2.44-1.28 4.6-1.36h.64q.32 0 .32.16" fill="#d2d2cb" stroke-width="none" style="fill:#bfdeee"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:10.532883px -4.070892px;animation:1s linear -.408571s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M157.85 84.93q.24-1.04.28-2.4.04-1.36-.2-2.8-.24-1.44-.84-2.76-.6-1.32-1.56-2.28-.48-.32-.56-.32-.32 0 0 .48.48 1.04.36 3.24t-.52 4.56q-.4 2.36-.84 4.24-.44 1.88-.52 2.28-.56 1.44-1 3.6-.44 2.16-.44 3.52-.08.16-.08.64t.24.56q.08 0 .32-.4t.4-.56q1.44-2.56 2.76-5.6 1.32-3.04 2.2-6" fill="#d2d2cb" stroke-width="none" style="fill:#bc252d"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:12.820015px 3.449107px;animation:1s linear -.392857s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M158.17 97.01q.32-1.44 1.04-3.72.72-2.28 1.2-4.72t.48-4.8q0-2.36-.96-3.88-.32-.32-.48-.32-.16 0-.08.32 0 3.04-.68 5.64-.68 2.6-1.48 5.08-1.36 4.08-2.48 7.96-1.12 3.88-.96 7.96 0 .24.04.52t.28.28q.16 0 .24-.16l.24-.48q.8-1.92 1.84-4.52 1.04-2.6 1.76-5.16" fill="#d2d2cb" stroke-width="none" style="fill:#d2d2cb"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:5.805752px 2.231329px;animation:1s linear -.377143s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M152.49 111.33q-1.52-1.6-2.32-3.56-.8-1.96-1.12-4-.32-2.04-.16-4.12t.64-3.92q.72-2.88 1.84-5.76t1.92-5.72q.8-2.84.92-5.6t-1.16-5.4q-.24-.4-.32-.4-.08 0-.08.12t.08.2q.24 2.4-.32 4.96t-1.44 5.24q-.88 2.68-1.96 5.52-1.08 2.84-1.8 5.8-.56 2.16-.76 4.4-.2 2.24.28 4.44.48 2.2 1.76 4.2t3.68 3.68q.16.16.4.2.24.04-.08-.28" fill="#d2d2cb" stroke-width="none" style="fill:#4d695d"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:8.416683px 17.169107px;animation:1s linear -.361429s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M153.13 108.29q-.24-.64-.52-1.6-.28-.96-.44-1.84-.16-.32-.4-1.2-.24-.88-.4-.88-.32 0-.44.56t-.12 1.4q0 .84.12 1.76t.36 1.56q.48 1.6 1.16 2.24.68.64 1.8 1.04.48.24.72.24.08 0 .04-.12t-.12-.12q-.56-.64-1-1.36-.44-.72-.76-1.68" fill="#d2d2cb" stroke-width="none" style="fill:#83a79d"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:16.390022px -28.590895px;animation:1s linear -.345714s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M159.37 66.93q-.4 0-1.24-.12t-.84-.76q0-.24.72-.6t1.6-1.04q.88-.68 1.6-1.76.72-1.08.72-2.76 0-2.08-.8-3.12-.16-.24-.4-.52-.24-.28-.16-.36.16 0 .36.12.2.12.28.2 1.6.88 2.44 2.28.84 1.4.84 2.68 0 2.56-1.2 4.16t-3.92 1.6" fill="#d2d2cb" stroke-width="none" style="fill:#dae8e5"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:13.350014px -30.419821px;animation:1s linear -.33s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M156.41 63.73q-.96.4-.96-.48 0-.64.48-1.24t.92-1.32q.44-.72.6-1.64.16-.92-.48-2.28-.16-.4-.56-.88t-.24-.56q.16-.08.68.12t.68.28q1.36.64 2.04 1.92.68 1.28.68 2.24 0 1.52-1.24 2.52t-2.6 1.32" fill="#d2d2cb" stroke-width="none" style="fill:#30b0e0"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:10.550026px -30.630892px;animation:1s linear -.314286s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M154.09 59.41q0-.4.24-.92t.8-.52q.4 0 .64.52t.24.92q0 .32-.24.84t-.64.52q-.56 0-.8-.48t-.24-.88" fill="#d2d2cb" stroke-width="none" style="fill:#a1cde5"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:37.019875px 2.357107px;animation:1s linear -.298571s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M189.37 82.61q.16 2.48-.32 4.76t-1.2 4.2q-.16.4-.52.88t-.68.32q-.16 0-.08-.56t.08-.8q.08-.88.12-2.2.04-1.32.04-2.68t-.12-2.6q-.12-1.24-.36-2.12-.72-2.56-2.28-2.84-1.56-.28-3.16.84t-3.04 3.12q-1.44 2-1.92 3.92.48-.72 1.24-1.72t1.72-1.92q.96-.92 2.04-1.52t2.04-.52q1.04.08 1.48 1.12.44 1.04.52 2.56.08 1.52-.16 3.28-.24 1.76-.56 3.28-.56 2.48-.96 5.12-.4 2.64-.28 5.16t.88 4.88q.76 2.36 2.6 4.36.16.24.24.4.08.16-.4-.08-2.08-1.2-3.32-2.8-1.24-1.6-1.88-3.44-.64-1.84-.76-3.84-.12-2 .04-4 .32-2.88.96-5.04.64-2.16.96-4.88.16-1.68-.24-2.2-.4-.52-.96-.6-.8-.08-1.8.84-1 .92-2.08 2.6-1.08 1.68-2.08 3.92t-1.72 4.72q-.64 2.48-1.56 5.16t-1.72 4.6q-.32.72-.48.72-.16 0-.28-.32-.12-.32-.12-.48-.32-4 .72-7.92t2.4-7.92q.8-2.48 1.44-4.4.64-1.92.64-4.88 0-1.28.64-2.68.64-1.4 1.88-2.56 1.24-1.16 3.08-1.88t4.16-.64q3.84.08 5.92 1.8t2.92 4.36q.84 2.64.72 5.72-.12 3.08-.68 5.96-.48 2.16-1.12 3.92-.64 1.76-1.36 3.28-.72 1.52-1.36 2.88-.64 1.36-1.04 2.72-.08.24-.16.52t-.24.28q-.16 0-.24-.32-.08-.32-.08-.72-.16-2.72.56-5.24.72-2.52 1.52-5.2t1.2-5.64q.4-2.96-.32-6.56-.72-3.84-3.52-5.12-2.8-1.28-6.4.16-.48.24-1.28.72t-1.56 1.28q-.76.8-1.4 1.88-.64 1.08-.8 2.36.96-1.44 2.24-2.72 1.28-1.28 2.72-2.04 1.44-.76 2.92-.92 1.48-.16 2.92.56 1.68.88 2.32 2.44.64 1.56.72 2.92" fill="#d2d2cb" stroke-width="none" style="fill:#bfdeee"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:25.772522px -4.064739px;animation:1s linear -.282857s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M173.05 84.77q-.88 3.04-2.36 6t-2.44 5.68q-.08.16-.28.6-.2.44-.52.36-.16-.08-.2-.52-.04-.44-.04-.68 0-1.28.44-3.4t.92-3.48q.16-.48.6-2.44.44-1.96.8-4.28.36-2.32.48-4.48.12-2.16-.44-3.12-.32-.56 0-.56.24 0 .64.4.96.88 1.56 2.16.6 1.28.88 2.68.28 1.4.24 2.76-.04 1.36-.28 2.32" fill="#d2d2cb" stroke-width="none" style="fill:#bc252d"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:42.387352px 15.062441px;animation:1s linear -.267143s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M189.37 111.25q-.16.08-.64-.08-.24-.08-.4-.16-1.12-.72-1.92-1.64-.8-.92-1.6-3.16-.24-.8-.36-2.04t-.04-2.44q.08-1.2.28-2.04.2-.84.6-.84.16 0 .36.92.2.92.4 2.12.2 1.2.44 2.4t.4 1.76l.8 2.4q.4 1.2 1.28 2.08.16.16.32.44t.08.28" fill="#d2d2cb" stroke-width="none" style="fill:#d2d2cb"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:21.080132px 2.374821px;animation:1s linear -.251429s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M167.77 111.41q-2.48-1.68-3.8-3.68-1.32-2-1.8-4.16t-.36-4.4q.12-2.24.6-4.4.64-2.88 1.64-5.72 1-2.84 1.92-5.52.92-2.68 1.44-5.24.52-2.56.12-4.88 0-.32.08-.32.16 0 .4.4 1.44 2.56 1.36 5.28-.08 2.72-.88 5.56-.8 2.84-1.96 5.76t-1.8 5.88q-.4 1.84-.52 3.88t.28 4.04q.4 2 1.32 3.92t2.52 3.44q.32.16.16.32t-.36.04q-.2-.12-.36-.2" fill="#d2d2cb" stroke-width="none" style="fill:#4d695d"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:24.043343px 17.231964px;animation:1s linear -.235714s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M170.81 111.73q-.24.16-.64-.24-.88-.64-1.72-1.36-.84-.72-1.64-2.32-.32-.56-.48-1.44-.16-.88-.16-1.72t.12-1.4q.12-.56.36-.56.32.08.52.88t.36 1.04q.32.88.56 1.64.24.76.56 1.48.48 1.12.96 1.92.48.8 1.12 1.6.08.08.16.24.08.16-.08.24" fill="#d2d2cb" stroke-width="none" style="fill:#83a79d"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:76.190018px 5.601109px;animation:1s linear -.22s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M224.89 75.81v-.24q-.16-.08-.36.24-.2.32-.36.48-1.2 1.52-2.16 3.76-.96 2.24-1.64 4.72-.68 2.48-1.12 4.96-.44 2.48-.76 4.4-.4 2.72-.68 5.16t-.52 4.76q-.24 2.32-.4 4.68-.16 2.36-.4 4.84.08.08.08.44v1.36q0 .28.16.28.08 0 .24-.28.16-.28.32-.6.16-.32.24-.64l.08-.32q.88-1.92 1.52-4.48.64-2.56 1.04-5.12.08-.64.32-2.64t.56-4.64q.32-2.64.76-5.72.44-3.08.88-5.92t.96-5.16q.52-2.32 1-3.52.08-.32.16-.48.08-.16.08-.32" fill="#d2d2cb" stroke-width="none" style="fill:#dae8e5"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:67.812241px -.882688px;animation:1s linear -.204286s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M222.25 75.25q0-.08-.56-.08-.24 0-.48.08-3.04.32-5.6 1.64-2.56 1.32-4.68 3.28-2.12 1.96-3.76 4.44-1.64 2.48-2.68 5.12-1.12 2.72-1.68 5.76-.56 3.04-.4 5.68.24 3.44 3.04.64 2.4-2.4 4.52-5.2 2.12-2.8 4-5.92t3.56-6.36q1.68-3.24 3.36-6.52.32-.64.24-.64-.16-.16-.36 0-.2.16-.2.32-4.32 5.52-8.04 10.56-3.72 5.04-6.84 10-.4.4-.52.24-.12-.16-.04-.56.16-1.84.6-3.8.44-1.96 1.24-3.96 1.92-4.88 5.52-8.64 3.6-3.76 9.04-5.6.72-.32.72-.48" fill="#d2d2cb" stroke-width="none" style="fill:#30b0e0"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:63.618591px .729107px;animation:1s linear -.188571s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M217.93 74.69q-.08-.16-.36-.16h-.52q-2.24 0-4.68 1.28-2.44 1.28-4.68 3.24-2.24 1.96-4 4.32-1.76 2.36-2.64 4.52-1.12 2.88-1.88 5.56-.76 2.68-.84 5.4-.08 1.44.12 2.8.2 1.36.76 2.96.32.96 1.08 1.52t1.6.72q.84.16 1.72 0t1.52-.64q.08-.08.36-.32.28-.24.56-.52t.48-.52q.2-.24.12-.4-.08-.16-.76.2t-1.16.44q-1.68.32-2.52-.24-.84-.56-1.2-1.64-.36-1.08-.32-2.4.04-1.32.2-2.6 0-.48.2-1.68t.68-2.92q.48-1.72 1.32-3.8.84-2.08 2.04-4.16 1.2-2.08 2.84-3.84 1.64-1.76 3.32-3.12t3.24-2.24q1.56-.88 2.68-1.2.56-.16.64-.28.08-.12.08-.28" fill="#d2d2cb" stroke-width="none" style="fill:#a1cde5"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:67.344307px 13.990774px;animation:1s linear -.172857s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M227.61 74.13v-.32q-.24 0-.4.32-.08.16-.16.4-2.4 4.96-3.36 10.2-.96 5.24-1.44 10.68-.48 5.44-.96 10.96-.48 5.52-1.92 11.04-.48 1.76-.96 3.68-.48 1.92-1.28 3.76-.8 1.84-2.12 3.48t-3.56 2.76q-2.56 1.36-4.72 1.16-2.16-.2-4-1.16-1.84-.96-3.36-2.44-1.52-1.48-2.64-2.68-.16-.16-.32-.36-.16-.2-.24-.12-.16.08-.04.36.12.28.2.44 1.84 3.44 5.6 6 .88.64 2.16 1.12 1.28.48 2.76.68 1.48.2 3.04-.08t3-1.24q2.64-1.76 4.2-3.72 1.56-1.96 2.52-4t1.48-4.2q.52-2.16 1-4.24 1.36-5.44 1.88-10.84.52-5.4.84-10.68.32-5.28.8-10.44.48-5.16 1.84-10.04.16-.32.16-.48" fill="#d2d2cb" stroke-width="none" style="fill:#bfdeee"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:63.203522px 12.401834px;animation:1s linear -.157143s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M218.17 89.09q.4-1.68 1.08-3.48t1.08-3.56q0-.16.12-.56t.04-.4q-.16-.08-.48.4-.32.48-.32.56-1.12 1.84-2 3.88-.88 2.04-1.6 3.72-.16.4-.68 1.36-.52.96-1.04 2.04t-.88 2q-.36.92-.12 1.08.16 0 .48-.36.32-.36.48-.52.24-.4.56-.84.32-.44.64-.84-.48 2-.84 3.32-.36 1.32-.76 2.36-.4 1.04-.92 1.96-.52.92-1.4 2.12-.64.88-1.56 1.88-.92 1-2.08 1.84-1.16.84-2.52 1.36-1.36.52-2.88.52-1.92 0-3.04-1t-1.68-2.48q-.56-1.48-.72-3.16-.16-1.68-.08-3.12.32-5.76 2.68-11.24 2.36-5.48 6.6-9.8 0-.08.24-.32t.24-.32q-.16-.16-.4 0l-.32.16q-1.44.88-3 2.4t-2.96 3.56q-1.4 2.04-2.56 4.52-1.16 2.48-1.96 5.12-.4 1.36-.6 3.24-.2 1.88-.08 3.92.12 2.04.56 4.08.44 2.04 1.44 3.6t2.56 2.48q1.56.92 3.88.76 2.32-.16 3.72-.8 1.4-.64 2.28-1.36 1.12-.88 2-1.84.88-.96 1.76-1.84-.48 2.8-.92 4.76-.44 1.96-.84 3.72-.56 2.4-1.04 4.6-.48 2.2-1.04 3.88-.56 1.68-1.28 2.76-.72 1.08-1.68 1.24-1.12 0-1.12.24-.08.24.32.4.4.16.8.24 1.2.24 2.28-.4 1.08-.64 1.92-1.88.84-1.24 1.52-2.92t1.16-3.44q.96-3.68 1.6-7.16.64-3.48 1.2-7.32.56-3.76.92-7.52t1.24-7.6" fill="#d2d2cb" stroke-width="none" style="fill:#bc252d"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:58.411324px 36.894824px;animation:1s linear -.141429s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M209.21 128.77q-.16-.16-.44-.12-.28.04-.36.04-1.36.24-2.68-.08t-2.68-.88q-1.52-.64-2.8-1.56-1.28-.92-2.88-1.96-.16-.16-.48-.32-.32-.16-.32 0-.08.08.12.4t.36.48q1.04 1.36 2.2 2.56 1.16 1.2 3 1.92 1.2.48 2.48.64 1.28.16 2.36.04 1.08-.12 1.72-.44.64-.32.4-.72" fill="#d2d2cb" stroke-width="none" style="fill:#d2d2cb"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:91.190025px 17.449108px;animation:1s linear -.125714s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M234.17 112.93q-.4 0-1.24-.12t-.84-.76q0-.24.72-.6t1.6-1q.88-.64 1.6-1.72.72-1.08.72-2.76 0-2.08-.8-3.12-.16-.24-.4-.52-.24-.28-.16-.36.16 0 .36.12.2.12.28.2 1.6.88 2.44 2.28.84 1.4.84 2.68 0 2.56-1.2 4.12t-3.92 1.56" fill="#d2d2cb" stroke-width="none" style="fill:#4d695d"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:88.150017px 15.660178px;animation:1s linear -.11s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M231.21 109.81q-.96.4-.96-.48 0-.64.48-1.24t.92-1.32q.44-.72.6-1.64.16-.92-.48-2.28-.16-.4-.56-.88t-.24-.56q.16-.08.68.12t.68.28q1.36.64 2.04 1.92.68 1.28.68 2.24 0 1.52-1.24 2.52t-2.6 1.32" fill="#d2d2cb" stroke-width="none" style="fill:#83a79d"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:85.350021px 15.449107px;animation:1s linear -.094286s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M228.89 105.49q0-.4.24-.92t.8-.52q.4 0 .64.52t.24.92q0 .32-.24.84t-.64.52q-.56 0-.8-.48t-.24-.88" fill="#d2d2cb" stroke-width="none" style="fill:#dae8e5"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:111.350014px 17.449108px;animation:1s linear -.078571s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M254.33 112.93q-.4 0-1.24-.12t-.84-.76q0-.24.72-.6t1.6-1q.88-.64 1.6-1.72.72-1.08.72-2.76 0-2.08-.8-3.12-.16-.24-.4-.52-.24-.28-.16-.36.16 0 .36.12.2.12.28.2 1.6.88 2.44 2.28.84 1.4.84 2.68 0 2.56-1.2 4.12t-3.92 1.56" fill="#d2d2cb" stroke-width="none" style="fill:#30b0e0"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:108.31002px 15.660178px;animation:1s linear -.062857s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M251.37 109.81q-.96.4-.96-.48 0-.64.48-1.24t.92-1.32q.44-.72.6-1.64.16-.92-.48-2.28-.16-.4-.56-.88t-.24-.56q.16-.08.68.12t.68.28q1.36.64 2.04 1.92.68 1.28.68 2.24 0 1.52-1.24 2.52t-2.6 1.32" fill="#d2d2cb" stroke-width="none" style="fill:#a1cde5"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:105.510017px 15.449107px;animation:1s linear -.047143s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M249.05 105.49q0-.4.24-.92t.8-.52q.4 0 .64.52t.24.92q0 .32-.24.84t-.64.52q-.56 0-.8-.48t-.24-.88" fill="#d2d2cb" stroke-width="none" style="fill:#bfdeee"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:131.510017px 17.449108px;animation:1s linear -.031429s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M274.49 112.93q-.4 0-1.24-.12t-.84-.76q0-.24.72-.6t1.6-1q.88-.64 1.6-1.72.72-1.08.72-2.76 0-2.08-.8-3.12-.16-.24-.4-.52-.24-.28-.16-.36.16 0 .36.12.2.12.28.2 1.6.88 2.44 2.28.84 1.4.84 2.68 0 2.56-1.2 4.12t-3.92 1.56" fill="#d2d2cb" stroke-width="none" style="fill:#bc252d"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:128.470024px 15.660178px;animation:1s linear -.015714s infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M271.53 109.81q-.96.4-.96-.48 0-.64.48-1.24t.92-1.32q.44-.72.6-1.64.16-.92-.48-2.28-.16-.4-.56-.88t-.24-.56q.16-.08.68.12t.68.28q1.36.64 2.04 1.92.68 1.28.68 2.24 0 1.52-1.24 2.52t-2.6 1.32" fill="#d2d2cb" stroke-width="none" style="fill:#d2d2cb"/></g><g style="transform:matrix(1,0,0,1,0,0);transform-origin:125.670029px 15.449107px;animation:1s linear infinite forwards bounce-3c330417-32e6-452f-bc30-b486e5f258a7"><path d="M269.21 105.49q0-.4.24-.92t.8-.52q.4 0 .64.52t.24.92q0 .32-.24.84t-.64.52q-.56 0-.8-.48t-.24-.88" fill="#d2d2cb" stroke-width="none" style="fill:#4d695d"/></g></g><style id="bounce-3c330417-32e6-452f-bc30-b486e5f258a7">@keyframes bounce-3c330417-32e6-452f-bc30-b486e5f258a7{0%{animation-timing-function:cubic-bezier(.1361,.2514,.2175,.8786);transform:translate(0,0) scaleY(1)}37%{animation-timing-function:cubic-bezier(.7674,.1844,.8382,.7157);transform:translate(0,-39.96px) scaleY(1)}72%{animation-timing-function:cubic-bezier(.1118,.2149,.2172,.941);transform:translate(0,0) scaleY(1)}87%{animation-timing-function:cubic-bezier(.7494,.2259,.8209,.6963);transform:translate(0,19.900000000000002px) scaleY(.602)}}</style></svg>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
24
28
|
</body>
|
|
25
29
|
</html>
|
package/typings/global.d.ts
CHANGED
|
@@ -1,27 +1,23 @@
|
|
|
1
|
-
/* eslint-disable no-unused-vars */
|
|
2
1
|
import { Options as AssetHtmlOptions } from 'add-asset-html-webpack-plugin';
|
|
3
2
|
import { Options as HtmlWebpackPluginOptions } from 'html-webpack-plugin';
|
|
4
3
|
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
|
|
4
|
+
import type { Options as MDXOptions } from '@mdx-js/loader';
|
|
5
5
|
import type { JsMinifyOptions, Config as SwcConfig } from '@swc/core';
|
|
6
6
|
import type { CssNanoOptionsExtended } from 'css-minimizer-webpack-plugin';
|
|
7
7
|
import type { MinifyOptions } from 'terser';
|
|
8
8
|
import type { Options } from 'ts-import-plugin';
|
|
9
|
-
import type { RuleSetRule, WebpackPluginInstance
|
|
9
|
+
import type { Configuration, ExternalsPresets, RuleSetRule, WebpackPluginInstance } from 'webpack';
|
|
10
10
|
import type {
|
|
11
11
|
ProxyArray,
|
|
12
12
|
ProxyConfigArray,
|
|
13
13
|
ProxyConfigMap,
|
|
14
14
|
WebpackConfiguration,
|
|
15
15
|
} from 'webpack-dev-server';
|
|
16
|
+
import type { State } from 'webpackbar';
|
|
16
17
|
|
|
17
18
|
export type MinifierType = 'swc' | 'terser';
|
|
18
|
-
export declare type AppType =
|
|
19
|
-
|
|
20
|
-
| 'mobile'
|
|
21
|
-
| 'site'
|
|
22
|
-
| 'back-stage'
|
|
23
|
-
| 'single-spa'
|
|
24
|
-
| 'library';
|
|
19
|
+
export declare type AppType = 'mobile' | 'site' | 'backstage' | 'micro' | 'library';
|
|
20
|
+
export declare type Framework = 'react' | 'solid';
|
|
25
21
|
export type TerserOptions = MinifyOptions;
|
|
26
22
|
export type SwcOptions = JsMinifyOptions;
|
|
27
23
|
export type HtmlWebpackOption = HtmlWebpackPluginOptions & {
|
|
@@ -41,7 +37,7 @@ export interface Theme {
|
|
|
41
37
|
errorColor?: string;
|
|
42
38
|
warningColor?: string;
|
|
43
39
|
}
|
|
44
|
-
export declare type ConfigType<T
|
|
40
|
+
export declare type ConfigType<T extends 'tsc' | 'swc' = 'swc'> = {
|
|
45
41
|
/** 渲染模式
|
|
46
42
|
* @default 'csr'
|
|
47
43
|
*/
|
|
@@ -67,22 +63,28 @@ export declare type ConfigType<T = 'tsc'> = {
|
|
|
67
63
|
**/
|
|
68
64
|
entry?: Record<string, string> | string;
|
|
69
65
|
/** 压缩配置 */
|
|
70
|
-
minifier:
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
66
|
+
minifier:
|
|
67
|
+
| {
|
|
68
|
+
js?:
|
|
69
|
+
| {
|
|
70
|
+
/**
|
|
71
|
+
* @default 'swc'
|
|
72
|
+
*/
|
|
73
|
+
type?: MinifierType;
|
|
74
|
+
options?: SwcOptions | TerserOptions;
|
|
75
|
+
}
|
|
76
|
+
| false;
|
|
77
|
+
css?:
|
|
78
|
+
| {
|
|
79
|
+
/**
|
|
80
|
+
* @default 'swc'
|
|
81
|
+
*/
|
|
82
|
+
type?: CssMinify;
|
|
83
|
+
options?: CssNanoOptionsExtended;
|
|
84
|
+
}
|
|
85
|
+
| false;
|
|
86
|
+
}
|
|
87
|
+
| false;
|
|
86
88
|
/** 环境变量, 可通过 process.env 获取 */
|
|
87
89
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
88
90
|
env?: Record<string, any>;
|
|
@@ -93,7 +95,7 @@ export declare type ConfigType<T = 'tsc'> = {
|
|
|
93
95
|
devtool?: Configuration['devtool'];
|
|
94
96
|
sourceMap?: SourceMapDevToolPluginOptions | false;
|
|
95
97
|
/** 路径别名映射 */
|
|
96
|
-
alias
|
|
98
|
+
alias: {
|
|
97
99
|
[key: string]: string;
|
|
98
100
|
};
|
|
99
101
|
/** 根路由 */
|
|
@@ -102,10 +104,12 @@ export declare type ConfigType<T = 'tsc'> = {
|
|
|
102
104
|
* @default /
|
|
103
105
|
* */
|
|
104
106
|
publicPath: string;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
rem?: {
|
|
108
|
+
/** 设计图尺寸, 用于计算rem
|
|
109
|
+
* @default 1680
|
|
110
|
+
* */
|
|
111
|
+
designSize: number;
|
|
112
|
+
} | null;
|
|
109
113
|
/** 自定义降级组件 */
|
|
110
114
|
fallbackCompPath?: string | null;
|
|
111
115
|
/** less 全局变量 */
|
|
@@ -174,7 +178,7 @@ export declare type ConfigType<T = 'tsc'> = {
|
|
|
174
178
|
compress?: boolean;
|
|
175
179
|
};
|
|
176
180
|
/** HtmlWebpackPlugin Option */
|
|
177
|
-
htmlPluginOption: HtmlWebpackOption;
|
|
181
|
+
htmlPluginOption: HtmlWebpackOption | false;
|
|
178
182
|
/** 自定义插入 html 的 js 和 css
|
|
179
183
|
* @example
|
|
180
184
|
* const conf = {
|
|
@@ -214,6 +218,9 @@ export declare type ConfigType<T = 'tsc'> = {
|
|
|
214
218
|
plugins: WebpackPluginInstance[];
|
|
215
219
|
/** 对生产chunk进行拆分 */
|
|
216
220
|
splitChunk?: false | OptimizationSplitChunksOptions;
|
|
221
|
+
/** 拆分 runtime 代码
|
|
222
|
+
* @default 'single'
|
|
223
|
+
*/
|
|
217
224
|
runtimeChunk?:
|
|
218
225
|
| boolean
|
|
219
226
|
| 'single'
|
|
@@ -235,7 +242,17 @@ export declare type ConfigType<T = 'tsc'> = {
|
|
|
235
242
|
media?: string[];
|
|
236
243
|
fonts?: string[];
|
|
237
244
|
};
|
|
238
|
-
|
|
245
|
+
/** bundle分析
|
|
246
|
+
* @default false
|
|
247
|
+
* @example
|
|
248
|
+
* // 推荐
|
|
249
|
+
* {
|
|
250
|
+
* analyzerMode: 'static',
|
|
251
|
+
* reportFilename: 'report.html',
|
|
252
|
+
* openAnalyzer: false,
|
|
253
|
+
* }
|
|
254
|
+
*/
|
|
255
|
+
bundleAnalyzer: BundleAnalyzerPlugin.Options | false;
|
|
239
256
|
/** seo优化
|
|
240
257
|
* @default false
|
|
241
258
|
*/
|
|
@@ -255,6 +272,36 @@ export declare type ConfigType<T = 'tsc'> = {
|
|
|
255
272
|
| false;
|
|
256
273
|
/** 📦 打包完成 */
|
|
257
274
|
done?: () => void;
|
|
275
|
+
mdx?: MDXOptions;
|
|
276
|
+
jsxDomExpressions?: {
|
|
277
|
+
moduleName?: string;
|
|
278
|
+
builtIns?: string[];
|
|
279
|
+
contextToCustomElements?: boolean;
|
|
280
|
+
wrapConditionals?: boolean;
|
|
281
|
+
generate?: 'ssr' | 'dom';
|
|
282
|
+
hydratable?: boolean;
|
|
283
|
+
};
|
|
284
|
+
bar?: Partial<State> | false;
|
|
285
|
+
/** 虚拟模块
|
|
286
|
+
* @example
|
|
287
|
+
* const conf = {
|
|
288
|
+
* virtualModule: {
|
|
289
|
+
* 'custom-module-1': 'export default { name: "user1" };'
|
|
290
|
+
* 'custom-module-2': { age: 12 }
|
|
291
|
+
* }
|
|
292
|
+
* }
|
|
293
|
+
* // 使用
|
|
294
|
+
* import a from 'custom-module-1';
|
|
295
|
+
* import b from 'custom-module-2';
|
|
296
|
+
* console.log(a); // { name: "user1" }
|
|
297
|
+
* console.log(b); // { age: 12 }
|
|
298
|
+
*/
|
|
299
|
+
virtualModule?: Record<string, string | object>;
|
|
300
|
+
/** 是否使用 normalize css
|
|
301
|
+
* @default true
|
|
302
|
+
*/
|
|
303
|
+
normalizeCss?: boolean;
|
|
304
|
+
externalsPresets?: ExternalsPresets;
|
|
258
305
|
};
|
|
259
306
|
export declare interface ModuleFederationOption {
|
|
260
307
|
/** 模块名称,唯一性,不能重名 */
|
|
@@ -400,7 +447,7 @@ export type ProgramInfoType = {
|
|
|
400
447
|
/** 应用版本 */
|
|
401
448
|
version: string;
|
|
402
449
|
/** 应用类型 */
|
|
403
|
-
type: 'mobile' | 'site' | '
|
|
450
|
+
type: 'mobile' | 'site' | 'backstage' | 'micro' | 'library';
|
|
404
451
|
/** 开发者 */
|
|
405
452
|
author: {
|
|
406
453
|
name: string;
|
|
@@ -417,8 +464,6 @@ export type ProgramInfoType = {
|
|
|
417
464
|
routerMode: 'hash' | 'browser' | 'memory';
|
|
418
465
|
/** 根路由 */
|
|
419
466
|
routeBaseName: string;
|
|
420
|
-
/** 设计尺寸 */
|
|
421
|
-
designSize: number;
|
|
422
467
|
/** 渲染模式 */
|
|
423
468
|
renderMode: 'ssr' | 'csr';
|
|
424
469
|
};
|
package/build/common.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import e from"fs";import t from"path";import o from"readline";import s from"chalk";import{merge as l}from"webpack-merge";import n from"./esm.js";import{APPTYPE as i,CUSTOMCONFIG as r,pkgName as a,PROGRAMPATH as c}from"./process-env.js";import{tfc as p,isFunction as m}from"./utils.js";export const ENTRYPATH={mobile:"mobile",site:"site","back-stage":"back-stage","single-spa":"single-spa",library:"library","single-component":"single-component"};let u=[a,"neko-ui","antd","@antv","katex","font-pingfang-sc","font-pingfang-tc","react-photo-view","react-markdown-editor-lite","schema-design"],d={chunks:"all",minSize:1024,minChunks:1};"single-component"===i&&(d=!1);let f={seo:!1,mode:"csr",compiler:"swc",bundleAnalyzer:{analyzerMode:"static",reportFilename:"report.html",openAnalyzer:!1},entry:{},minifier:{},sourceMap:{filename:"[file].map",publicPath:""},env:{},routeBaseName:"/",publicPath:"/",designSize:"mobile"===i?375:1680,fallbackCompPath:null,modifyVars:{},prefixCls:"n",alias:{},layoutSider:{},moduleRules:[],prefixJsLoader:[],cssModules:[],importOnDemand:{},proxy:[],cacheDirectory:c+"/node_modules/.temp_cache",devServer:{allowedHosts:[".baidu.com"],host:"localhost",port:3e3,https:!1,compress:!1},htmlPluginOption:{template:`./node_modules/${a}/template/index.html`,favicon:`./node_modules/${a}/template/favicon.ico`,tags:[]},assetHtml:[],routerMode:"browser",fixBrowserRouter:!1,plugins:[],splitChunk:d,runtimeChunk:"single-component"!==i&&"single",moduleFederation:[],rulesInclude:{less:u,css:u,js:u,media:u,fonts:u}};export const log=e=>{o.cursorTo(process.stdout,0),process.stdout.write(e)};let h=f,g=null,w={},y={};try{g=t.join(c,"./config/index.ts"),e.accessSync(g,e.constants.R_OK)}catch(e){g=null}if(g)try{let e=(await import(n`${p(g)}`)).default;w=m(e)?e(process):e}catch(e){process.stdout.write(s.red(e))}if(r){let o=null;try{o=t.join(c,`./config/${r}.ts`),e.accessSync(o,e.constants.R_OK)}catch(e){o=null}if(null!==o)try{let e=(await import(n`${p(o)}`)).default;y=m(e)?e(process):e}catch(e){process.stdout.write(s.red(e))}}!1===(h=l(h,w,y)).devtool&&(h.sourceMap=!1),!1===h.sourceMap&&(h.devtool=!1),h.fixBrowserRouter&&(h.htmlPluginOption.tags||(h.htmlPluginOption.tags=[]),h.htmlPluginOption.tags.push({textContent:`
|
|
2
|
-
(function(l) {
|
|
3
|
-
if (l.search[1] === '/' ) {
|
|
4
|
-
var decoded = l.search.slice(1).split('&').map(function(s) {
|
|
5
|
-
return s.replace(/~and~/g, '&')
|
|
6
|
-
}).join('?');
|
|
7
|
-
window.history.replaceState(null, null,
|
|
8
|
-
l.pathname.slice(0, -1) + decoded + l.hash
|
|
9
|
-
);
|
|
10
|
-
}
|
|
11
|
-
}(window.location))
|
|
12
|
-
`}));export const CONFIG=h;export const PUBLICPATH=CONFIG.publicPath||"/";global.NEKOCLICONFIG={CONFIG,log};
|
package/build/done.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default class{constructor(o){this.options=Object.assign({},o)}apply(o){let t=this;o.hooks.done.tap("DoneWebpackPlugin",function(){t.options.done?.()})}};
|
package/build/envFlags.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
declare const envFlags: {
|
|
2
|
-
projectName: string;
|
|
3
|
-
projectCoverage: string;
|
|
4
|
-
providerConfig: string;
|
|
5
|
-
fallbackCompPath: string;
|
|
6
|
-
ReactDOMPath: string;
|
|
7
|
-
favicon: string;
|
|
8
|
-
hasLocales: string;
|
|
9
|
-
hasPersist: string;
|
|
10
|
-
layoutSider: string;
|
|
11
|
-
hasAntd: string;
|
|
12
|
-
APPTYPE: string;
|
|
13
|
-
APPENTRY: string;
|
|
14
|
-
programInfo: string;
|
|
15
|
-
'process.env': string;
|
|
16
|
-
};
|
|
17
|
-
export default envFlags;
|
package/build/envFlags.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import i from"fs";import r from"path";import{CONFIG as t}from"./common.js";import{coverage as e}from"./coverage.js";import o from"./html-plugin-option.js";import{APPTYPE as s,NODE_ENV as n,PACKAGENAME as f,programInfo as a,PROGRAMPATH as c,hasAntd as m}from"./process-env.js";import{toUpperCaseString as p}from"./utils.js";let l="library"===s?"site":"src",g=!1;try{let t=r.join(c,"./src/index.ts");i.accessSync(t,i.constants.R_OK),g=t}catch(i){g=!1}let y={projectName:JSON.stringify(p(f)),projectCoverage:JSON.stringify(e),providerConfig:JSON.stringify({prefixCls:t.prefixCls,iconPrefixCls:t.prefixCls+"-icon",theme:t.theme}),fallbackCompPath:JSON.stringify(t.fallbackCompPath),ReactDOMPath:JSON.stringify("react-dom/client"),favicon:JSON.stringify(o.favicon),hasLocales:JSON.stringify(i.existsSync(r.join(c,`./${l}/locales`))),hasPersist:JSON.stringify(i.existsSync(r.join(c,`./${l}/persist.ts`))),layoutSider:JSON.stringify(t.layoutSider),hasAntd:JSON.stringify(m),APPTYPE:JSON.stringify(s),APPENTRY:JSON.stringify(g),programInfo:JSON.stringify({...a,routeBaseName:t.routeBaseName,designSize:t.designSize,routerMode:t.routerMode,renderMode:t.mode}),"process.env":JSON.stringify({NODE_ENV:n,iconfont:t.iconfont,...t.env})};export default y;
|
package/build/esm.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function esm(templateStrings: any, ...substitutions: unknown[]): string;
|
package/build/esm.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function t(t,...a){let e=t.raw[0];for(let r=0;r<a.length;r++)e+=a[r]+t.raw[r+1];return"data:text/javascript;base64,"+btoa(e)}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"path";import{merge as t}from"webpack-merge";import{CONFIG as i}from"./common.js";import{PROGRAMPATH as o,PACKAGENAME as r,programInfo as a}from"./process-env.js";let{template:p,favicon:m,...n}=i.htmlPluginOption,l=t({title:i.env?.PROJECTNAME||r.toLocaleUpperCase()||"Title",filename:"index.html",hash:!1,minify:{collapseWhitespace:!0,removeComments:!0,removeRedundantAttributes:!1,removeScriptTypeAttributes:!1,removeStyleLinkTypeAttributes:!1,removeAttributeQuotes:!0,useShortDoctype:!0},meta:{charset:"UTF-8","X-UA-Compatible":{"http-equiv":"X-UA-Compatible",content:"IE=edge,Chrome=1"},HandheldFriendly:"true",MobileOptimized:"320","screen-orientation":"portrait","x5-orientation":"portrait",browsermode:"application","x5-page-mode":"app","msapplication-tap-highlight":"no",viewport:"width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no","apple-mobile-web-app-capable":"yes",renderer:"webkit",description:a.description||""},tags:[],template:e.join(o,p),favicon:e.join(o,m)},n);export default l;
|
package/build/index.d.ts
DELETED
package/build/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export*from"./process-env.js";export*from"./utils.js";
|
package/build/modifyVars.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{CONFIG as i}from"./common.js";import o from"./html-plugin-option.js";let f=i.prefixCls||"n",n={};Object.assign(n,{"@prefix-cls":f,"@ant-prefix":f,"@iconfont-css-prefix":f+"-icon","@favicon":JSON.stringify(o.favicon)},i.modifyVars||{});export default n;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"external-remotes-plugin";import r from"webpack";import o from"webpack/lib/container/ModuleFederationPlugin.js";import{CONFIG as t}from"./common.js";let l=r.NormalModuleReplacementPlugin,n={},a={},i={};export const moduleFederation=t.moduleFederation?.map(e=>{if(Array.isArray(e.remotes))for(let r=0,o=e.remotes.length;r<o;r++){let o=e.remotes[r],t=o.alias||o.name,l=o.filename||"remote_entry.js";if(i[t]=`${o.name}@${o.host}/${l}`,Array.isArray(o.library))for(let e=0,r=o.library.length;e<r;e++)n[o.library[e]]=`${t}/${o.library[e]}`}if(Array.isArray(e.exposes))for(let r=0,o=e.exposes.length;r<o;r++){let o=e.exposes[r];"string"==typeof o||Object.prototype.toString.call(o)}return new o({filename:"remote_entry.js",...e,remotes:i,exposes:a})});moduleFederation.length&&(moduleFederation.push(new e),moduleFederation.push(new l(/(.*)/,e=>{n[e.request]&&(e.request=n[e.request])})));
|
package/build/module.config.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"mini-css-extract-plugin";import s from"mini-svg-data-uri";import{CONFIG as o,PUBLICPATH as t}from"./common.js";import{hasPkg as r}from"./has-pkg.js";import l from"./modifyVars.js";import{APPTYPE as a,DEV as i,pkgName as c}from"./process-env.js";import n from"./swcrc.js";import p from"./tsloader.config.js";import{resolveNodeModulesPath as m,resolveProgramPath as d}from"./utils.js";let u="single-spa"===a?t:"../",f={loader:e.loader,options:{publicPath:"/"!==u?u:"../"}},y=r("@moneko/postcss")&&{loader:"postcss-loader",options:{postcssOptions:await import("@moneko/postcss")}};i&&(f="style-loader");let x=[...o.cssModules,c,"neko-ui"].map(m),g=[m(`${c}/lib/styles/eval/*.less`),...["src/styles/variables/*.less","src/styles/mixins/*.less","site/styles/variables/*.less","site/styles/mixins/*.less"].map(d)],j=["components","example","mock","site","src"].map(d),$=[f,{loader:"css-loader",options:{modules:{auto:e=>{for(let s=0,o=x.length;s<o;s++)if(e&&e?.includes(x[s]))return/(.*(?<!\.global\.(le|c)ss)$)/i.test(e);return/(^(?!.*node_modules))(.*(?<!\.global\.(le|c)ss)$)/i.test(e)},localIdentName:"[path][name]__[local]",exportLocalsConvention:"dashesOnly"},importLoaders:2}},y,"css-unicode-loader",{loader:"less-loader",options:{sourceMap:!!o.sourceMap,lessOptions:{modifyVars:l,javascriptEnabled:!0}}},{loader:"style-resources-loader",options:{patterns:g}}].filter(Boolean),b={loader:"tsc"===o.compiler?"ts-loader":"swc-loader",options:"tsc"===o.compiler?p:n(i)},h={rules:[{oneOf:[{resourceQuery:/raw/,type:"asset/source"},{resourceQuery:/\.wasm$/,type:"webassembly/async"},{test:/\.less$/,use:$,include:j.concat(o.rulesInclude?.less?.map(m)||[])},{test:/\.css$/,use:[f,"css-loader",y,"css-unicode-loader"].filter(Boolean),include:j.concat(o.rulesInclude?.css?.map(m)||[])},{test:/\.(gif|png|jpe?g|ico|mp4)$/i,type:"asset",generator:{filename:"assets/images/[name][ext][query]"},include:j.concat(o.rulesInclude?.media?.map(m)||[])},{test:/\.(eot|ttf|otf|woff(|2))$/,type:"asset",generator:{filename:"assets/fonts/[name][ext][query]"},include:j.concat(o.rulesInclude?.fonts?.map(m)||[])},{test:/\.svg$/,type:"asset/inline",generator:{dataUrl:e=>s("string"!=typeof e?e.toString():e)}},{test:/\.txt$/,type:"asset/source"},{test:/\.(cj|mj|t|j)s(|x)$/,use:[...o.prefixJsLoader,b].filter(Boolean),include:j.concat(o.rulesInclude?.js?.map(m)||[])},{test:/\.mdx?$/,use:[...o.prefixJsLoader,b,{loader:"@mdx-js/loader",options:{jsxImportSource:"solid-js/h",rehypePlugins:[[await import("@mapbox/rehype-prism"),{ignore:!0}],(await import("rehype-accessible-emojis")).rehypeAccessibleEmojis,await import("rehype-figure")],remarkPlugins:[]}}].filter(Boolean),include:j,exclude:[/(.+)\/examples\/(.+).mdx?$/i]},{test:/\.mdx?$/,type:"asset/source",include:[/(.+)\/examples\/(.+).mdx?$/i]},{type:"asset/source",include:[/(.+)\/examples\/(.+).*?$/i]}]},...o.moduleRules]};export default h;
|
package/build/process-env.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{readFileSync as e}from"fs";import{join as o}from"path";import r from"url";import{hasPkg as t}from"./has-pkg.js";import{resolveProgramPath as n}from"./utils.js";import p from"./yarn-argv.js";export const __dirname=r.fileURLToPath(new URL(".",import.meta.url));export const APPTYPE=process.env.APPTYPE;export const PROGRAMPATH=process.cwd();export const PACKAGENAME=process.env.npm_package_name;export const PACKAGEVERSION=process.env.npm_package_version;let s=e(o(__dirname,"../package.json"),{encoding:"utf-8"});export const pkgName=JSON.parse(s).name;export const NODE_ENV=process.env.NODE_ENV;export const CUSTOMCONFIG=process.env.npm_config_config||p.config;export const DEV="development"===process.env.NODE_ENV;export let hasEslintConfig=!!Object.keys(process.env).filter(e=>e.startsWith("npm_package_eslintConfig_")).length;export let hasStylelintConfig=!!Object.keys(process.env).filter(e=>e.startsWith("npm_package_stylelint_")).length;export const hasReact=t("react");export const hasAntd=t("antd");export const programInfo={name:PACKAGENAME,version:PACKAGEVERSION,type:APPTYPE,description:process.env.npm_package_description,author:{name:process.env.npm_package_author_name,email:process.env.npm_package_author_email,url:process.env.npm_package_author_url},repository:{type:process.env.npm_package_repository_type,url:process.env.npm_package_repository_url,directory:process.env.npm_package_repository_directory}};if(parseInt(process.versions.node)>14){let o=e(n("package.json"),{encoding:"utf-8"}),{description:r,author:t,repository:p,eslintConfig:s,stylelint:a}=JSON.parse(o);programInfo.author="string"==typeof t?{name:t}:t,programInfo.repository="string"==typeof t?{url:p}:p,programInfo.description=r,hasEslintConfig=!!s,hasStylelintConfig=!!a}
|
package/build/seo.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{existsSync as t,mkdirSync as o,writeFile as e,readdirSync as r,statSync as s}from"fs";import{join as m}from"path";import{CONFIG as p}from"./common.js";import{APPTYPE as i,PROGRAMPATH as n}from"./process-env.js";import{resolveProgramPath as c}from"./utils.js";import{outputConfig as f}from"./webpack.common.js";export const seo=()=>{let{domain:a,nojekyll:u,path:l}=p.seo||{};if(!a)return;let h=l&&c(l)||f?.path||process.cwd(),j=t=>{if(t)throw t};t(h)||o(h),e(m(h,"CNAME"),a,"utf-8",j),e(m(h,"robots"),`Sitemap: https://${a}${p.routeBaseName}sitemap.txt`,"utf-8",j);let E="";"library"===i&&(E=(function t(o,e,m){let p=[],i=r(o);return i.forEach(function(r){if("static"===r)return!1;let i=o+"/"+r,c=s(i);c&&c.isDirectory()?p=p.concat(t(i,e,m)):i.endsWith("README.mdx")&&p.push("https://"+e+m+i.replace(n+"/components/","").replace("/README.mdx",""))}),p})(m(n,"./components"),a,p.routeBaseName).join("\n")),e(m(h,"sitemap.txt"),E,"utf-8",j),u&&e(m(h,".nojekyll"),"","utf-8",j)};
|
package/build/swcrc.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{merge as e}from"webpack-merge";import{CONFIG as o}from"./common.js";import r from"./envFlags.js";import{hasReact as t}from"./process-env.js";let s={env:{targets:["last 2 version","> 0.5%","ie 11","not dead"],mode:"entry",coreJs:"3"}};export const swcMinifyOption={compress:{top_retain:[],keep_infinity:!0,global_defs:{"@alert":"console.log"},pure_funcs:["console.log","console.warn","console.error","console.info"],toplevel:!1,drop_console:!0,drop_debugger:!0,module:!1,ecma:2015,ie8:!1,keep_classnames:void 0,keep_fnames:!1},mangle:!0};export default((n=!1)=>{let a={module:{type:"es6",ignoreDynamic:!0,strict:!0,strictMode:!0,lazy:!0,noInterop:!0},jsc:{parser:{syntax:"typescript",decorators:!0,dynamicImport:!0,tsx:!0},loose:!0,target:"es2022",externalHelpers:!0,transform:{legacyDecorator:!0,decoratorMetadata:!0,react:{runtime:"automatic",throwIfNamespace:!0,useBuiltins:!0,refresh:n,development:n,importSource:t?"react":"solid-js/h"},constModules:{globals:{"env-flags":r}},optimizer:{simplify:!1}},experimental:{plugins:[["swc-plugin-another-transform-imports",function(e){for(let o=0,r=Object.keys(e),t=r.length;o<t;o++)e[r[o]].transform=`${r[o]}/${e[r[o]].transform}`,e[r[o]].style&&(e[r[o]].style=`${r[o]}/${e[r[o]].style}`);return e}(o.importOnDemand||{})]]}},sourceMaps:!0,parseMap:!0},c=Object.assign(a,!n&&s);return o.swcrc&&(c=e(c,"function"==typeof o.swcrc?o.swcrc(n):o.swcrc)),c});
|
package/build/tsloader.config.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import r from"fs";import t from"ts-import-plugin";import o from"webpack-merge";import{CONFIG as m}from"./common.js";import e from"./esm.js";import{tfc as s,isFunction as a,resolveProgramPath as i}from"./utils.js";let p=[];Array.isArray(m.importOnDemand)&&Object.assign(p,m.importOnDemand.map(r=>t(r)));let n=[...p],f={transpileOnly:!0,getCustomTransformers:()=>({before:n})};try{let t=i("tsloader.config.ts");r.accessSync(t,r.constants.R_OK);let m=(await import(e`${s(t)}`)).default;f=o(f,a(m)?m(process):m)}catch(r){}export default f;
|
package/build/utils.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{networkInterfaces as e}from"os";import t from"path";import{transformFileSync as o}from"@swc/core";let r={inputSourceMap:!1,sourceMaps:!1,module:{type:"es6"},jsc:{parser:{syntax:"typescript"},loose:!1}};export const tfc=e=>o(e,r).code||"{}";export function toUpperCaseString(e){return e?.replace(/\b\w/g,e=>e.toUpperCase()).replace(/\./g," ")}export function getIPAdress(){let t=e();for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let o=t[e];for(let e=0;e<o.length;e++){let t=o[e];if("IPv4"===t.family&&"127.0.0.1"!==t.address&&!t.address.startsWith("169.254")&&!t.internal)return t.address}}}export function resolveProgramPath(e){return t.resolve(process.cwd(),"./"+e)}export const resolveNodeModulesPath=e=>resolveProgramPath(`node_modules/${e}`);export function isObject(e){let t=typeof e;return null!==e&&("object"==t||"function"==t)}export function isFunction(e){if(!isObject(e))return!1;let t=Object.prototype.toString.call(e);return"[object Function]"==t||"[object AsyncFunction]"==t||"[object GeneratorFunction]"==t||"[object Proxy]"==t}
|
package/build/webpack.common.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"fs";import{join as t}from"path";import s from"add-asset-html-webpack-plugin";import n from"html-webpack-plugin";import o from"webpack";import l from"webpackbar";import{CONFIG as i,ENTRYPATH as a,PUBLICPATH as r}from"./common.js";import p from"./done.js";import m from"./envFlags.js";import c from"./html-add-entry-attr.js";import u from"./html-plugin-option.js";import{moduleFederation as f}from"./module-federation.js";import d from"./module.config.js";import{APPTYPE as g,DEV as j,hasEslintConfig as h,hasStylelintConfig as b,PACKAGENAME as y,PROGRAMPATH as w,__dirname as x}from"./process-env.js";import{seo as k}from"./seo.js";import{resolveProgramPath as v}from"./utils.js";let C=[".eslintrc.js",".eslintrc.json",".eslintrc.yaml",".eslintrc.json"],O=[".stylelintrc",".stylelintrc.json",".stylelintrc.yaml",".stylelintrc.yml",".stylelintrc.js","stylelint.config.js","stylelint.config.cjs"],P=e.readdirSync(w),T=!1,$=!1;for(let e=0,t=P.length;e<t;e++)O.includes(P[e])&&($=!0),C.includes(P[e])&&(T=!0);T||(T=h),$||($=b);let A=$?(await import("stylelint-webpack-plugin")).default:null,B=T?(await import("eslint-webpack-plugin")).default:null,S={"@":v("src")};Object.assign(S,i.alias),"library"===g&&Object.assign(S,{"@":v("site"),"@pkg":v("components"),[y]:v("components")});let M=i.assetHtml.map(e=>({publicPath:"",...e}));export const outputConfig={path:v("library"===g?"docs":"dist"),filename:"js/[name].bundle.js",chunkFilename:"js/[name].chunk.js",assetModuleFilename:"assets/[name].[hash][ext]",library:y,libraryTarget:"window",globalObject:"window",chunkLoadingGlobal:`webpackJsonp_${y}`,pathinfo:!1,clean:!0,publicPath:r};let F=t(x,`../lib/packages/${a[g]}/index.js`);"single-component"===g&&(Object.assign(S,{[y]:v("umd")}),F=v(j?"example/index.ts":"src/index.ts"),outputConfig.path=v(j?"dist":"umd"),outputConfig.filename="index.js",outputConfig.library=y,outputConfig.libraryTarget="umd",outputConfig.libraryExport="default");let K={main:F};i.entry&&("string"==typeof i.entry?K=i.entry:Object.keys(i.entry)&&Object.assign(K,i.entry)),i.output&&("string"==typeof i.output?outputConfig.path=i.output:Object.keys(i.output)&&Object.assign(outputConfig,i.output));let L=i.routeBaseName.split("/").filter(Boolean).length,W=Array(L).fill("..").join("/")+(L?"/":"")+"404.html",{pathSegmentsToKeep:D=L,path:R=W}=i.fixBrowserRouter||{},_={entry:K,stats:"errors-only",infrastructureLogging:{level:"none"},target:"web",plugins:[new o.AutomaticPrefetchPlugin,...f,B&&new B({threads:!0,extensions:["js","md","mdx","cjs","ejs","mjs","jsx","ts","tsx","json","html","coffee","vue"]}),A&&new A({fix:!0,threads:!0,extensions:["css","scss","sass","less","ts","tsx","js","jsx"],exclude:["node_modules/","es/","lib/","docs/","coverage/","dist/"]}),new n(u),i.fixBrowserRouter&&new n({filename:R,inject:!1,templateContent:()=>`<html html><head><title>${u.title}</title><script>var pathSegmentsToKeep = ${D||L};var l = window.location;l.replace(l.protocol + '//' + l.hostname + (l.port ? ':' + l.port : '') + l.pathname.split('/').slice(0, 1 + pathSegmentsToKeep).join('/') + '/?/' + l.pathname.slice(1).split('/').slice(pathSegmentsToKeep).join('/').replace(/&/g, '~and~') + (l.search ? '&' + l.search.slice(1).replace(/&/g, '~and~') : '') + l.hash);</script></head><body></body></html>`}),new s(M),"single-spa"===g&&new c(e=>!!(e.match(/main\.(.*)\.bundle.js$/)||e.match("main.bundle.js"))),new o.DefinePlugin(m),new o.WatchIgnorePlugin({paths:[/\.d\.ts$/]}),i.sourceMap&&new o.SourceMapDevToolPlugin(i.sourceMap),new l({name:"编译中",color:"#6f42c1"}),new p({done:()=>{!j&&i.seo&&k(),i.done?.()}}),...i.plugins].filter(Boolean),experiments:{topLevelAwait:!0,syncWebAssembly:!0,asyncWebAssembly:!0},resolve:{extensions:[".tsx",".ts",".js",".jsx"],alias:S,fallback:{path:!1,fs:!1,crypto:!1,assert:!1}},module:d,externals:i.externals,output:outputConfig};export default _;
|
package/build/webpack.dev.d.ts
DELETED
package/build/webpack.dev.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import e from"@soda/friendly-errors-webpack-plugin";import o from"chalk";import{getPort as r}from"portfinder";import t from"webpack";import{merge as s}from"webpack-merge";import{CONFIG as p}from"./common.js";import{hasPkg as i}from"./has-pkg.js";import{hasReact as l}from"./process-env.js";import{getIPAdress as a,isFunction as m,resolveProgramPath as n}from"./utils.js";import c from"./webpack.common.js";let d=i("@moneko/mock"),v=d&&await import("@moneko/mock"),h=l&&(await import("@pmmmwh/react-refresh-webpack-plugin")).default,w=!1;p.cacheDirectory&&(w={type:"filesystem",allowCollectingMemory:!0,cacheDirectory:p.cacheDirectory});let f=!1===p.devtool||p.devtool?p.devtool:"eval-cheap-module-source-map",u=new Promise(i=>{r({port:p.devServer.port,stopPort:9999},(r,d)=>{let u=[];p.devServer.port!==d&&u.push(`Port ${o.yellow(p.devServer.port)} is in use, trying ${o.green(d)} instead`),p.devServer.port=d;let g="/"===p.routeBaseName,k=p.devServer.https?"https:":"http:",y=g?"":p.routeBaseName,$=s(c,{devtool:f,mode:"development",cache:w,devServer:{headers:{"Access-Control-Allow-Origin":"*"},compress:p.devServer.compress,host:"0.0.0.0",port:d,historyApiFallback:g||{index:y,disableDotRule:!0},https:p.devServer.https,proxy:p.proxy,allowedHosts:p.devServer.allowedHosts,client:{progress:!1,logging:"info",overlay:!1},static:{watch:{ignored:e=>e.endsWith(".d.ts")}},setupMiddlewares:(e,o)=>{if(!o)throw Error("webpack-dev-server is not defined");return o.app&&m(v)&&v(o.app,n("mock/")),e},open:!1,hot:!0},plugins:[new t.HotModuleReplacementPlugin,l&&h&&new h,new e({compilationSuccessInfo:{messages:[`You application is running here:
|
|
2
|
-
|
|
3
|
-
local: ${o.cyan(`${k}//${p.devServer.host}:${d}${y}`)}
|
|
4
|
-
network: ${o.cyan(`${k}//${a()}:${d}${y}`)}`],notes:u},clearConsole:!0})].filter(Boolean)});i($)})});export default u;
|
package/build/webpack.prod.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e,{cssnanoMinify as i,swcMinify as n}from"css-minimizer-webpack-plugin";import m from"mini-css-extract-plugin";import o from"terser-webpack-plugin";import r from"webpack";import{BundleAnalyzerPlugin as s}from"webpack-bundle-analyzer";import{merge as t}from"webpack-merge";import{CONFIG as c}from"./common.js";import{getMinifyOption as l}from"./minify.js";import p from"./webpack.common.js";let a="swc"===c.compiler?"swc":"terser",u="swc"===c.compiler?"swc":"cssnano",d={splitChunks:c.splitChunk,runtimeChunk:c.runtimeChunk,chunkIds:"named",moduleIds:"named",removeAvailableModules:!0,removeEmptyChunks:!0,mergeDuplicateChunks:!0,minimize:!0,minimizer:[new o(l(c.minifier.js?.type||a,c.minifier.js?.options)),new e({minify:{swc:n,cssnano:i}[c.minifier.css?.type||u],minimizerOptions:c.minifier.css?.options})]},f=!1;c.cacheDirectory&&(f={type:"filesystem",allowCollectingMemory:!0,cacheDirectory:c.cacheDirectory});export default t(p,{devtool:!1===c.devtool||c.devtool?c.devtool:"cheap-module-source-map",mode:"production",cache:f,optimization:d,plugins:[new m({filename:"style/[name].bundle.css",chunkFilename:"style/[name].chunk.css",experimentalUseImportModule:!0}),c.bundleAnalyzer&&new s(c.bundleAnalyzer),c.splitChunk&&new r.optimize.MinChunkSizePlugin({minChunkSize:1e4})].filter(Boolean)});
|