diff --git a/packages/cli/cli_internal.ts b/packages/cli/cli_internal.ts index 6859837fd..24605aafa 100644 --- a/packages/cli/cli_internal.ts +++ b/packages/cli/cli_internal.ts @@ -58,7 +58,7 @@ function buildErrorOutput(error: Error, isDebug: boolean): string { return isDebug ? debugMsg : error.message } -const templateTypes = ['base', 'react', 'nextjs', 'nextjs-app', 'nextjs-pages'] +const templateTypes = ['base', 'react', 'nextjs', 'nextjs-app', 'nextjs-pages', 'remix'] program .command('init') diff --git a/packages/cli/scripts/create-project.ts b/packages/cli/scripts/create-project.ts index b9146d6b4..61525ca27 100755 --- a/packages/cli/scripts/create-project.ts +++ b/packages/cli/scripts/create-project.ts @@ -57,15 +57,16 @@ export function createProject(templateType: string, packageRoot: string, project case 'react': gitClone('https://github.com/alephium/react-dapp-template.git', projectRoot) break + case 'remix': + gitClone('https://github.com/alephium/remix-dapp-template.git', projectRoot) + break case 'nextjs': case 'nextjs-app': case 'nextjs-pages': prepareNextJs(templateType, packageRoot, projectRoot) break default: - console.error( - `Invalid template type ${templateType}, expect one of base, react, nextjs, nextjs-app, nextjs-pages` - ) + console.error(`Invalid template type ${templateType}`) process.exit(1) }