8000 Document skipPlugins and expose CLI option by mattbretl · Pull Request #853 · graphile/crystal · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Document skipPlugins and expose CLI option #853

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ export interface PostGraphileOptions {
// The full array of [Graphile Build](/graphile-build/plugins/) plugins to
// use for schema generation (you almost definitely don't want this!).
replaceAllPlugins?: Array<Plugin>;
// An array of [Graphile Build](/graphile-build/plugins/) plugins to skip.
skipPlugins?: Array<Plugin>;
// A file path string. Reads cached values from local cache file to improve
// startup time (you may want to do this in production).
readCache?: string;
Expand Down
5 changes: 4 additions & 1 deletion src/postgraphile/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ program
.option(
'--prepend-plugins <string>',
'a comma-separated list of plugins to prepend to the list of GraphQL schema plugins',
);
)
.option('--skip-plugins <string>', 'a comma-separated list of plugins to skip');

pluginHook('cli:flags:add:plugins', addFlag);

Expand Down Expand Up @@ -377,6 +378,7 @@ const {
appendPlugins: appendPluginNames,
prependPlugins: prependPluginNames,
// replaceAllPlugins is NOT exposed via the CLI
skipPlugins: skipPluginNames,
readCache,
writeCache,
legacyRelations: rawLegacyRelations = 'deprecated',
Expand Down Expand Up @@ -520,6 +522,7 @@ const postgraphileOptions = pluginHook(
bodySizeLimit,
appendPlugins: loadPlugins(appendPluginNames),
prependPlugins: loadPlugins(prependPluginNames),
skipPlugins: loadPlugins(skipPluginNames),
readCache,
writeCache,
legacyRelations,
Expand Down
0