@flatjs/evolve 1.8.1-next.63 → 1.8.1-next.65
Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# @flatjs/evolve
|
2
2
|
|
3
|
+
## 1.8.1-next.65
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 2ddec91: bump version
|
8
|
+
- a3f55aa: adjust maxProcesses to 75%
|
9
|
+
- Updated dependencies [94632ae]
|
10
|
+
- Updated dependencies [cfdc3af]
|
11
|
+
- Updated dependencies [2ddec91]
|
12
|
+
- @flatjs/mock@1.8.1-next.53
|
13
|
+
- @flatjs/forge-postcss-plugin-pixel@1.8.1-next.29
|
14
|
+
- @flatjs/evolve-preset-babel@1.8.1-next.14
|
15
|
+
- @flatjs/common@1.8.1-next.29
|
16
|
+
- @flatjs/graph@1.8.1-next.35
|
17
|
+
|
18
|
+
## 1.8.1-next.64
|
19
|
+
|
20
|
+
### Patch Changes
|
21
|
+
|
22
|
+
- a83ed82: Add missed config options `maxSize` parameters
|
23
|
+
- @flatjs/graph@1.8.1-next.34
|
24
|
+
|
3
25
|
## 1.8.1-next.63
|
4
26
|
|
5
27
|
### Patch Changes
|
@@ -1 +1 @@
|
|
1
|
-
import{dirname,join,relative,resolve}from"node:path";import{FONT_PATH_REGEX,IMAGE_PATH_REGEX}from"./constants.js";import{isIconSvg}from"./rule-utils.js";const getEntryAssetFileName=(e,t,r)=>{const[n
|
1
|
+
import{dirname,join,relative,resolve}from"node:path";import{FONT_PATH_REGEX,IMAGE_PATH_REGEX}from"./constants.js";import{isIconSvg}from"./rule-utils.js";const getEntryAssetFileName=(e,t,r)=>{const[s,n]=t,{projectCwd:a,projectVirtualPath:o}=r;let i=dirname(join(o,e.replace(/^src/,"")));const l=n.entry.map((e=>dirname(join(a,e)))),m=resolve(a,e),c=l.find((e=>m.startsWith(e)));return c&&(i=dirname(join(s,relative(c,m)))),`${i}/[name]-[contenthash:8][ext]`};export const ruleAssets=(e,t)=>({type:"asset",test:e=>FONT_PATH_REGEX.test(e)||IMAGE_PATH_REGEX.test(e)&&!isIconSvg(e),generator:{filename:({filename:r})=>getEntryAssetFileName(r,e,t)},parser:{dataUrlCondition:{maxSize:t.loaderOptions.assetDataUrlMaxSize}}});
|
@@ -5,5 +5,23 @@ import { type FlatEvolveOptions } from '../../types/types-options.js';
|
|
5
5
|
* Preparing configurations for `less-loader`
|
6
6
|
* @param serveMode The value indicates if we are in `built` or `serve` mode.
|
7
7
|
* @param pluginLoaderOptions `builtin` loaders
|
8
|
+
* @example
|
9
|
+
* ```ts
|
10
|
+
* `~` makes the url an module
|
11
|
+
* webpack: {
|
12
|
+
* externals: {
|
13
|
+
* antd: 'antd',
|
14
|
+
* dayjs: 'dayjs',
|
15
|
+
* },
|
16
|
+
* resolve: {
|
17
|
+
* alias: {
|
18
|
+
* style: resolve(projectCwd, './src/style'),
|
19
|
+
* theme: resolve(projectCwd, './src/layout/theme'),
|
20
|
+
* },
|
21
|
+
* },
|
22
|
+
* },
|
23
|
+
* `@import '~theme/default.less';` at `style.less`
|
24
|
+
*
|
25
|
+
* ```
|
8
26
|
*/
|
9
27
|
export declare const ruleLess: (serveMode: boolean, entryMapItem: EntryMapItem, evolveOptions: FlatEvolveOptions) => RuleSetRule;
|
package/dist/default-options.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export const defaultEvolveOptions={projectCwd:process.cwd(),projectVirtualPath:"flatjs/evolve",rejectWarnings:!1,devServer:{autoOpen:!0,mockOptions:{mockBaseDir:"mocks"},clientOverlay:{errors:!0,warnings:!1},middlewares:[],watchOptions:{poll:1e3,ignored:/node_modules/,aggregateTimeout:500},defaultServeGlobalData:()=>Promise.resolve({})},webpack:{target:["web","es5"],plugins:[],ruleSets:[],publicPath:"auto",externals:{vue:"Vue",react:"React","react-dom":"ReactDOM"},outputDir:"public",enableBundleHashName:!0},pluginOptions:{},loaderOptions:{assetDataUrlMaxSize:4096,babelOptions:{usePreset:"react",plugins:[],presets:[]},runTsChecker:!0,lessOptions:{},postcssOptions:{cssnanoOptions:{}},pixelOptions:{rootValue:{px:100,rpx:1},outputUnit:"rem"},modularImports:[]},entryMap:{},multiHtmlCdn:{},multiHtmlCdnEnvResolver:function cdnResolver(){},needVerifyPackages:{},packageInstallChecker:{enabled:!1,detectModules:["@dimjs/*"],throwError:!1,showAllInstalledGraph:!0},maxProcesses:"
|
1
|
+
export const defaultEvolveOptions={projectCwd:process.cwd(),projectVirtualPath:"flatjs/evolve",rejectWarnings:!1,devServer:{autoOpen:!0,mockOptions:{mockBaseDir:"mocks"},clientOverlay:{errors:!0,warnings:!1},middlewares:[],watchOptions:{poll:1e3,ignored:/node_modules/,aggregateTimeout:500},defaultServeGlobalData:()=>Promise.resolve({})},webpack:{target:["web","es5"],plugins:[],ruleSets:[],publicPath:"auto",externals:{vue:"Vue",react:"React","react-dom":"ReactDOM"},outputDir:"public",enableBundleHashName:!0},pluginOptions:{},loaderOptions:{assetDataUrlMaxSize:4096,babelOptions:{usePreset:"react",plugins:[],presets:[]},runTsChecker:!0,lessOptions:{},postcssOptions:{cssnanoOptions:{}},pixelOptions:{rootValue:{px:100,rpx:1},outputUnit:"rem"},modularImports:[]},entryMap:{},multiHtmlCdn:{},multiHtmlCdnEnvResolver:function cdnResolver(){},needVerifyPackages:{},packageInstallChecker:{enabled:!1,detectModules:["@dimjs/*"],throwError:!1,showAllInstalledGraph:!0},maxProcesses:"75%",ci:{basedBranch:"master"}};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@flatjs/evolve",
|
3
|
-
"version": "1.8.1-next.
|
3
|
+
"version": "1.8.1-next.65",
|
4
4
|
"license": "MIT",
|
5
5
|
"type": "module",
|
6
6
|
"exports": {
|
@@ -37,15 +37,15 @@
|
|
37
37
|
"typecheck": "tsc --project ./tsconfig.json --noEmit"
|
38
38
|
},
|
39
39
|
"dependencies": {
|
40
|
-
"@armit/file-utility": "^0.0.
|
41
|
-
"@armit/git": "^0.0.
|
42
|
-
"@armit/package": "^0.0.
|
40
|
+
"@armit/file-utility": "^0.0.26",
|
41
|
+
"@armit/git": "^0.0.31",
|
42
|
+
"@armit/package": "^0.0.41",
|
43
43
|
"@babel/core": "7.22.5",
|
44
|
-
"@flatjs/common": "1.8.1-next.
|
45
|
-
"@flatjs/evolve-preset-babel": "1.8.1-next.
|
46
|
-
"@flatjs/forge-postcss-plugin-pixel": "1.8.1-next.
|
47
|
-
"@flatjs/graph": "1.8.1-next.
|
48
|
-
"@flatjs/mock": "1.8.1-next.
|
44
|
+
"@flatjs/common": "1.8.1-next.29",
|
45
|
+
"@flatjs/evolve-preset-babel": "1.8.1-next.14",
|
46
|
+
"@flatjs/forge-postcss-plugin-pixel": "1.8.1-next.29",
|
47
|
+
"@flatjs/graph": "1.8.1-next.35",
|
48
|
+
"@flatjs/mock": "1.8.1-next.53",
|
49
49
|
"@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
|
50
50
|
"@types/babel__core": "7.20.1",
|
51
51
|
"babel-loader": "9.1.2",
|
@@ -59,7 +59,7 @@
|
|
59
59
|
"fork-ts-checker-webpack-plugin": "8.0.0",
|
60
60
|
"happy-dom": "9.20.3",
|
61
61
|
"html-webpack-plugin": "5.5.3",
|
62
|
-
"image-minimizer-webpack-plugin": "3.8.
|
62
|
+
"image-minimizer-webpack-plugin": "3.8.3",
|
63
63
|
"less": "4.1.3",
|
64
64
|
"less-loader": "11.1.3",
|
65
65
|
"lodash": "4.17.21",
|
@@ -72,20 +72,20 @@
|
|
72
72
|
"terser-webpack-plugin": "5.3.9",
|
73
73
|
"tsconfig-paths-webpack-plugin": "4.0.1",
|
74
74
|
"type-fest": "^3.12.0",
|
75
|
-
"webpack": "5.
|
75
|
+
"webpack": "5.88.0",
|
76
76
|
"webpack-bundle-analyzer": "4.9.0",
|
77
77
|
"webpack-dev-server": "4.15.1",
|
78
78
|
"webpack-sources": "3.2.3"
|
79
79
|
},
|
80
80
|
"devDependencies": {
|
81
|
-
"@armit/eslint-config-bases": "^0.0.
|
82
|
-
"@flatjs/testing": "1.8.1-next.
|
83
|
-
"@swc/core": "1.3.
|
81
|
+
"@armit/eslint-config-bases": "^0.0.21",
|
82
|
+
"@flatjs/testing": "1.8.1-next.30",
|
83
|
+
"@swc/core": "1.3.66",
|
84
84
|
"@types/express": "4.17.17",
|
85
85
|
"@types/node": "20.3.1",
|
86
|
-
"@vitest/coverage-istanbul": "0.32.
|
87
|
-
"@vitest/ui": "0.32.
|
88
|
-
"eslint": "8.
|
86
|
+
"@vitest/coverage-istanbul": "0.32.2",
|
87
|
+
"@vitest/ui": "0.32.2",
|
88
|
+
"eslint": "8.43.0",
|
89
89
|
"imagemin-gifsicle": "7.0.0",
|
90
90
|
"imagemin-jpegtran": "7.0.0",
|
91
91
|
"imagemin-pngquant": "9.0.2",
|
@@ -97,7 +97,7 @@
|
|
97
97
|
"swc-unplugin-ts": "1.0.2",
|
98
98
|
"ts-node": "10.9.1",
|
99
99
|
"vite-tsconfig-paths": "4.2.0",
|
100
|
-
"vitest": "0.32.
|
100
|
+
"vitest": "0.32.2",
|
101
101
|
"vue-loader": "17.2.2"
|
102
102
|
},
|
103
103
|
"peerDependencies": {
|