aerogear/create-graphql

Refactor to support plugin like babel

Open

#59 aberto em 6 de fev. de 2017

Ver no GitHub
 (9 comments) (1 reaction) (0 assignees)JavaScript (51 forks)batch import
enhancementhelp wantednew feature

Métricas do repositório

Stars
 (440 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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.

Guia do colaborador