Added rlly basic lib generation

ref #31
This commit is contained in:
2020-12-12 22:21:45 +01:00
parent c3aa88c212
commit 421ddc50ed
3 changed files with 68 additions and 3 deletions

View File

@@ -38,11 +38,11 @@
"reflect-metadata": "^0.1.13",
"routing-controllers": "^0.9.0-alpha.6",
"routing-controllers-openapi": "^2.1.0",
"sqlite3": "^5.0.0",
"swagger-ui-express": "^4.1.5",
"typeorm": "^0.2.29",
"typeorm-routing-controllers-extensions": "^0.2.0",
"typeorm-seeding": "^1.6.1",
"sqlite3": "^5.0.0",
"uuid": "^8.3.1"
},
"devDependencies": {
@@ -56,6 +56,7 @@
"axios": "^0.21.0",
"jest": "^26.6.3",
"nodemon": "^2.0.6",
"rimraf": "^2.7.1",
"start-server-and-test": "^1.11.6",
"ts-jest": "^26.4.4",
"ts-node": "^9.0.0",
@@ -69,7 +70,10 @@
"test": "jest",
"test:watch": "jest --watchAll",
"test:ci": "start-server-and-test dev http://localhost:4010/api/openapi.json test",
"seed": "ts-node ./node_modules/typeorm/cli.js schema:sync && ts-node ./node_modules/typeorm-seeding/dist/cli.js seed"
"seed": "ts-node ./node_modules/typeorm/cli.js schema:sync && ts-node ./node_modules/typeorm-seeding/dist/cli.js seed",
"openapi:export": "ts-node src/openapi_export.ts",
"lib": "rimraf ./lib && npm run openapi:export && npm run lib:generate",
"lib:generate": "npx openapi-typescript-codegen --input ./lib/openapi.json --output ./lib/dist"
},
"nodemonConfig": {
"ignore": [
@@ -77,4 +81,4 @@
"docs/*"
]
}
}
}