@flatjs/evolve 1.8.1-next.61 → 1.8.1-next.62

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @flatjs/evolve
2
2
 
3
+ ## 1.8.1-next.62
4
+
5
+ ### Patch Changes
6
+
7
+ - 0a1b52e: Improved mock logging, plugin configurations
8
+ - 81298ad: Refactor allow config file to `.mjs,.mts,.ts`
9
+ - Updated dependencies [0a1b52e]
10
+ - Updated dependencies [81298ad]
11
+ - @flatjs/mock@1.8.1-next.51
12
+ - @flatjs/graph@1.8.1-next.33
13
+
3
14
  ## 1.8.1-next.61
4
15
 
5
16
  ### Patch Changes
@@ -1,7 +1,7 @@
1
1
  import { type EvolveEntryMap } from '../types/types-entry-map.js';
2
2
  /**
3
3
  * Make sure that we have correct `virtualPath` for each webpack `entry`
4
- * @param entryName the entryName defined via `flatjs-evolve.config.mts`.
4
+ * @param entryName the entryName defined via `flatjs-evolve.config.ts`.
5
5
  * @param evolveOptions
6
6
  * @returns
7
7
  */
@@ -1 +1 @@
1
- import{urlJoin}from"@flatjs/common";import{attachMockMiddlewares}from"@flatjs/mock";import{createAppPageRoute,createDevServer,createDevServerCompilerTasks,createDevServerEntries}from"../dev-server/index.js";import{openPage}from"../helpers/index.js";import{envVerify}from"./env-verify.js";export const prepareServe=async(e,r,t)=>{await envVerify(e,t);const{app:a,devPort:o,devHostUri:i}=await createDevServer(t);attachMockMiddlewares(a,{...t.devServer?.mockOptions,projectCwd:e});const s=await createDevServerEntries(o,r,t);createAppPageRoute(e,a,i,s,t);const v=urlJoin(i,["/pages"]);t.devServer?.autoOpen&&openPage(v);const p=await createDevServerCompilerTasks(e,v,s,t);return Promise.all(p).then((()=>a))};
1
+ import{urlJoin}from"@flatjs/common";import{attachMockMiddlewares}from"@flatjs/mock";import{createAppPageRoute,createDevServer,createDevServerCompilerTasks,createDevServerEntries}from"../dev-server/index.js";import{openPage}from"../helpers/index.js";import{envVerify}from"./env-verify.js";export const prepareServe=async(e,r,t)=>{await envVerify(e,t);const{app:a,devPort:o,devHostUri:i}=await createDevServer(t);await attachMockMiddlewares(a,{...t.devServer?.mockOptions,projectCwd:e});const s=await createDevServerEntries(o,r,t);createAppPageRoute(e,a,i,s,t);const v=urlJoin(i,["/pages"]);t.devServer?.autoOpen&&openPage(v);const p=await createDevServerCompilerTasks(e,v,s,t);return Promise.all(p).then((()=>a))};
@@ -1 +1 @@
1
- import{chalk,logger,urlJoin}from"@flatjs/common";import{attachMockMiddlewares}from"@flatjs/mock";import{createAppPageRoute}from"../dev-server/create-app-page-route.js";import{createDevServer}from"../dev-server/create-dev-server.js";import{openPage}from"../helpers/open-page.js";export const prepareStatic=async(e,r)=>{const{app:a,devHostUri:o}=await createDevServer(r);attachMockMiddlewares(a,{...r.devServer?.mockOptions,projectCwd:e}),createAppPageRoute(e,a,o,{},r);const t=urlJoin(o,["/pages"]);r.devServer?.autoOpen&&openPage(t),logger.info(`${"static page".padEnd(12," ")} ➩ ${chalk(["cyan"])(t)}`)};
1
+ import{chalk,logger,urlJoin}from"@flatjs/common";import{attachMockMiddlewares}from"@flatjs/mock";import{createAppPageRoute}from"../dev-server/create-app-page-route.js";import{createDevServer}from"../dev-server/create-dev-server.js";import{openPage}from"../helpers/open-page.js";export const prepareStatic=async(e,r)=>{const{app:a,devHostUri:o}=await createDevServer(r);await attachMockMiddlewares(a,{...r.devServer?.mockOptions,projectCwd:e}),createAppPageRoute(e,a,o,{},r);const t=urlJoin(o,["/pages"]);r.devServer?.autoOpen&&openPage(t),logger.info(`${"static page".padEnd(12," ")} ➩ ${chalk(["cyan"])(t)}`)};
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * The CI pipeline execute `priority` as below
3
- * 1. Fixed module build depends on config : `fixedBuildModules` of `flatjs-evolve.config.mts`
3
+ * 1. Fixed module build depends on config : `fixedBuildModules` of `flatjs-evolve.config.ts`
4
4
  * 2. Dynamic build depends on commits (`flat build evolve --commits=""`)
5
5
  * 3. Normally build manually using (`flat build evolve -m "a;b"`)
6
6
  */
@@ -50,7 +50,7 @@ export type FlatEvolveDevServerOptions = {
50
50
  */
51
51
  clientOverlay?: ClientConfiguration['overlay'];
52
52
  /**
53
- * The customized config options of `flatjs/mock`, it will override options `flatjs-mock.config.mts`
53
+ * The customized config options of `flatjs/mock`, it will override options `flatjs-mock.config.ts`
54
54
  */
55
55
  mockOptions?: Omit<FlatMockOptions, 'projectCwd'>;
56
56
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatjs/evolve",
3
- "version": "1.8.1-next.61",
3
+ "version": "1.8.1-next.62",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -44,8 +44,8 @@
44
44
  "@flatjs/common": "1.8.1-next.28",
45
45
  "@flatjs/evolve-preset-babel": "1.8.1-next.13",
46
46
  "@flatjs/forge-postcss-plugin-pixel": "1.8.1-next.28",
47
- "@flatjs/graph": "1.8.1-next.32",
48
- "@flatjs/mock": "1.8.1-next.50",
47
+ "@flatjs/graph": "1.8.1-next.33",
48
+ "@flatjs/mock": "1.8.1-next.51",
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",