Skip to content

Commit

Permalink
feat: fix create-dojo
Browse files Browse the repository at this point in the history
  • Loading branch information
ponderingdemocritus committed Sep 24, 2024
1 parent e6fa40d commit b99ba00
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/create-dojo/src/commands/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ import https from "https";
import { input, select } from "@inquirer/prompts";

const templates = [
{ value: "react-app", description: "React app using Dojo" },
{ value: "react-phaser-example", description: "React/Phaser app using Dojo" },
{ value: "react-pwa-app", description: "React Progressive Web Apps using Dojo" },
{ value: "react-threejs", description: "React Threejs using Dojo" },
{ value: "example-vite-react-sdk", description: "React app using Dojo SDK" },
{ value: "example-vite-react-phaser-recs", description: "React/Phaser app using Dojo RECS" },
{ value: "example-vite-react-pwa-recs", description: "React Progressive Web App using Dojo RECS" },
{ value: "example-vite-react-threejs-recs", description: "React Three.js app using Dojo RECS" },
{ value: "example-vite-react-sdk", description: "Basic react app using the sdk" },
{ value: "example-vue-app-recs", description: "Basic vite app using RECS" },
];

async function init(projectName: string, cwd: string, template: string) {
Expand All @@ -26,7 +28,7 @@ async function init(projectName: string, cwd: string, template: string) {
console.log(`Downloading ${template} into client directory...`);
const cloneResult = spawn.sync("npx", [
"degit",
`dojoengine/dojo.js/clients/react/${template}`,
`dojoengine/dojo.js/examples/${template}`,
clientPath,
], { stdio: "inherit" });

Expand Down

0 comments on commit b99ba00

Please sign in to comment.