How to use the @nuxt/ function in @nuxt/cli-edge

To help you get started, we’ve selected a few @nuxt/cli-edge examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nuxt / press / distributions / blueprint / src / cli / index.js View on Github external
export default async function runBlueprint (options = {}) {
  const {
    name = 'blueprint',
  } = options

    description: description || `CLI for ${name}`,
    usage: `${name}  `,
    options: {
    async run (cmd) {
      // remove argv's so nuxt doesnt pick them up as rootDir
      const argv = cmd.argv._.splice(0, cmd.argv._.length)

      const config = await cmd.getNuxtConfig()
      const nuxt = await cmd.getNuxt(config)

      return run(argv, nuxt, options)


Latest version published 7 months ago

Package Health Score

77 / 100
Full package analysis

Popular @nuxt/cli-edge functions

Similar packages