Fixing folders

This commit is contained in:
Martin Karkowski 2020-08-25 10:32:46 +02:00
parent 3e2d912614
commit ef29a1054f
4 changed files with 7 additions and 4 deletions

2
.gitignore vendored
View File

@ -103,3 +103,5 @@ temp
# TernJS port file
.tern-port
backend-api/

View File

@ -1,13 +1,13 @@
{
"dispatcher": {
"inputDir": "./test/*.ts",
"outputDir": "./pages/backend",
"outputDir": "./backend-api",
"pathToTemplate": "./lib/templates/clientInterface.handlebars",
"tsConfigFilePath": "./tsconfigBackend.json"
},
"openapi": {
"inputDir": "./test/*.ts",
"outputDir": "./api/backend",
"outputDir": "./open-api/backend",
"tempDir": "./temp/",
"pathToSchemaTemplate": "./lib/templates/schema.handlebars",
"pathToApiTemplate": "./lib/templates/openApiSchema.handlebars",

View File

@ -30,7 +30,7 @@ export function startBackend(options: {
initialize({
apiDoc: apiDoc('Backend API', '1.0.0', opts.basePath),
app,
paths: './dist/api',
paths: './dist/open-api',
routesGlob: '**/*.{ts,js}',
routesIndexFileRegExp: /(?:index)?\.[tj]s$/,
dependencies: {

View File

@ -21,7 +21,8 @@
},
"include": [
"next-env.d.ts",
"**/*.ts",
"pages/**/*.ts",
"backend-api/**/*.ts",
"**/*.tsx"
],
"exclude": [