From e86e769139f34c21511a91efcdc9ec1e4d630684 Mon Sep 17 00:00:00 2001 From: Joel Chen Date: Mon, 22 Feb 2021 18:46:36 -0800 Subject: [PATCH] update create-app demo to @xarc/fastify-server 3.2.3 --- packages/xarc-create-app/template/_package.js | 2 +- packages/xarc-create-app/template/src/server/config.ts | 6 +----- packages/xarc-create-app/template/src/server/index.ts | 4 ++-- samples/create-app-demo/package.json | 2 +- samples/create-app-demo/src/server/config.ts | 6 +----- samples/create-app-demo/src/server/index.ts | 4 ++-- 6 files changed, 8 insertions(+), 16 deletions(-) diff --git a/packages/xarc-create-app/template/_package.js b/packages/xarc-create-app/template/_package.js index 907c13693..87f698ad8 100644 --- a/packages/xarc-create-app/template/_package.js +++ b/packages/xarc-create-app/template/_package.js @@ -34,7 +34,7 @@ module.exports = (base, merge) => { dependencies: { "@babel/runtime": "^7.12.5", "@xarc/app": "^8.2.0", // version will come from ../package.json - "@xarc/fastify-server": "^3.2.2", + "@xarc/fastify-server": "^3.2.3", "@xarc/react": "^0.1.0", // version will come from ../package.json "@xarc/react-query": "^0.1.1", // version will come from ../package.json "@xarc/react-redux": "^0.1.0" // version will come from ../package.json diff --git a/packages/xarc-create-app/template/src/server/config.ts b/packages/xarc-create-app/template/src/server/config.ts index 2087a4b6c..8084a27aa 100644 --- a/packages/xarc-create-app/template/src/server/config.ts +++ b/packages/xarc-create-app/template/src/server/config.ts @@ -1,8 +1,4 @@ -import { - ConnectionConfig, - PluginsConfig, - ElectrodeServerConfig -} from "@xarc/fastify-server/lib/types"; +import { ConnectionConfig, PluginsConfig, ElectrodeServerConfig } from "@xarc/fastify-server"; // // specify connection info for fastify server diff --git a/packages/xarc-create-app/template/src/server/index.ts b/packages/xarc-create-app/template/src/server/index.ts index ab65b0f39..ecb80089f 100644 --- a/packages/xarc-create-app/template/src/server/index.ts +++ b/packages/xarc-create-app/template/src/server/index.ts @@ -1,5 +1,5 @@ import { loadRuntimeSupport } from "@xarc/app"; -import fastifyServer from "@xarc/fastify-server"; +import { electrodeServer } from "@xarc/fastify-server"; import { config } from "./config"; /** @@ -14,7 +14,7 @@ export async function start() { } }); - const server = await fastifyServer(config); + const server = await electrodeServer(config); // it's important that the routes setup is import *after* runtime support is loaded // else isomorphic assets during development may not work properly diff --git a/samples/create-app-demo/package.json b/samples/create-app-demo/package.json index c3f135f46..85ff317be 100644 --- a/samples/create-app-demo/package.json +++ b/samples/create-app-demo/package.json @@ -32,7 +32,7 @@ "dependencies": { "@babel/runtime": "^7.12.5", "@xarc/app": "^9.0.3", - "@xarc/fastify-server": "^3.2.2", + "@xarc/fastify-server": "^3.2.3", "@xarc/react": "^0.1.7", "@xarc/react-query": "^0.1.3", "@xarc/react-redux": "^0.1.6" diff --git a/samples/create-app-demo/src/server/config.ts b/samples/create-app-demo/src/server/config.ts index 2087a4b6c..8084a27aa 100644 --- a/samples/create-app-demo/src/server/config.ts +++ b/samples/create-app-demo/src/server/config.ts @@ -1,8 +1,4 @@ -import { - ConnectionConfig, - PluginsConfig, - ElectrodeServerConfig -} from "@xarc/fastify-server/lib/types"; +import { ConnectionConfig, PluginsConfig, ElectrodeServerConfig } from "@xarc/fastify-server"; // // specify connection info for fastify server diff --git a/samples/create-app-demo/src/server/index.ts b/samples/create-app-demo/src/server/index.ts index ab65b0f39..ecb80089f 100644 --- a/samples/create-app-demo/src/server/index.ts +++ b/samples/create-app-demo/src/server/index.ts @@ -1,5 +1,5 @@ import { loadRuntimeSupport } from "@xarc/app"; -import fastifyServer from "@xarc/fastify-server"; +import { electrodeServer } from "@xarc/fastify-server"; import { config } from "./config"; /** @@ -14,7 +14,7 @@ export async function start() { } }); - const server = await fastifyServer(config); + const server = await electrodeServer(config); // it's important that the routes setup is import *after* runtime support is loaded // else isomorphic assets during development may not work properly