mirror of
https://github.com/wassname/talk.git
synced 2026-08-14 12:50:17 +08:00
feat: support graphql schema type compilation for watcher
This commit is contained in:
+3
-3
@@ -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"],
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user