mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-29 18:39:14 -06:00
-cleanup root monorepo files -prevent downloading cypress binary when in development -remove app-module-path
29 lines
545 B
JavaScript
29 lines
545 B
JavaScript
const downloadUtils = require('../download/utils')
|
|
const spawn = require('./spawn')
|
|
|
|
module.exports = {
|
|
start (options = {}) {
|
|
const args = []
|
|
|
|
if (options.env) {
|
|
args.push('--env', options.env)
|
|
}
|
|
|
|
if (options.config) {
|
|
args.push('--config', options.config)
|
|
}
|
|
|
|
if (options.port) {
|
|
args.push('--port', options.port)
|
|
}
|
|
|
|
return downloadUtils.verify()
|
|
.then(() => {
|
|
return spawn.start(args, {
|
|
detached: true,
|
|
stdio: ['ignore', 'ignore', 'ignore'],
|
|
})
|
|
})
|
|
},
|
|
}
|