Skip to content

Commit

Permalink
feat: use midway cli replace egg-bin (#639)
Browse files Browse the repository at this point in the history
  • Loading branch information
echosoar authored Sep 17, 2020
1 parent e128d80 commit 62bbf38
Show file tree
Hide file tree
Showing 109 changed files with 38 additions and 4,136 deletions.
1 change: 0 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module.exports = (options = {}) => {
return Object.assign({
preset: 'ts-jest',
testEnvironment: 'midway-bin/jest/env.js',
testPathIgnorePatterns: ['<rootDir>/test/fixtures'],
coveragePathIgnorePatterns: ['<rootDir>/test/'],
}, options);
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"clean": "lerna clean --yes && rm -rf ./packages/**/package-lock.json",
"build": "sh scripts/build.sh",
"authors": "git log --format='%aN <%aE>' | sort -u > AUTHORS",
"gen-api-ref": "node ./packages/midway-bin/bin/midway-bin.js doc --options typedoc.js",
"postinstall": "opencollective-postinstall",
"lint": "lerna exec mwts check",
"lint:fix": "lerna exec mwts fix"
Expand Down
6 changes: 3 additions & 3 deletions packages/bootstrap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"typings": "dist/index.d.ts",
"scripts": {
"build": "midway-bin build -c",
"test": "../../node_modules/.bin/jest",
"cov": "../../node_modules/.bin/jest --coverage"
"test": "midway-bin test",
"cov": "midway-bin test --cov"
},
"keywords": [
"midway",
Expand All @@ -20,7 +20,7 @@
],
"license": "MIT",
"devDependencies": {
"midway-bin": "^2.2.4"
"@midwayjs/cli": "^1.0.x"
},
"dependencies": {
"@midwayjs/core": "^2.2.4"
Expand Down
6 changes: 3 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"typings": "dist/index.d.ts",
"scripts": {
"build": "midway-bin build -c",
"test": "../../node_modules/.bin/jest",
"cov": "../../node_modules/.bin/jest --coverage",
"test": "midway-bin test",
"cov": "midway-bin cov",
"link": "npm link"
},
"keywords": [
Expand All @@ -23,7 +23,7 @@
"license": "MIT",
"devDependencies": {
"chai": "^4.2.0",
"midway-bin": "^2.2.4",
"@midwayjs/cli": "^1.0.x",
"mm": "^2.5.0",
"sinon": "^7.2.2"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/decorator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"typings": "dist/index.d.ts",
"scripts": {
"build": "midway-bin build -c",
"test": "../../node_modules/.bin/jest",
"cov": "../../node_modules/.bin/jest --coverage",
"test": "midway-bin test",
"cov": "midway-bin test --cov",
"ci": "npm run test",
"link": "npm link"
},
Expand All @@ -21,7 +21,7 @@
"reflect-metadata": "^0.1.13"
},
"devDependencies": {
"midway-bin": "^2.2.4",
"@midwayjs/cli": "^1.0.x",
"mm": "^2.5.0"
},
"keywords": [
Expand Down
6 changes: 3 additions & 3 deletions packages/faas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@midwayjs/mock": "^2.2.4",
"@midwayjs/serverless-fc-starter": "^1.0.0",
"@midwayjs/serverless-scf-starter": "^1.0.0",
"midway-bin": "^2.2.4",
"@midwayjs/cli": "^1.0.x",
"mm": "^2.5.0"
},
"engines": {
Expand All @@ -37,8 +37,8 @@
],
"scripts": {
"build": "midway-bin build -c",
"test": "../../node_modules/.bin/jest",
"cov": "../../node_modules/.bin/jest --coverage"
"test": "midway-bin test",
"cov": "midway-bin test --cov"
},
"repository": {
"type": "git",
Expand Down
Loading

0 comments on commit 62bbf38

Please sign in to comment.