Skip to content

Commit

Permalink
[fix] minor update to ts app template
Browse files Browse the repository at this point in the history
  • Loading branch information
jchip committed Oct 29, 2020
1 parent 69d7751 commit 1a26696
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions packages/xarc-app-dev/src/lib/dev-tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
};
`
);
};

Expand Down
1 change: 1 addition & 0 deletions packages/xarc-create-app/template/_gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ coverage
.nyc_output
config/assets.json
.isomorphic*
lib
1 change: 1 addition & 0 deletions packages/xarc-create-app/template/_package.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/xarc-create-app/template/_tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"jsx": "react",
"outDir": "lib",
"lib": ["es2018"],
"allowJs": true,
Expand Down
4 changes: 1 addition & 3 deletions packages/xarc-create-app/template/src/server/index.ts
Original file line number Diff line number Diff line change
@@ -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();
Expand Down

0 comments on commit 1a26696

Please sign in to comment.