Skip to content

Commit

Permalink
[koot] fix an issue that prevent dev env starting
Browse files Browse the repository at this point in the history
- update dependencies
- update test
  • Loading branch information
Diablohu committed Mar 23, 2019
1 parent 89de23d commit 09a292b
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 20 deletions.
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
"node": ">=8.0.0"
},
"license": "Apache-2.0",
"dependencies": {
"docsify-cli": "4.3.0"
},
"devDependencies": {
"lerna": "3.13.1",
"lerna-wizard": "1.0.9",
Expand All @@ -48,9 +51,7 @@
"fs-extra": "7.0.1",
"is-valid-path": "0.1.1",
"inquirer": "6.2.2",
"chalk": "2.4.2"
},
"dependencies": {
"docsify-cli": "4.3.0"
"chalk": "2.4.2",
"latest-version": "5.0.0"
}
}
10 changes: 10 additions & 0 deletions packages/koot/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## 0.8.1
**2019-03-23**
- 错误修正
- 修复一处阻止开发环境正常启动的问题
- 更新依赖包
- patch
- `copy-webpack-plugin` -> _5.0.2_
- `react` -> _16.8.5_
- `react-dom` -> _16.8.5_

## 0.8.0
**2019-03-22**
- **重大改动**
Expand Down
2 changes: 1 addition & 1 deletion packages/koot/core/webpack/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ module.exports = async (kootConfig = {}) => {
server.use(require('webpack-hot-middleware')(compiler))

try {
server.listen(port, '0.0.0.0', async (err) => {
server.listen(port, async (err) => {
// if (err) console.error(err)
if (err) buildingError(err)
// console.log('===========')
Expand Down
6 changes: 3 additions & 3 deletions packages/koot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"cli-spinners": "2.0.0",
"commander": "2.19.0",
"cookie": "0.3.1",
"copy-webpack-plugin": "5.0.1",
"copy-webpack-plugin": "5.0.2",
"copyfiles": "2.1.0",
"css-loader": "2.1.1",
"debug": "4.1.1",
Expand Down Expand Up @@ -104,8 +104,8 @@
"portfinder": "1.0.20",
"postcss": "7.0.14",
"postcss-loader": "3.0.0",
"react": "16.8.4",
"react-dom": "16.8.4",
"react": "16.8.5",
"react-dom": "16.8.5",
"react-hot-loader": "4.8.0",
"react-redux": "5.1.1",
"react-router": "3.2.1",
Expand Down
3 changes: 3 additions & 0 deletions test/cases/package/cli/modify-package-dependency.test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// jest configuration
jest.setTimeout(5 * 60 * 1 * 1000) // 5mins

const fs = require('fs-extra')
const path = require('path')
const latestVersion = require('latest-version')
Expand Down
27 changes: 21 additions & 6 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ const run = async () => {
name: 'Full',
value: 'FULL'
},
{
name: 'Full (donot init test projects)',
value: 'FULL-QUICK'
},
new inquirer.Separator(),
{
name: 'React - Full',
Expand Down Expand Up @@ -59,14 +63,25 @@ const run = async () => {
const script = (() => {

if (value === 'FULL')
return `node ./test/pre-test.js`
+ `&& jest "^((?!need-in-order).)*\\.js$"`
+ `&& jest ${jestScript.reactSPA}`
+ `&& jest ${jestScript.reactIsomorphic}`
return [
`node ./test/pre-test.js`,
`jest "^((?!need-in-order).)*\\.js$"`,
`jest ${jestScript.reactSPA}`,
`jest ${jestScript.reactIsomorphic}`
].join(' && ')

if (value === 'FULL-QUICK')
return [
`jest "^((?!need-in-order).)*\\.js$"`,
`jest ${jestScript.reactSPA}`,
`jest ${jestScript.reactIsomorphic}`
].join(' && ')

if (value === 'REACT')
return `jest ${jestScript.reactSPA}`
+ `&& jest ${jestScript.reactIsomorphic}`
return [
`jest ${jestScript.reactSPA}`,
`jest ${jestScript.reactIsomorphic}`
].join(' && ')

return `jest ${value}`

Expand Down
6 changes: 3 additions & 3 deletions test/projects/simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"cli-spinners": "2.0.0",
"commander": "2.19.0",
"cookie": "0.3.1",
"copy-webpack-plugin": "5.0.1",
"copy-webpack-plugin": "5.0.2",
"copyfiles": "2.1.0",
"css-loader": "2.1.1",
"debug": "4.1.1",
Expand Down Expand Up @@ -96,8 +96,8 @@
"portfinder": "1.0.20",
"postcss": "7.0.14",
"postcss-loader": "3.0.0",
"react": "16.8.4",
"react-dom": "16.8.4",
"react": "16.8.5",
"react-dom": "16.8.5",
"react-hot-loader": "4.8.0",
"react-redux": "5.1.1",
"react-router": "3.2.1",
Expand Down
6 changes: 3 additions & 3 deletions test/projects/standard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"cli-spinners": "2.0.0",
"commander": "2.19.0",
"cookie": "0.3.1",
"copy-webpack-plugin": "5.0.1",
"copy-webpack-plugin": "5.0.2",
"copyfiles": "2.1.0",
"css-loader": "2.1.1",
"debug": "4.1.1",
Expand Down Expand Up @@ -110,8 +110,8 @@
"portfinder": "1.0.20",
"postcss": "7.0.14",
"postcss-loader": "3.0.0",
"react": "16.8.4",
"react-dom": "16.8.4",
"react": "16.8.5",
"react-dom": "16.8.5",
"react-hot-loader": "4.8.0",
"react-redux": "5.1.1",
"react-router": "3.2.1",
Expand Down

0 comments on commit 09a292b

Please sign in to comment.