@flatjs/evolve 1.8.1-next.51 → 1.8.1-next.53
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +24 -0
- package/dist/main/prepare-build.js +1 -1
- package/package.json +9 -8
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,29 @@
|
|
1
1
|
# @flatjs/evolve
|
2
2
|
|
3
|
+
## 1.8.1-next.53
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 7fd8c71: Adjust logging message formatting
|
8
|
+
- 7fd8c71: bump version & adjust formatting of logs
|
9
|
+
- Updated dependencies [7fd8c71]
|
10
|
+
- @flatjs/common@1.8.1-next.25
|
11
|
+
- @flatjs/graph@1.8.1-next.29
|
12
|
+
- @flatjs/mock@1.8.1-next.46
|
13
|
+
- @flatjs/evolve-preset-babel@1.8.1-next.11
|
14
|
+
- @flatjs/forge-postcss-plugin-pixel@1.8.1-next.25
|
15
|
+
|
16
|
+
## 1.8.1-next.52
|
17
|
+
|
18
|
+
### Patch Changes
|
19
|
+
|
20
|
+
- Updated dependencies [4cb3186]
|
21
|
+
- @flatjs/common@1.8.1-next.24
|
22
|
+
- @flatjs/forge-postcss-plugin-pixel@1.8.1-next.24
|
23
|
+
- @flatjs/graph@1.8.1-next.28
|
24
|
+
- @flatjs/mock@1.8.1-next.45
|
25
|
+
- @flatjs/evolve-preset-babel@1.8.1-next.11
|
26
|
+
|
3
27
|
## 1.8.1-next.51
|
4
28
|
|
5
29
|
### Patch Changes
|
@@ -1 +1 @@
|
|
1
|
-
import{cpus}from"node:os";import{
|
1
|
+
import{cpus}from"node:os";import{ensureSlash,logger,mergeOptions}from"@flatjs/common";import ora from"ora";import webpack from"webpack";import{loadWebpackConfig}from"../create-webpack/load-webpack-config.js";import{chunkEntryMap}from"../helpers/chunk-entry-map.js";import{splitToMultiCompilerConfigs}from"../helpers/split-to-multi-compiler.js";import{envVerify}from"./env-verify.js";const getMaxProcessTasks=(r,t)=>Math.max(1,"string"==typeof t&&t.endsWith("%")?Math.round(cpus().length*Number(t.slice(0,-1))/100):Number(t)||r),startSingleEntryBuild=async(r,t)=>{const o=await loadWebpackConfig("production",r,t),e=splitToMultiCompilerConfigs(r,o,t);if(e.length>1)throw new Error("startSingleEntryBuild() only support `compiler` at a time");const n=e[0];return new Promise(((r,o)=>{webpack(n,((e,s)=>{if(e)return o(e);const i=s?.toJson();return i?.errors?.length?o(i.errors):t.rejectWarnings&&i?.warnings?.length?o(i.warnings):void r({name:n.name,warningStats:i?.warnings})}))}))};export const prepareBuild=async(r,t,o)=>{await envVerify(r,o);const e=o.multiHtmlCdn?.prod||[];if(!e.length)throw new Error('No CDN configuration for env: "prod"');const n=ensureSlash(e[Math.floor(Math.random()*e.length)],!0),s=[],i=chunkEntryMap(t,getMaxProcessTasks(Object.keys(t).length,o.maxProcesses)),a=i.length;logger.info(`Preparing to run total ${a} tasks...`);for(let r=0;r<a;r++){const t=i[r],e=ora(`Run building task id:${r+1} ...`).start(),a=[];for(const[r,e]of Object.entries(t)){const t={[r]:e},s=e.options?.useRelativeAssetPath;a.push(startSingleEntryBuild(t,mergeOptions(o,{webpack:{publicPath:s?"auto":n}})))}const l=await Promise.all(a);s.push(...l),e.succeed()}return s};
|
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.53",
|
4
4
|
"license": "MIT",
|
5
5
|
"type": "module",
|
6
6
|
"exports": {
|
@@ -39,13 +39,13 @@
|
|
39
39
|
"dependencies": {
|
40
40
|
"@armit/file-utility": "^0.0.23",
|
41
41
|
"@armit/git": "^0.0.28",
|
42
|
-
"@armit/package": "^0.0.
|
42
|
+
"@armit/package": "^0.0.38",
|
43
43
|
"@babel/core": "7.22.1",
|
44
|
-
"@flatjs/common": "1.8.1-next.
|
44
|
+
"@flatjs/common": "1.8.1-next.25",
|
45
45
|
"@flatjs/evolve-preset-babel": "1.8.1-next.11",
|
46
|
-
"@flatjs/forge-postcss-plugin-pixel": "1.8.1-next.
|
47
|
-
"@flatjs/graph": "1.8.1-next.
|
48
|
-
"@flatjs/mock": "1.8.1-next.
|
46
|
+
"@flatjs/forge-postcss-plugin-pixel": "1.8.1-next.25",
|
47
|
+
"@flatjs/graph": "1.8.1-next.29",
|
48
|
+
"@flatjs/mock": "1.8.1-next.46",
|
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",
|
@@ -64,6 +64,7 @@
|
|
64
64
|
"less-loader": "11.1.2",
|
65
65
|
"lodash": "4.17.21",
|
66
66
|
"mini-css-extract-plugin": "2.7.6",
|
67
|
+
"ora": "6.3.1",
|
67
68
|
"postcss": "8.4.24",
|
68
69
|
"postcss-loader": "7.3.2",
|
69
70
|
"react-refresh": "0.14.0",
|
@@ -78,7 +79,7 @@
|
|
78
79
|
},
|
79
80
|
"devDependencies": {
|
80
81
|
"@armit/eslint-config-bases": "^0.0.19",
|
81
|
-
"@flatjs/testing": "1.8.1-next.
|
82
|
+
"@flatjs/testing": "1.8.1-next.26",
|
82
83
|
"@swc/core": "1.3.61",
|
83
84
|
"@types/express": "4.17.17",
|
84
85
|
"@types/node": "20.2.5",
|
@@ -97,7 +98,7 @@
|
|
97
98
|
"ts-node": "10.9.1",
|
98
99
|
"vite-tsconfig-paths": "4.2.0",
|
99
100
|
"vitest": "0.31.4",
|
100
|
-
"vue-loader": "17.2.
|
101
|
+
"vue-loader": "17.2.2"
|
101
102
|
},
|
102
103
|
"peerDependencies": {
|
103
104
|
"imagemin-gifsicle": ">=7.0.0",
|