mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-23 08:50:20 -05:00
19 lines
460 B
JavaScript
19 lines
460 B
JavaScript
#!/usr/bin/env node
|
|
|
|
const shell = require('shelljs')
|
|
const resolvePkg = require('resolve-pkg')
|
|
const { join } = require('path')
|
|
|
|
shell.set('-v') // verbose
|
|
shell.set('-e') // any error is fatal
|
|
|
|
shell.rm('-rf', 'app')
|
|
shell.mkdir('app')
|
|
|
|
shell.cp('-r', join(resolvePkg('cypress-example-kitchensink'), 'app'), '.')
|
|
shell.rm('-rf', 'cypress')
|
|
|
|
shell.cp('-r', join(resolvePkg('cypress-example-kitchensink'), 'cypress'), '.')
|
|
|
|
shell.exec('node ./bin/convert.js')
|