mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-23 23:59:02 -06:00
BREAKING CHANGE: `cli-plugin-unit-jest` and `cli-plugin-unit-mocha` now register "test:unit" command and script instead of "test"; `cli-plugin-e2e-cypress` now register "test:e2e" with optional `--headless` flag instead of "e2e" and "e2e:open"; `cli-plugin-e2e-nightwatch` now register "test:e2e" instead of "e2e". close #876, close #878
13 lines
235 B
JavaScript
13 lines
235 B
JavaScript
module.exports = api => {
|
|
api.render('./template', {
|
|
hasTS: api.hasPlugin('typescript'),
|
|
hasESLint: api.hasPlugin('eslint')
|
|
})
|
|
|
|
api.extendPackage({
|
|
scripts: {
|
|
'test:e2e': 'vue-cli-service test:e2e'
|
|
}
|
|
})
|
|
}
|