aerogear/create-graphql

Refactor to support plugin like babel

Open

#59 建立於 2017年2月6日

在 GitHub 查看
 (9 留言) (1 反應) (0 負責人)JavaScript (440 star) (51 fork)batch import
enhancementhelp wantednew feature

描述

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.

貢獻者指南