aerogear/create-graphql

Refactor to support plugin like babel

オープン

#59 opened on 2017/02/06

 (9 件のコメント) (1 件のリアクション) (0 人の担当者)JavaScript (51 件のフォーク)batch import
enhancementhelp wantednew feature

Repository metrics

Stars
 (440 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

Babel plugin object example:

type PluginObject = {
  pre?: Function;
  post?: Function;
  manipulateOptions?: Function;

  visitor: ?{
    [key: string]: Function | {
      enter?: Function | Array<Function>;
      exit?: Function | Array<Function>;
    }
  };
};

each babel plugin returns an object like this.

we should think in CreateGraphQL PluginObject as well.


  • Separate mongoose schema to a plugin;
  • Separate relay templates to a plugin (figure out how to best do this);
  • Create boilerplate projects for Create-GraphQL plugins;
  • Handle plugins property on .graphqlrc.

コントリビューターガイド