How to use the @vue/cli-ui/apollo-server/connectors/tasks.list function in @vue/cli-ui

To help you get started, we’ve selected a few @vue/cli-ui 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 vuejs / vue-cli / packages / @vue / cli-ui / ui-defaults / widgets.js View on Github external
onConfigOpen: async ({ context }) => {
      const tasks = require('@vue/cli-ui/apollo-server/connectors/tasks')
      return {
        prompts: [
          {
            name: 'task',
            type: 'list',
            message: 'org.vue.widgets.run-task.prompts.task',
            choices: (await tasks.list(undefined, context)).map(task => ({
              name: task.name,
              value: task.id
            }))
          }
        ]
      }
    }
  })

@vue/cli-ui

### Local development

MIT
Latest version published 2 years ago

Package Health Score

68 / 100
Full package analysis

Similar packages