diff --git a/packages/xarc-app-dev/src/lib/dev-tasks.ts b/packages/xarc-app-dev/src/lib/dev-tasks.ts index 8cba945d0..755a25d02 100644 --- a/packages/xarc-app-dev/src/lib/dev-tasks.ts +++ b/packages/xarc-app-dev/src/lib/dev-tasks.ts @@ -401,10 +401,10 @@ export function loadXarcDevTasks(xrun, xarcOptions: XarcOptions = {}) { Fs.writeFileSync( newName, `"use strict"; - module.exports = { - extends: "@xarc/app-dev/config/babel/${rcFile}" - }; - ` +module.exports = { + extends: "@xarc/app-dev/config/babel/${rcFile}" +}; +` ); }; diff --git a/packages/xarc-create-app/template/_gitignore b/packages/xarc-create-app/template/_gitignore index 395a153f6..9fed63d55 100644 --- a/packages/xarc-create-app/template/_gitignore +++ b/packages/xarc-create-app/template/_gitignore @@ -41,3 +41,4 @@ coverage .nyc_output config/assets.json .isomorphic* +lib diff --git a/packages/xarc-create-app/template/_package.js b/packages/xarc-create-app/template/_package.js index d6d5ff34a..60a919b67 100644 --- a/packages/xarc-create-app/template/_package.js +++ b/packages/xarc-create-app/template/_package.js @@ -41,6 +41,7 @@ module.exports = (base, merge) => { "subapp-server": "^1.3.1" }, devDependencies: { + "@types/node": "^14.14.6", "@xarc/app-dev": "^8.1.8", "ts-node": "^9.0.0", typescript: "^4.0.3", diff --git a/packages/xarc-create-app/template/_tsconfig.json b/packages/xarc-create-app/template/_tsconfig.json index 44e1b890c..b9c5c48b5 100644 --- a/packages/xarc-create-app/template/_tsconfig.json +++ b/packages/xarc-create-app/template/_tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "jsx": "react", "outDir": "lib", "lib": ["es2018"], "allowJs": true, diff --git a/packages/xarc-create-app/template/src/server/index.ts b/packages/xarc-create-app/template/src/server/index.ts index a597e6de8..ec5bb800d 100644 --- a/packages/xarc-create-app/template/src/server/index.ts +++ b/packages/xarc-create-app/template/src/server/index.ts @@ -1,8 +1,6 @@ -"use strict"; - +import { config } from "./config"; const support = require("@xarc/app/support"); const electrodeServer = require("@xarc/fastify-server"); -const { config } = require("./config"); async function start() { await support.load();