docs: Update documentation for Deno production builds support#8386
docs: Update documentation for Deno production builds support#8386promptless-for-oss wants to merge 1 commit intoQwikDev:mainfrom
Conversation
Signed-off-by: promptless-for-oss <promptless-for-oss@users.noreply.github.com>
| ### Javascript Runtimes | ||
|
|
||
| For a Javascript project, it's quite common for the build's runtime to be built on top of [Node.js](https://nodejs.org/en/docs/). However, the core of Qwik City static site generation isn't tied to using only Node.js, which is why the `qwikCityGenerate()` function is imported from `@builder.io/qwik-city/static/node`. By scoping the generate function to a specific runtime, such as Node.js, this gives Qwik City the flexibility to also generate SSG from other runtimes in the future, such as [Deno](https://deno.land/) or [Bun](https://bun.sh/). | ||
| For a Javascript project, it's quite common for the build's runtime to be built on top of [Node.js](https://nodejs.org/en/docs/). However, the core of Qwik City static site generation isn't tied to using only Node.js, which is why the `qwikCityGenerate()` function is imported from `@builder.io/qwik-city/static/node`. By scoping the generate function to a specific runtime, such as Node.js, Qwik City can also generate SSG from other runtimes, including [Deno](https://deno.land/) and [Bun](https://bun.sh/). |
There was a problem hiding this comment.
Citation: PR #8385 fixes Deno support for production builds by routing Deno to the Node SSG module at runtime (same as Bun). Updated language from "future" runtimes to "now supported" for both Deno and Bun.
View source
| Or with native Deno: | ||
|
|
||
| ```shell | ||
| deno task build |
There was a problem hiding this comment.
Citation: PR #8385 enables using Deno as the package manager with commands like deno task build.client + deno task build.server. Added native Deno task commands as documented alternatives to Node-based package manager commands.
View source
There was a problem hiding this comment.
@promptless-for-oss deno task build is actually not fully supported and the sub build tasks (e.g. deno task build.client and deno task build.server) need to be used directly. See #8364 for more info.
There was a problem hiding this comment.
@ianlet maybe best to make this change in your v2 pr ;)
There was a problem hiding this comment.
haha yes I will! at that moment I thought that you guys added this bot and thus tried to use it, but clearly it's not working very well ;)
|
Updates documentation to reflect that Deno is now fully supported for production builds in Qwik City:
deno task build,deno task build.client,deno task build.server,deno task serve) as alternatives to Node-based package manager commandsTrigger Events
qwikdev/qwik#8385
Promptless Research (1 GitHub PR)
Agent Response
Tip: You can ask for follow-up changes by tagging Promptless in comments. If you want to learn more about Promptless, chat with us to see how Promptless can keep your docs in sync automatically 📅