Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// Spawn Babel server
process.env.NODE_ENV = 'development'
const opts = parseArgv([
process.argv[0],
process.argv[1],
'-w',
'--presets=react-app',
'src',
'--out-dir',
'es',
'--copy-files',
'--delete-dir-on-start',
'--ignore',
'__tests__,spec.js,test.js,__snapshots__'
])
dirCommand(opts).catch(err => {
console.error(err)
process.exit(1)
})
if (type === 'withStorybook') {
startStyleguide()
}
printDevServerInfo()
}
module.exports = {startDev}