facebook / facebook/relay

Expand PluginInterface support

Open
#2,647 8 comments 3 reactions 0 assignees View on GitHub
enhancement help wanted wontfix
Dominant language
Rust
Stars
19k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

I just wrote a plugin for [scalajs](http://www.scala-js.org/) (very rough but works), using the plugin interface and two things would be super nice to support.

- Extra schema, like in the relayCompilerBin you add directives, it would be nice for a plugin to be able to add custom directives.
- The getFileFilter function looks for the string graphql, we should be able to override that.

Otherwise, it went well.

Contributor guide

Open the contributing guide

Research direction

Start by reading the PluginInterface and the relayCompilerBin handling mentioned in the issue, then trace how getFileFilter identifies GraphQL files. The work is complete when plugins can add custom directives and override the file-filter string, with coverage for both extension points.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, scala
Domain
build-system, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.