Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Commit

Permalink
Fixup configs to work with wallaby.
Browse files Browse the repository at this point in the history
  • Loading branch information
patroza committed May 23, 2021
1 parent 5b9c224 commit 4f3a6fc
Show file tree
Hide file tree
Showing 15 changed files with 23 additions and 54 deletions.
7 changes: 5 additions & 2 deletions apps/api/babel.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"@babel/preset-env",
{
"useBuiltIns": "usage",
"corejs": 3
"corejs": 3,
"target": {
"node": "current"
}
}
],
"@babel/preset-typescript"
Expand All @@ -27,4 +30,4 @@
}
]
]
}
}
4 changes: 2 additions & 2 deletions apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
"lint": "eslint .",
"prettier": "prettier \"**/*.ts\"",
"autofix": "yarn lint --fix && yarn prettier --write",
"test": "yarn jest",
"test": "jest --config ../../jest.config.ci.js",
"testsuite": "yarn compile && yarn lint && yarn test && yarn circular",
"dev": "TSC_WATCHFILE=UseFsEventsWithFallbackDynamicPolling NODE_ENV=development nodemon --watch . --watch ../../packages --exec yarn esr ./start-server.ts",
"dev": "AUTH_DISABLED=true TSC_WATCHFILE=UseFsEventsWithFallbackDynamicPolling NODE_ENV=development nodemon --watch . --watch ../../packages --exec yarn esr ./start-server.ts",
"start": "ts-node --compiler ttypescript -r tsconfig-paths/register --transpile-only ./start-server.ts"
},
"devDependencies": {
Expand Down
5 changes: 0 additions & 5 deletions apps/frontend/jest.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion apps/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"prettier": "prettier \"**/*.ts\" \"**/*.tsx\"",
"autofix": "yarn lint --fix && yarn prettier --write",
"testsuite": "yarn compile && yarn lint && yarn circular",
"dev": "next dev -p 3133",
"dev": "AUTH_DISABLED=true next dev -p 3133",
"build": "next build",
"start": "next start"
},
Expand Down
17 changes: 6 additions & 11 deletions babel.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"@babel/preset-env",
{
"useBuiltIns": "usage",
"corejs": 3
"corejs": 3,
"targets": {
"node": "current"
}
}
],
"@babel/preset-typescript"
Expand All @@ -17,14 +20,6 @@
}
],
"@babel/proposal-class-properties",
"@babel/proposal-object-rest-spread",
[
"module-resolver",
{
"alias": {
"@": "./src"
}
}
]
"@babel/proposal-object-rest-spread"
]
}
}
2 changes: 1 addition & 1 deletion boilerplates/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"lint": "eslint .",
"prettier": "prettier \"**/*.ts\"",
"autofix": "yarn lint --fix && yarn prettier --write",
"test": "yarn jest",
"test": "jest --config ../../jest.config.ci.js",
"testsuite": "yarn compile && yarn lint && yarn test && yarn circular",
"dev": "AUTH_DISABLED=true TSC_WATCHFILE=UseFsEventsWithFallbackDynamicPolling NODE_ENV=development nodemon --watch . --watch ../../packages --exec ts-node -r tsconfig-paths/register --transpile-only ./start-server.ts",
"start": "ts-node --compiler ttypescript -r tsconfig-paths/register --transpile-only ./start-server.ts"
Expand Down
2 changes: 1 addition & 1 deletion apps/api/jest.config.js → jest.config.ci.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
transform: {
"\\.tsx?$": "esbuild-runner/jest",
},
}
}
5 changes: 0 additions & 5 deletions jest.config.js

This file was deleted.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
"start": "concurrently -k -p \"[{name}]\" -n \"API,Frontend\" -c \"cyan.bold,green.bold,blue.bold\" \"yarn start:api\" \"yarn start:frontend\"",
"start:api": "cd apps/api && yarn start",
"start:frontend": "cd apps/frontend && yarn start -p $PORT",
"dev": "AUTH_DISABLED=true concurrently -k -p \"[{name}]\" -n \"API,Frontend\" -c \"cyan.bold,green.bold,blue.bold\" \"yarn dev:api\" \"yarn dev:frontend\"",
"dev": "concurrently -k -p \"[{name}]\" -n \"API,Frontend\" -c \"cyan.bold,green.bold,blue.bold\" \"yarn dev:api\" \"yarn dev:frontend\"",
"dev:api": "cd apps/api && yarn dev",
"dev:frontend": "cd apps/frontend && yarn dev",
"build": "cd apps/frontend && yarn build",
"postinstall": "patch-package",
"test": "ultra -r yarn test",
"testsuite": "ultra -r yarn testsuite",
"up": "ultra -r --root ncu -u --packageFile package.json -x @types/node",
"pub": "yarn lerna publish --no-private"
Expand Down Expand Up @@ -65,4 +66,4 @@
"typescript": "^4.2.4",
"ultra-runner": "^3.10.5"
}
}
}
5 changes: 0 additions & 5 deletions packages/client/jest.config.js

This file was deleted.

4 changes: 2 additions & 2 deletions packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"lint": "eslint .",
"prettier": "prettier \"**/*.ts\"",
"autofix": "yarn lint --fix && yarn prettier --write",
"test": "jest",
"test": "jest --config ../../jest.config.ci.js",
"testsuite": "yarn compile && yarn lint && yarn test && yarn circular"
}
}
}
5 changes: 0 additions & 5 deletions packages/core/jest.config.js

This file was deleted.

5 changes: 0 additions & 5 deletions packages/infra/jest.config.js

This file was deleted.

4 changes: 2 additions & 2 deletions packages/infra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"scripts": {
"build": "yarn clean && tsc",
"clean": "find . | egrep '\\.js(\\.map)$|\\.d.ts$' | grep -v .eslint | grep -v jest.config | grep -v jest.config | xargs rm -f",
"clean": "find . | egrep '\\.js(\\.map)?$|\\.d.ts$' | grep -v .eslint | grep -v jest.config | grep -v jest.config | xargs rm -f",
"postpublish": "yarn clean",
"prepare": "yarn build",
"circular": "madge --circular --ts-config ./tsconfig.json --extensions ts ./",
Expand All @@ -45,4 +45,4 @@
"publishConfig": {
"access": "public"
}
}
}
5 changes: 0 additions & 5 deletions packages/types/jest.config.js

This file was deleted.

0 comments on commit 4f3a6fc

Please sign in to comment.