nuxt-hub / cli

Build full-stack Nuxt application with NuxtHub command line interface (CLI).
Apache License 2.0
38 stars 3 forks source link

`nuxthub build` #5

Open Atinux opened 2 months ago

Atinux commented 2 months ago

NuxtHub API fetching to know a build is happening (replacing the modules:done and build:done hooks from the module for example).

This will give the possibility to remove the need of having the @nuxthub/core module to deploy Nuxt projects without the need for storage.

The nuxthub build command can detect the framework used and run the right build command.

It can also be overwritten with:

npx nuxthub build -c "your build command"

The module will then read from the output directory (default to dist/) the hub.config.json file to know the primitives used to check if the build has to be cancelled (https://github.com/nuxt-hub/core/blob/823a6e8839efdb022ff43889c89ab128c833ea3f/src/utils/build.ts#L41-L51), this won't be necessary once we support wrangler.toml