Skip to content

Commit

Permalink
Merge pull request #43 from smartlyio/type-directed-traversal
Browse files Browse the repository at this point in the history
Type directed traversal
  • Loading branch information
sakari committed Aug 25, 2021
1 parent 9e13b30 commit 4c82352
Show file tree
Hide file tree
Showing 16 changed files with 1,142 additions and 35 deletions.
4 changes: 2 additions & 2 deletions packages/oats-runtime/adapters/axios/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@smartlyio/oats-axios-adapter",
"version": "1.0.1",
"version": "2.0.0",
"license": "MIT",
"description": "Axios adapter for Oats a Openapi3 based generator for typescript aware servers and clients",
"private": false,
Expand All @@ -20,7 +20,7 @@
"axios": "^0.19.0"
},
"dependencies": {
"@smartlyio/oats-runtime": "^1.0.0",
"@smartlyio/oats-runtime": "^2.0.0",
"@types/form-data": "^2.2.1",
"form-data": "^3.0.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/oats-runtime/adapters/koa/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@smartlyio/oats-koa-adapter",
"version": "1.0.5",
"version": "2.0.0",
"license": "MIT",
"description": "Koa adapter for Oats",
"private": false,
Expand All @@ -16,7 +16,7 @@
"url": "https://github.com/smartlyio/oats.git"
},
"peerDependencies": {
"@smartlyio/oats-runtime": "^1.0.0",
"@smartlyio/oats-runtime": "^2.0.0",
"@types/koa": "^2.0.39",
"@types/koa-router": "^7.0.23",
"koa": "^2.3.0",
Expand Down
4 changes: 3 additions & 1 deletion packages/oats-runtime/build-all.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
set -e
rm -rf node_modules
yarn
yarn clean
yarn prebuild

cd runtime
echo "building $PWD"
Expand Down
17 changes: 10 additions & 7 deletions packages/oats-runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@smartlyio/oats",
"version": "1.7.2",
"version": "2.0.0",
"license": "MIT",
"description": "Openapi3 based generator for typescript aware servers and clients",
"private": false,
Expand All @@ -9,9 +9,11 @@
"types": "dist/index.d.ts",
"scripts": {
"build-all": "./build-all.sh",
"test": "yarn jest test/",
"test": "yarn ts-node test/runtime-driver.ts && yarn jest",
"render": "yarn ts-node examples/driver.ts && yarn ts-node render.ts",
"build": "rm -rf ./dist/* && rm -f ./tmp/*.ts && yarn render && yarn test && yarn lint && yarn tsc",
"clean": "rm -rf ./dist/* && rm -f ./tmp/*.ts && rm -f ./runtime/tmp/*.ts",
"prebuild": "yarn ts-node test/runtime-driver.ts",
"build": "yarn clean && yarn render && yarn test && yarn lint && yarn tsc",
"lint": "tslint -c tslint.json --project package.json",
"fix": "tslint --fix -c tslint.json --project package.json",
"prepack": "yarn build-all"
Expand All @@ -21,7 +23,7 @@
"url": "https://github.com/smartlyio/oats.git"
},
"peerDependencies": {
"@smartlyio/oats-runtime": "^1.0.0",
"@smartlyio/oats-runtime": "^2.0.0",
"typescript": "^3.6.3"
},
"dependencies": {
Expand All @@ -43,14 +45,15 @@
"devDependencies": {
"@smartlyio/oats-axios-adapter": "^1.0.1",
"@smartlyio/oats-koa-adapter": "^1.0.4",
"@smartlyio/oats-runtime": "^1.0.7",
"@smartlyio/oats-runtime": "^1.0.8",
"@types/jest": "^25.0.0",
"@types/koa": "^2.0.50",
"@types/koa-mount": "^4.0.0",
"@types/koa-router": "^7.0.40",
"@types/lodash": "^4.14.140",
"@types/node": "^11.11.3",
"axios": "^0.19.0",
"fast-check": "^1.23.0",
"form-data": "^3.0.0",
"jest": "^25.0.0",
"jsverify": "^0.8.4",
Expand All @@ -68,11 +71,11 @@
},
"jest": {
"testEnvironment": "node",
"testRegex": "test/.*\\.spec.(jsx?|tsx?)$",
"testRegex": "test/.*\\.spec.ts$",
"moduleFileExtensions": [
"js",
"json",
"jsx",
"json",
"ts",
"tsx"
],
Expand Down
21 changes: 8 additions & 13 deletions packages/oats-runtime/runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@smartlyio/oats-runtime",
"version": "1.0.7",
"version": "2.0.0",
"license": "MIT",
"description": "Runtime for Oats a Openapi3 based generator for typescript aware servers and clients",
"private": false,
Expand Down Expand Up @@ -35,26 +35,21 @@
"@types/jest": "^25.0.0",
"@types/lodash": "^4.14.140",
"@types/node": "^11.11.3",
"fast-check": "^1.23.0",
"jsverify": "^0.8.4",
"typescript": "^3.6.3"
},
"jest": {
"testEnvironment": "node",
"globals": {
"ts-jest": {
"skipBabel": true
}
},
"testRegex": "test/.*\\.spec.(jsx?|tsx?)$",
"transform": {
"^.+\\.tsx?$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"json",
"jsx",
"json"
]
"ts",
"tsx"
],
"preset": "ts-jest",
"testMatch": null
}
}
Loading

0 comments on commit 4c82352

Please sign in to comment.