mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-01 20:19:58 -06:00
- Moves graphql-codegen config to the root, which will serve all packages needing it - Adds gulpfile for coordinating scripts related to dev environment in launchpad app - yarn dev from the root runs yarn gulp dev, which: Runs autobarrel for rolling up the @packages/graphql files Cleans the dist & cache for .vite Starts the a codegen watcher for Nexus Starts the graphql-codegen --watch & highlights output Starts vite servers for launchpad & app Starts electron watch.js
14 lines
267 B
TypeScript
14 lines
267 B
TypeScript
import chalk from 'chalk'
|
|
import dedent from 'dedent'
|
|
|
|
export function exit (msg: string | Error): void {
|
|
if (msg instanceof Error) {
|
|
console.log(msg.stack)
|
|
|
|
return exit(msg.message)
|
|
}
|
|
|
|
console.error(`\n${chalk.red(dedent(msg))}\n`)
|
|
process.exit(1)
|
|
}
|