Skip to content

Commit

Permalink
add remix SPA factory
Browse files Browse the repository at this point in the history
  • Loading branch information
dtinth committed Feb 26, 2024
1 parent 73a552d commit 8166071
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/factory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- fresh-react-app-typescript
- fresh-react-app
- fresh-remix-app
- fresh-remix-spa
- fresh-solid-app-ts
- fresh-sveltekit-app-typescript
- fresh-t3-app
Expand Down
17 changes: 17 additions & 0 deletions src/generators/fresh-remix-spa.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { defineGenerator } from '../defineGenerator'

export default defineGenerator({
command: [
'pnpm create remix fresh-app --no-git-init --no-install --template remix-run/remix/templates/spa',
'cd fresh-app',
'corepack use pnpm@latest',
'pnpm build',
].join('\n'),
displayedCommand:
'pnpm create remix --template remix-run/remix/templates/spa',
description: 'Fresh Remix SPA',
longDescription: 'Fresh Remix single-page app',
frameworkUrl: 'https://remix.run/',
frameworkDocumentationUrl: 'https://remix.run/docs',
staticOutputDirectory: 'build/client',
})

0 comments on commit 8166071

Please sign in to comment.