Skip to content

Commit

Permalink
Add template for remix
Browse files Browse the repository at this point in the history
  • Loading branch information
polarker committed Nov 7, 2024
1 parent 5eade6b commit c1a6625
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/cli/cli_internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
7 changes: 4 additions & 3 deletions packages/cli/scripts/create-project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit c1a6625

Please sign in to comment.