mirror of
https://github.com/wassname/talk.git
synced 2026-07-24 13:20:47 +08:00
* feat: initial support for synced tenants * fix: cleanup * fix: logger now respects logging level * fix: cache now ignores updates issued from itself * feat: print subscriber count * feat: initial nunjucks support * fix: support tenant cache for oidc strategy * fix: replace some constructor initializers with property initializers * fix: audit * [next] Comments and Moderation (#1759) * feat: initial moderation + validation for new comments * fix: added Promiseable type * feat: initial actions impl * feat: more moderation phases * fix: handle settings inheritence * fix: moved settings into new file * fix: defaults and documentation * fix: replace merge with object spread * feat: added integration with akismet * fix: fixed compile * fix: import ordering * fix: merge issue causing build to fail * feat: added gulp, static templates * fix: added compile step back * Fix extract css + remove cross-env
92 lines
2.2 KiB
TypeScript
92 lines
2.2 KiB
TypeScript
import path from "path";
|
|
import {
|
|
CommandExecutor,
|
|
Config,
|
|
LongRunningExecutor,
|
|
} from "../scripts/watcher";
|
|
|
|
const config: Config = {
|
|
rootDir: path.resolve(__dirname, "../src"),
|
|
watchers: {
|
|
compileSchema: {
|
|
paths: ["core/server/**/*.graphql"],
|
|
executor: new CommandExecutor("npx gulp server:schema", {
|
|
runOnInit: true,
|
|
}),
|
|
},
|
|
compileRelayStream: {
|
|
paths: [
|
|
"core/client/stream/**/*.ts",
|
|
"core/client/stream/**/*.tsx",
|
|
"core/client/stream/**/*.graphql",
|
|
"core/server/**/*.graphql",
|
|
],
|
|
ignore: [
|
|
"core/**/*.d.ts",
|
|
"core/**/*.graphql.ts",
|
|
"**/test/**/*",
|
|
"core/**/*.spec.*",
|
|
],
|
|
executor: new CommandExecutor("npm run compile:relay-stream", {
|
|
runOnInit: true,
|
|
}),
|
|
},
|
|
compileRelayAuth: {
|
|
paths: [
|
|
"core/client/auth/**/*.ts",
|
|
"core/client/auth/**/*.tsx",
|
|
"core/client/auth/**/*.graphql",
|
|
"core/server/**/*.graphql",
|
|
],
|
|
ignore: [
|
|
"core/**/*.d.ts",
|
|
"core/**/*.graphql.ts",
|
|
"**/test/**/*",
|
|
"core/**/*.spec.*",
|
|
],
|
|
executor: new CommandExecutor("npm run compile:relay-auth", {
|
|
runOnInit: true,
|
|
}),
|
|
},
|
|
compileCSSTypes: {
|
|
paths: ["**/*.css"],
|
|
executor: new CommandExecutor("npm run compile:css-types", {
|
|
runOnInit: true,
|
|
}),
|
|
},
|
|
runServer: {
|
|
paths: ["core/**/*.ts", "core/locales/**/*.ftl"],
|
|
ignore: ["core/client/**/*"],
|
|
executor: new LongRunningExecutor("npm run start:development"),
|
|
},
|
|
runWebpackDevServer: {
|
|
paths: [],
|
|
executor: new LongRunningExecutor("npm run start:webpackDevServer"),
|
|
},
|
|
runDocz: {
|
|
paths: [],
|
|
executor: new LongRunningExecutor("npm run docz -- dev"),
|
|
},
|
|
},
|
|
defaultSet: "client",
|
|
sets: {
|
|
server: ["compileSchema", "runServer"],
|
|
client: [
|
|
"runServer",
|
|
"runWebpackDevServer",
|
|
"compileCSSTypes",
|
|
"compileRelayStream",
|
|
"compileRelayAuth",
|
|
],
|
|
docz: ["runDocz", "compileCSSTypes"],
|
|
compile: [
|
|
"compileSchema",
|
|
"compileCSSTypes",
|
|
"compileRelayStream",
|
|
"compileRelayAuth",
|
|
],
|
|
},
|
|
};
|
|
|
|
export default config;
|