mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-04 05:29:45 -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
18 lines
547 B
TypeScript
18 lines
547 B
TypeScript
import { resolveAutobarrelConfig, autobarrelWatch } from 'autobarrel'
|
|
import path from 'path'
|
|
import { monorepoPaths } from '../monorepoPaths'
|
|
|
|
/**
|
|
* Creates "barrel" files according to config in autobarrel.json:
|
|
* https://github.com/tgriesser/autobarrel
|
|
* Particularly useful in @packages/graphql because we want to import all
|
|
* types into the root schema
|
|
*/
|
|
export async function autobarrelWatcher () {
|
|
await autobarrelWatch(
|
|
await resolveAutobarrelConfig({
|
|
path: path.join(monorepoPaths.root, 'autobarrel.json'),
|
|
}),
|
|
)
|
|
}
|