PR-448199:

Moving Server to src directory.
This commit is contained in:
Alejandro Lembke Barrientos 2022-05-25 23:48:42 +00:00
parent e9bc4f091f
commit 2b698e785a
13 changed files with 7 additions and 4 deletions

3
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}

View File

@ -1,7 +1,7 @@
'use strict';
import express from 'express'; //express
import { graphqlHTTP } from 'express-graphql';
import { config } from '../config';
import { config } from '../../config';
import schema from './schema';
const server = express.Router();//Router de Express

View File

@ -8,7 +8,7 @@ import { useServer } from 'graphql-ws/lib/use/ws';
import { execute, subscribe } from 'graphql';
import GraphQLserver from './GraphQL/server';// Server of GraphQL,
import schema from './GraphQL/schema';
import { config } from './config';
import { config } from '../config';
import apiRouter from './routes';

View File

@ -13,7 +13,7 @@ const resolvePath = (...args) => path.resolve(ROOT_DIR, ...args);
const BUILD_DIR = resolvePath('build');
const config = {
entry: './index.ts',
entry: './src/index.ts',
target: 'node',
watch: true,
externals: [nodeExternals()],

View File

@ -13,7 +13,7 @@ const resolvePath = (...args) => path.resolve(ROOT_DIR, ...args);
const BUILD_DIR = resolvePath('build');
const config = {
entry: './index.ts',
entry: './src/index.ts',
target: 'node',
externals: [nodeExternals()],
output: {