From f3b6f8d057227124d5c76ff110811ab6f2160a17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=80=8D=E9=81=A5?= <49544090+SunLxy@users.noreply.github.com> Date: Thu, 31 Mar 2022 16:09:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:(@kkt/ssr):=E4=BF=AE=E5=A4=8D=E5=8F=82?= =?UTF-8?q?=E6=95=B0=20(#37)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/package.json | 2 +- core/src/script/start.ts | 2 +- example/basic-plugins/package.json | 4 ++-- example/basic-routes-rematch-new/package.json | 6 +++--- example/basic-routes/package.json | 6 +++--- example/basic/package.json | 6 +++--- example/react-router-rematch-old/package.json | 10 +++++----- lerna.json | 2 +- package.json | 5 ++++- packages/create-kkt-ssr/package.json | 2 +- packages/create-kkt-ssr/src/utils.ts | 2 +- packages/kkt-plugin-less/package.json | 2 +- packages/kkt-plugin-ssr/package.json | 2 +- packages/react-ssr-enhanced/package.json | 2 +- 14 files changed, 28 insertions(+), 25 deletions(-) diff --git a/core/package.json b/core/package.json index 84e67bb..dfc6174 100644 --- a/core/package.json +++ b/core/package.json @@ -1,6 +1,6 @@ { "name": "@kkt/ssr", - "version": "3.1.9", + "version": "3.1.10", "description": "", "license": "MIT", "main": "lib/index.js", diff --git a/core/src/script/start.ts b/core/src/script/start.ts index be85b0c..a48756c 100644 --- a/core/src/script/start.ts +++ b/core/src/script/start.ts @@ -10,7 +10,7 @@ export default async (options: OptionsProps) => { delete require.cache[require.resolve(`${reactDevUtils}/openBrowser`)]; try { - const { overrides, config } = await createCompiler("development", options, true) + const { overrides, config } = await createCompiler("development", options) require.cache[require.resolve(webpackConfigPath)].exports = (env: string) => config; diff --git a/example/basic-plugins/package.json b/example/basic-plugins/package.json index 81aba2a..4a6766f 100644 --- a/example/basic-plugins/package.json +++ b/example/basic-plugins/package.json @@ -1,6 +1,6 @@ { "name": "@examples/basic-plugins", - "version": "3.1.9", + "version": "3.1.10", "description": "", "private": true, "scripts": { @@ -16,7 +16,7 @@ "react-dom": "17.0.2" }, "devDependencies": { - "@kkt/plugin-ssr": "3.1.9", + "@kkt/plugin-ssr": "3.1.10", "kkt": "~7.1.5" }, "browserslist": { diff --git a/example/basic-routes-rematch-new/package.json b/example/basic-routes-rematch-new/package.json index 4e99977..d3c8269 100644 --- a/example/basic-routes-rematch-new/package.json +++ b/example/basic-routes-rematch-new/package.json @@ -1,6 +1,6 @@ { "name": "@examples/basic-routes-rematch-new", - "version": "3.1.9", + "version": "3.1.10", "description": "", "private": true, "scripts": { @@ -21,7 +21,7 @@ "serialize-javascript": "6.0.0" }, "devDependencies": { - "@kkt/ssr": "3.1.9", + "@kkt/ssr": "3.1.10", "kkt": "~7.1.5" }, "browserslist": { @@ -36,4 +36,4 @@ "last 1 safari version" ] } -} \ No newline at end of file +} diff --git a/example/basic-routes/package.json b/example/basic-routes/package.json index 17de140..acf5637 100644 --- a/example/basic-routes/package.json +++ b/example/basic-routes/package.json @@ -1,6 +1,6 @@ { "name": "@examples/basic-routes", - "version": "3.1.9", + "version": "3.1.10", "description": "", "private": true, "scripts": { @@ -17,7 +17,7 @@ "react-router-dom": "^6.2.2" }, "devDependencies": { - "@kkt/ssr": "3.1.9", + "@kkt/ssr": "3.1.10", "kkt": "~7.1.5" }, "browserslist": { @@ -32,4 +32,4 @@ "last 1 safari version" ] } -} \ No newline at end of file +} diff --git a/example/basic/package.json b/example/basic/package.json index 87c36ca..9011cd0 100644 --- a/example/basic/package.json +++ b/example/basic/package.json @@ -1,6 +1,6 @@ { "name": "@examples/basic", - "version": "3.1.9", + "version": "3.1.10", "description": "", "private": true, "scripts": { @@ -15,7 +15,7 @@ "react-dom": "17.0.2" }, "devDependencies": { - "@kkt/ssr": "3.1.9", + "@kkt/ssr": "3.1.10", "kkt": "~7.1.5" }, "browserslist": { @@ -30,4 +30,4 @@ "last 1 safari version" ] } -} \ No newline at end of file +} diff --git a/example/react-router-rematch-old/package.json b/example/react-router-rematch-old/package.json index d9cbe6b..1f002ee 100644 --- a/example/react-router-rematch-old/package.json +++ b/example/react-router-rematch-old/package.json @@ -1,6 +1,6 @@ { "name": "@examples/basic-routes-rematch-old", - "version": "3.1.9", + "version": "3.1.10", "description": "", "private": true, "scripts": { @@ -13,7 +13,7 @@ "author": "Kenny Wong ", "license": "MIT", "dependencies": { - "@kkt/react-ssr-enhanced": "3.1.9", + "@kkt/react-ssr-enhanced": "3.1.10", "@rematch/core": "2.2.0", "axios": "0.26.0", "cookie-parser": "1.4.3", @@ -29,8 +29,8 @@ "redux": "4.1.2" }, "devDependencies": { - "@kkt/plugin-less": "3.1.9", - "@kkt/ssr": "3.1.9", + "@kkt/plugin-less": "3.1.10", + "@kkt/ssr": "3.1.10", "assert": "2.0.0", "browserify-zlib": "0.2.0", "buffer": "6.0.3", @@ -58,4 +58,4 @@ "last 1 safari version" ] } -} \ No newline at end of file +} diff --git a/lerna.json b/lerna.json index 755c06a..0c6405d 100644 --- a/lerna.json +++ b/lerna.json @@ -7,7 +7,7 @@ "packages/kkt-plugin-less", "packages/kkt-plugin-ssr" ], - "version": "3.1.9", + "version": "3.1.10", "command": { "create": { "license": "MIT" diff --git a/package.json b/package.json index 98a8950..839054f 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "private": true, "description": "A baseline for server side rendering for your React application.", "scripts": { - "build": "npm run build:ssr && npm run build:enhanced && npm run build:less", + "build": "npm run build:ssr && npm run build:enhanced && npm run build:less && npm run build:create-kkt-ssr", "-----build:ssr-----": "----------", "build:ssr": "lerna exec --scope @kkt/ssr -- npm run build", "watch:ssr": "lerna exec --scope @kkt/ssr -- npm run watch", @@ -16,6 +16,9 @@ "-----build:kkt-plugin-ssr-----": "----------", "build:plugin-ssr": "lerna exec --scope @kkt/plugin-ssr -- npm run build", "watch:plugin-ssr": "lerna exec --scope @kkt/plugin-ssr -- npm run watch", + "-----build:create-kkt-ssr-----": "----------", + "build:create-kkt-ssr": "lerna exec --scope create-kkt-ssr -- npm run build", + "watch:create-kkt-ssr": "lerna exec --scope create-kkt-ssr -- npm run watch", "-------------": "-------------------", "hoist": "lerna bootstrap --hoist", "bootstrap": "lerna bootstrap", diff --git a/packages/create-kkt-ssr/package.json b/packages/create-kkt-ssr/package.json index 0fd6fdf..31fb0b7 100644 --- a/packages/create-kkt-ssr/package.json +++ b/packages/create-kkt-ssr/package.json @@ -1,6 +1,6 @@ { "name": "create-kkt-ssr", - "version": "3.1.9", + "version": "3.1.10", "description": "CLI tool to bootstrap KKT applications with no configuration", "main": "lib/index.js", "bin": { diff --git a/packages/create-kkt-ssr/src/utils.ts b/packages/create-kkt-ssr/src/utils.ts index d2c18e4..5d14acc 100644 --- a/packages/create-kkt-ssr/src/utils.ts +++ b/packages/create-kkt-ssr/src/utils.ts @@ -48,7 +48,7 @@ export const helpCli: string = ` --version, -v Show version number --help, -h Displays help information. --output, -o Output directory. - --example, -e Example from: \x1b[34mhttps://kktjs.github.io/ssr/zip/\x1b[0m, default: "kkt-ssr-ts" + --example, -e Example from: \x1b[34mhttps://kktjs.github.io/ssr/zip/\x1b[0m, default: "basic" --path, -p Specify the download target git address. default: "\x1b[34mhttps://kktjs.github.io/ssr/zip/\x1b[0m" diff --git a/packages/kkt-plugin-less/package.json b/packages/kkt-plugin-less/package.json index 13ce0ef..7458693 100644 --- a/packages/kkt-plugin-less/package.json +++ b/packages/kkt-plugin-less/package.json @@ -1,6 +1,6 @@ { "name": "@kkt/plugin-less", - "version": "3.1.9", + "version": "3.1.10", "description": "Support less.", "main": "lib/index.js", "module": "esm/index.js", diff --git a/packages/kkt-plugin-ssr/package.json b/packages/kkt-plugin-ssr/package.json index a2b4aac..85427fd 100644 --- a/packages/kkt-plugin-ssr/package.json +++ b/packages/kkt-plugin-ssr/package.json @@ -1,6 +1,6 @@ { "name": "@kkt/plugin-ssr", - "version": "3.1.9", + "version": "3.1.10", "description": "", "main": "lib/index.js", "module": "esm/index.js", diff --git a/packages/react-ssr-enhanced/package.json b/packages/react-ssr-enhanced/package.json index 43f4d75..f75c562 100644 --- a/packages/react-ssr-enhanced/package.json +++ b/packages/react-ssr-enhanced/package.json @@ -1,6 +1,6 @@ { "name": "@kkt/react-ssr-enhanced", - "version": "3.1.9", + "version": "3.1.10", "description": "KKT react server side rendering enhancement tool.", "main": "lib/index.js", "module": "esm/index.js",