How to use @nuxt/cli-edge - 1 common examples

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',
    description
  } = options

  await NuxtCommand.run({
    name,
    description: description || `CLI for ${name}`,
    usage: `${name}  `,
    options: {
      ...common
    },
    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)
    }
  })

@nuxt/cli-edge

MIT
Latest version published 7 months ago

Package Health Score

83 / 100
Full package analysis

Popular @nuxt/cli-edge functions

Similar packages