Skip to content

Commit

Permalink
fix:(@kkt/ssr):修复参数 (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
SunLxy authored Mar 31, 2022
1 parent cee5afa commit f3b6f8d
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 25 deletions.
2 changes: 1 addition & 1 deletion core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kkt/ssr",
"version": "3.1.9",
"version": "3.1.10",
"description": "",
"license": "MIT",
"main": "lib/index.js",
Expand Down
2 changes: 1 addition & 1 deletion core/src/script/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions example/basic-plugins/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@examples/basic-plugins",
"version": "3.1.9",
"version": "3.1.10",
"description": "",
"private": true,
"scripts": {
Expand All @@ -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": {
Expand Down
6 changes: 3 additions & 3 deletions example/basic-routes-rematch-new/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@examples/basic-routes-rematch-new",
"version": "3.1.9",
"version": "3.1.10",
"description": "",
"private": true,
"scripts": {
Expand All @@ -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": {
Expand All @@ -36,4 +36,4 @@
"last 1 safari version"
]
}
}
}
6 changes: 3 additions & 3 deletions example/basic-routes/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@examples/basic-routes",
"version": "3.1.9",
"version": "3.1.10",
"description": "",
"private": true,
"scripts": {
Expand All @@ -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": {
Expand All @@ -32,4 +32,4 @@
"last 1 safari version"
]
}
}
}
6 changes: 3 additions & 3 deletions example/basic/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@examples/basic",
"version": "3.1.9",
"version": "3.1.10",
"description": "",
"private": true,
"scripts": {
Expand All @@ -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": {
Expand All @@ -30,4 +30,4 @@
"last 1 safari version"
]
}
}
}
10 changes: 5 additions & 5 deletions example/react-router-rematch-old/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@examples/basic-routes-rematch-old",
"version": "3.1.9",
"version": "3.1.10",
"description": "",
"private": true,
"scripts": {
Expand All @@ -13,7 +13,7 @@
"author": "Kenny Wong <wowohoo@qq.com>",
"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",
Expand All @@ -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",
Expand Down Expand Up @@ -58,4 +58,4 @@
"last 1 safari version"
]
}
}
}
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"packages/kkt-plugin-less",
"packages/kkt-plugin-ssr"
],
"version": "3.1.9",
"version": "3.1.10",
"command": {
"create": {
"license": "MIT"
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-kkt-ssr/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-kkt-ssr/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/kkt-plugin-less/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/kkt-plugin-ssr/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-ssr-enhanced/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit f3b6f8d

Please sign in to comment.