feat: cli start gatsby + codegen:watch
`yarn start` now runs gatsby & codegen:watch
"build:docz": "docz build",
"build": "yarn build:gatsby",
"develop": "gatsby develop -p 4000",
- "start": "npm run develop",
+ "start": "concurrently -k -n 'gatsby,codegen' -c 'bgBlue.bold,bgMagenta.bold' 'yarn develop' 'yarn codegen:watch'",
"format": "prettier --write \"{,!(node_modules|public|coverage|.cache)/**/}*.{js,jsx,ts,tsx,json}\" && yarn lint --fix",
"lint": "eslint --fix --ext .jsx,.js,.tsx,.ts src/",
"test": "echo \"Error: no test specified\" && exit 1",
"codegen-fragments": "graphql-codegen -r dotenv/config -c codegen-fragments.yml",
"codegen-queries": "graphql-codegen -r dotenv/config -c codegen.yml",
"codegen": "yarn codegen-fragments && yarn codegen-queries",
- "codegen:watch": "concurrently -k \"yarn codegen-fragments -- --watch\" \" yarn codegen-queries -- --watch\"",
+ "codegen:watch": "concurrently -k -n 'fragments,queries' -c 'bgGreen.black.bold,bgYellow.black.bold' 'yarn codegen-fragments --watch' 'yarn codegen-queries --watch'",
"precommit-lint": "node scripts/lint",
"postinstall": "cd plugins/gatsby-source-pycon && yarn"
},
