feat: support graphql schema type compilation for watcher

This commit is contained in:
Wyatt Johnson
2018-07-16 13:24:02 -06:00
parent b07073b882
commit 34f42c2991
+3 -3
View File
@@ -8,7 +8,7 @@ import {
const config: Config = {
rootDir: path.resolve(__dirname, "../src"),
watchers: {
compileGraphQLTypes: {
compileSchema: {
paths: ["core/server/**/*.graphql"],
executor: new CommandExecutor("npm run compile:schema", {
runOnInit: true,
@@ -53,7 +53,7 @@ const config: Config = {
},
defaultSet: "client",
sets: {
server: ["runServer"],
server: ["compileSchema", "runServer"],
client: [
"runServer",
"runWebpackDevServer",
@@ -61,7 +61,7 @@ const config: Config = {
"compileRelayStream",
],
docz: ["runDocz", "compileCSSTypes"],
compile: ["compileCSSTypes", "compileRelayStream"],
compile: ["compileSchema", "compileCSSTypes", "compileRelayStream"],
},
};