Giter Club home page Giter Club logo

graphql-sublimetext's Introduction

GraphQL plugin for SublimeText

GraphQL language definition for TextMate and SublimeText. This builds on the language files commonly used and adds more fine grained matching.

Installation and Use

If you haven't already, install Package Control, then select GraphQL from the Package Control: Install Package dropdown list in the Command Palette.

To set this as your default GraphQL syntax, open a .graphql file, then select View -> Syntax -> Open all with current extension as... -> GraphQL.

Todo

The plan is have the same capabilities as GraphiQL. For this propose, we need:

  • Autocompletion based on a JSON or pretty-printed schema.
  • Enable querying against the schema
  • Validation

All those are easy achievable using the graphql-core implementation, as Sublime Text uses Python under the hood for the plugins.

Contributing

Edit the yaml files with the YAML-XXX extensions, convert them to plist xml files, and send in a pull request. The easiest way to do this is by using SublimeText Package Dev. You can do all of the above without leaving sublime text.

YAML is used since it's a lot more compact and easier to edit than xml.

graphql-sublimetext's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

graphql-sublimetext's Issues

Support GraphQL tags

When using GraphQL queries inside graphql JavaScript tag, syntax highlighting doesn't work.

Does not highlight basic structures (type, interface)

I have tried using the plugin, but it does not seem to highlight even basic structures, e.g.

type BlogInput {
  eventName: String
  eventUrl: String
  eventStartAt: String
  eventEndAt: String
}

interface Entity {
  id: !ID
  name: String
}

screen shot 2016-08-21 at 23 15 47

Nothing of interest is logged in the console.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.