mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-05-03 18:40:45 -05:00
21 lines
493 B
JavaScript
Executable File
21 lines
493 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
const semver = require('semver')
|
|
const { error } = require('@vue/cli-shared-utils')
|
|
|
|
if (!semver.satisfies(process.version, '>=6.0.0')) {
|
|
error(
|
|
`You are using Node ${process.version}, ` +
|
|
`but vue-cli-service requires a minimum version of Node 6.0.0. `
|
|
)
|
|
process.exit(1)
|
|
}
|
|
|
|
const Service = require('../lib/Service')
|
|
const service = new Service()
|
|
|
|
const args = require('minimist')(process.argv.slice(2))
|
|
const command = args._[0]
|
|
|
|
service.run(command, args)
|