new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Nuxt · API · all subjects

kit/programmatic

7 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

buildNuxt parameters

buildNuxt accepts a nuxt parameter of type Nuxt, which is the Nuxt instance to build. It can be retrieved from the context via useNuxt() call.

loadNuxtConfig function signature

loadNuxtConfig is a function that loads Nuxt configuration. Its signature is: function loadNuxtConfig(options: LoadNuxtConfigOptions): Promise<NuxtOptions>. It returns a promise with the configuration object.

loadNuxtConfig parameters

loadNuxtConfig accepts options parameter of type LoadNuxtConfigOptions to pass into c12 loadConfig call.

writeTypes function signature

writeTypes is a function that generates tsconfig.json and writes it to the project buildDir. Its signature is: function writeTypes(nuxt?: Nuxt): void.

writeTypes parameters

writeTypes accepts an optional nuxt parameter of type Nuxt, which is the Nuxt instance to build. It can be retrieved from the context via useNuxt() call.

buildNuxt function signature

buildNuxt is a function that builds Nuxt programmatically. Its signature is: function buildNuxt(nuxt: Nuxt): Promise<any>. It invokes the builder (currently @nuxt/vite-builder or @nuxt/webpack-builder) to bundle the application.

loadNuxt options: dev and ready parameters

loadNuxt accepts loadOptions parameter with the following properties: - dev (boolean, optional, default false): If set to true, Nuxt will be loaded in development mode. - ready (boolean, optional, default true): If set to true, Nuxt will be ready to use after the loadNuxt call. If set to false, you will need to call nuxt.ready() to make sure Nuxt is ready to use. loadNuxt uses c12 under the hood and accepts the same options as c12.loadConfig with some additional options.

Give your agent this brain