Giter VIP home page Giter VIP logo

Comments (24)

abdulhannanali avatar abdulhannanali commented on April 28, 2024 11

Can some one make a graphql package for lovely sublime text? 😄

from graphql-spec.

syrusakbary avatar syrusakbary commented on April 28, 2024 8

@abdulhannanali I just released a GraphQL package for Sublime Text.
https://packagecontrol.io/packages/GraphQL

Right now is just a syntax highlighter, but we plan to add autocompletion and almost all the capabilities we have with GraphiQL.
Source code: https://github.com/graphql-python/GraphQL-SublimeText

from graphql-spec.

jparise avatar jparise commented on April 28, 2024 4

I started on a Vim plugin: https://github.com/jparise/vim-graphql

It still needs work but handles file detection, syntax highlighting, and folding pretty well so far.

from graphql-spec.

rmosolgo avatar rmosolgo commented on April 28, 2024 3

🎬 take 1 for Atom https://atom.io/packages/language-graphql

syntax only, looking forward to trying autocomplete :)

from graphql-spec.

benjamindulau avatar benjamindulau commented on April 28, 2024 3

@jimkyndemeyer Awesome work! Your plugin changed my life in Javascript. Wondering though, do you think it would be hard work to make it also autocomplete queries in PHP Heredoc ?

Example:

private function getQuery()
{

    $query = <<<'GQL'
query ProgrammesForHome($region: String, $travelStart: DateTime, $page: Int, $limit: Int) {
  programmes(region: $region, page: $page, limit: $limit) {
    total
    page
    limit
    edges {
      node {
        id
        name
        catchPhrase
        price {
          amount
          currency {
            code
          }
        }
        offers {
          id
        }
      }
    }
  }
}
GQL;

    return $query;
}

from graphql-spec.

nicolaslopezj avatar nicolaslopezj commented on April 28, 2024 2

Autocomplete and lint from a GraphQL endpoint in atom.

https://github.com/nicolaslopezj/atom-graphql-autocomplete

example

from graphql-spec.

asiandrummer avatar asiandrummer commented on April 28, 2024 2

@nicolaslopezj - that looks cool :D I've been working to provide a language service interface for GraphQL that could be used across common IDEs. It'll also support firing up the GraphQL server to cache schema/fragment definitions/etc to be used for validation/autocomplete suggestions. The interface has methods to bring other common IDE features, such as hyperlink/outline views/and etc.

It's been developed and tested with Nuclide, but I thought this could be useful for Atom users as well - it'd be awesome if we can collaborate on making that happen!

from graphql-spec.

armetiz avatar armetiz commented on April 28, 2024 2

Could be awesome to see a plugin for PHPStorm !

from graphql-spec.

wangyanxing avatar wangyanxing commented on April 28, 2024 1

Since I guess lots of people are using GraphGL for Android projects, is it a good idea to make an IntelliJ plugin?

from graphql-spec.

jimkyndemeyer avatar jimkyndemeyer commented on April 28, 2024 1

I've created a GraphQL plugin for IntelliJ IDEA and WebStorm that relies on the JavaScript reference implementation. It provides roughly the same features as Graph_i_QL, including schema-aware completion, error highlighting, and in-editor schema documentation:

https://github.com/jimkyndemeyer/js-graphql-intellij-plugin

The integration between the Java-based plugin and the reference implementation JavaScript parser is available as a Node.js based language service:

https://github.com/jimkyndemeyer/js-graphql-language-service

It might prove useful for enabling GraphQL language features in other IDEs, much like the TypeScript language service did for Sublime and Atom.

from graphql-spec.

borisdan avatar borisdan commented on April 28, 2024 1

A port of @jimkyndemeyer's GraphQL plugin for IntelliJ IDEA to work with Python files in the JetBrains IDE would be amazing as well.
Currently, the Python client toolset is very lacking, and that is a pain that will interfere with GraphQL's growth.

from graphql-spec.

leebyron avatar leebyron commented on April 28, 2024

IntelliJ would be great

from graphql-spec.

wangyanxing avatar wangyanxing commented on April 28, 2024

On my way

from graphql-spec.

Gregoor avatar Gregoor commented on April 28, 2024

I finished a basic version:
https://github.com/Gregoor/graphql-intellij-plugin

@leebyron: Is it possible that the spec is a bit incomplete in respect to type definitions starting with 'input'? But the grammar at the end was extremly helpful, thanks for that!

from graphql-spec.

kevinSuttle avatar kevinSuttle commented on April 28, 2024

Looks like @devknoll is on it.
https://twitter.com/devknoll/status/666469020976066560
https://twitter.com/devknoll/status/666476905739108352

image

from graphql-spec.

Gregoor avatar Gregoor commented on April 28, 2024

Awesome, that looks way better than what I did :) I'll try it, as soon as it is approved. Any idea how I can help the ~100 downloaders of my plugin migrate to your plugin?

Edit: I think I'll just put up a notification.

from graphql-spec.

jimkyndemeyer avatar jimkyndemeyer commented on April 28, 2024

@Gregoor A notification should do the trick :) How long did it take to get your plugin approved?

In case you want early access to the plugin, it can be downloaded from https://dl.dropboxusercontent.com/u/12996502/js-graphql-intellij-plugin/1.0.0/js-graphql-intellij-plugin.jar

Just add it using "Install plugin from disk..."

from graphql-spec.

Gregoor avatar Gregoor commented on April 28, 2024

I think the approval process is bound to their 9-5 work cycle (in the czech republic). At least that's the feeling I got.

Thanks for the direct link.

from graphql-spec.

jimkyndemeyer avatar jimkyndemeyer commented on April 28, 2024

@nicolaslopezj That's great news. Would you consider using https://github.com/graphcool/graphql-config#method-2-configuration-via-graphqlrc-file to configure the endpoint?

from graphql-spec.

nicolaslopezj avatar nicolaslopezj commented on April 28, 2024

Yes I will!

from graphql-spec.

dncrews avatar dncrews commented on April 28, 2024

For @abdulhannanali and anyone else sad about the Sublime Text highlighter not working, I just released one that does. https://packagecontrol.io/packages/GraphQL

from graphql-spec.

abdulhannanali avatar abdulhannanali commented on April 28, 2024

@dncrews Thanks a lot @dncrews will surely help people using Sublime but I have long moved to Visual Studio Code ❤️

from graphql-spec.

astorije avatar astorije commented on April 28, 2024

Derailing this thread a bit because these are not IDEs but since we're talking syntax highlighting, some highlighting libraries as of 21 March 2017:

Let me know if you are aware of other ones.

from graphql-spec.

leebyron avatar leebyron commented on April 28, 2024

Closing this generic issue since we now have pretty good coverage across many IDEs. Please open future language service issues on specific IDEs!

from graphql-spec.

Related Issues (20)

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.