mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-03 21:19:44 -06:00
* Add vue2 package from npm/vue/v2 branch * Add vue2 as automatic export * remove npm/vue2/examples * remove cypress directory from vue2 * fix: ordering of build scripts * remove unneeded files from output, name module cypress-vue2 / CypressVue2 * fix types package resolution Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com> Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
23 lines
557 B
JavaScript
23 lines
557 B
JavaScript
const shell = require('shelljs')
|
|
const { resolve } = require('path')
|
|
|
|
shell.set('-v') // verbose
|
|
shell.set('-e') // any error is fatal
|
|
|
|
// For each npm package that is re-published via cypress/*
|
|
// make sure that it is also copied into the build directory
|
|
const npmModulesToCopy = [
|
|
'mount-utils',
|
|
'react',
|
|
'vue',
|
|
'vue2',
|
|
]
|
|
|
|
npmModulesToCopy.forEach((folder) => {
|
|
// cli/mount-utils => cli/build/mount-utils
|
|
const from = resolve(`${__dirname}/../${folder}`)
|
|
const to = resolve(`${__dirname}/../build/${folder}`)
|
|
|
|
shell.cp('-R', from, to)
|
|
})
|