65fa8300ad
* Removed next references in the ReadMe * FAQ improvements to update Next.js references * Added a new Frameworks page with logos to link to the quick start guides * Renamed the mdx file so the link works * Added basic platform guides * Introduction doesn’t reference next.js only * Added a note about serverless and restructured the side menu * Added more frameworks pages to the manual install section * Fixed SVG error * Coming soon guides now using snippets so they can be in 2 places while we work on them * Removed redirects * Added a new named icon * increased fireworks particle count slightly * Creating a route for the onboarding and link to access it anytime from the side menu * Moved the onboarding into new components * Updated the routes for the onboarding page * Onboarding is now Setup and the frameworks overview page now links to different framework page in the onboarding side nav * URLs and pages renamed to ‘setup’ * URLs and pages renamed to ‘setup’ * Fixed some old named component imports * WIP on a new less hacked-in background image * Added svg logos for all the frameworks * New paths for the new framework pages * Side menu collapses once you selected a framework * Temporary Nuxt page * New routes for the new frameworks * New ‘framework coming soon’ component - now used in the coming soon framework pages * Moved/removed files * Moved all svg framework logos into a new folder and file * balanced the logo sizes * Framework coming soon pages take a name and url * New express svg logo * New component for a Framework item in the grid * Added information and design for the coming soon frameworks * Change the grid to 1 row if jobs === 0 * Updated the framework coming soon snippet and added it to the relevant pages * Express now 2nd in all lists * Added link to long running server support discussion * New logo to include next.js + supabase quick start * roadmap now links to homepage with page anchor to roadmap section * changelog now links to Github releases page * Removed reference to Next.js * Docs pages with coming soon info all share the same framework snippets * Fixed issue of missing props * Moved the fireworks effect into a separate file to make it easier for adding more framework onboarding pages * Info callouts have a more muted style * Added a callout to the top of the next onboarding to reference Serverless-only support * Moved the callout explaining scheduled triggers not working in dev to the bottom of the test panel This is to resolve eric’s UX ticket: https://github.com/triggerdotdev/trigger.dev/issues/416 * Added groundwork for Nest.js framework * Using framer motion for the menu transition instead of css - now has a slight spring and is snappier * redirect the manual setup page to the new nextjs setup page * Fixed broken docs link * Added a readme.md to next.js package * Capital I for integration * Renamed component: NextDevCommand to RunDevCommand * Made required props non-optional * CLI now points at manual install guides if no Next project detected * Explicitly made supported default to false (it was working but a bit hard to read) * Added links to all github issues for the frameworks coming soon component --------- Co-authored-by: Matt Aitken <matt@mattaitken.com>
119 lines
4.1 KiB
TypeScript
119 lines
4.1 KiB
TypeScript
import { InlineCode } from "./code/InlineCode";
|
||
import {
|
||
ClientTabs,
|
||
ClientTabsContent,
|
||
ClientTabsList,
|
||
ClientTabsTrigger,
|
||
} from "./primitives/ClientTabs";
|
||
import { ClipboardField } from "./primitives/ClipboardField";
|
||
import { Paragraph } from "./primitives/Paragraph";
|
||
|
||
export function InitCommand({ appOrigin, apiKey }: { appOrigin: string; apiKey: string }) {
|
||
return (
|
||
<ClientTabs defaultValue="npm">
|
||
<ClientTabsList>
|
||
<ClientTabsTrigger value={"npm"}>npm</ClientTabsTrigger>
|
||
<ClientTabsTrigger value={"pnpm"}>pnpm</ClientTabsTrigger>
|
||
<ClientTabsTrigger value={"yarn"}>yarn</ClientTabsTrigger>
|
||
</ClientTabsList>
|
||
<ClientTabsContent value={"npm"}>
|
||
<ClipboardField
|
||
variant="primary/medium"
|
||
className="mb-4"
|
||
secure={`npx @trigger.dev/cli@latest init -k ••••••••• -t ${appOrigin}`}
|
||
value={`npx @trigger.dev/cli@latest init -k ${apiKey} -t ${appOrigin}`}
|
||
/>
|
||
</ClientTabsContent>
|
||
<ClientTabsContent value={"pnpm"}>
|
||
<ClipboardField
|
||
variant="primary/medium"
|
||
className="mb-4"
|
||
secure={`pnpm dlx @trigger.dev/cli@latest init -k ••••••••• -t ${appOrigin}`}
|
||
value={`pnpm dlx @trigger.dev/cli@latest init -k ${apiKey} -t ${appOrigin}`}
|
||
/>
|
||
</ClientTabsContent>
|
||
<ClientTabsContent value={"yarn"}>
|
||
<ClipboardField
|
||
variant="primary/medium"
|
||
className="mb-4"
|
||
secure={`yarn dlx @trigger.dev/cli@latest init -k ••••••••• -t ${appOrigin}`}
|
||
value={`yarn dlx @trigger.dev/cli@latest init -k ${apiKey} -t ${appOrigin}`}
|
||
/>
|
||
</ClientTabsContent>
|
||
</ClientTabs>
|
||
);
|
||
}
|
||
|
||
export function RunDevCommand() {
|
||
return (
|
||
<ClientTabs defaultValue="npm">
|
||
<ClientTabsList>
|
||
<ClientTabsTrigger value={"npm"}>npm</ClientTabsTrigger>
|
||
<ClientTabsTrigger value={"pnpm"}>pnpm</ClientTabsTrigger>
|
||
<ClientTabsTrigger value={"yarn"}>yarn</ClientTabsTrigger>
|
||
</ClientTabsList>
|
||
<ClientTabsContent value={"npm"}>
|
||
<ClipboardField variant="primary/medium" className="mb-4" value={`npm run dev`} />
|
||
</ClientTabsContent>
|
||
<ClientTabsContent value={"pnpm"}>
|
||
<ClipboardField variant="primary/medium" className="mb-4" value={`pnpm run dev`} />
|
||
</ClientTabsContent>
|
||
<ClientTabsContent value={"yarn"}>
|
||
<ClipboardField variant="primary/medium" className="mb-4" value={`yarn run dev`} />
|
||
</ClientTabsContent>
|
||
</ClientTabs>
|
||
);
|
||
}
|
||
|
||
export function TriggerDevCommand() {
|
||
return (
|
||
<ClientTabs defaultValue="npm">
|
||
<ClientTabsList>
|
||
<ClientTabsTrigger value={"npm"}>npm</ClientTabsTrigger>
|
||
<ClientTabsTrigger value={"pnpm"}>pnpm</ClientTabsTrigger>
|
||
<ClientTabsTrigger value={"yarn"}>yarn</ClientTabsTrigger>
|
||
</ClientTabsList>
|
||
<ClientTabsContent value={"npm"}>
|
||
<ClipboardField
|
||
variant="primary/medium"
|
||
className="mb-4"
|
||
value={`npx @trigger.dev/cli@latest dev`}
|
||
/>
|
||
</ClientTabsContent>
|
||
<ClientTabsContent value={"pnpm"}>
|
||
<ClipboardField
|
||
variant="primary/medium"
|
||
className="mb-4"
|
||
value={`pnpm dlx @trigger.dev/cli@latest dev`}
|
||
/>
|
||
</ClientTabsContent>
|
||
<ClientTabsContent value={"yarn"}>
|
||
<ClipboardField
|
||
variant="primary/medium"
|
||
className="mb-4"
|
||
value={`yarn dlx @trigger.dev/cli@latest dev`}
|
||
/>
|
||
</ClientTabsContent>
|
||
</ClientTabs>
|
||
);
|
||
}
|
||
|
||
export function TriggerDevStep() {
|
||
return (
|
||
<>
|
||
<Paragraph spacing>
|
||
In a <span className="text-amber-400">separate terminal window or tab</span> run:
|
||
</Paragraph>
|
||
<TriggerDevCommand />
|
||
<Paragraph spacing variant="small">
|
||
If you’re not running on port 3000 you can specify the port by adding{" "}
|
||
<InlineCode variant="extra-small">--port 3001</InlineCode> to the end.
|
||
</Paragraph>
|
||
<Paragraph spacing variant="small">
|
||
You should leave the <InlineCode variant="extra-small">dev</InlineCode> command running when
|
||
you're developing.
|
||
</Paragraph>
|
||
</>
|
||
);
|
||
}
|