codemirror-graphql 0,1 eslint flowtype travis-ci npm

GraphQL mode and helpers for CodeMirror.

2 years after

GraphQL mode for CodeMirror

Build Status

Provides CodeMirror with a parser mode for GraphQL along with a live linter and typeahead hinter powered by your GraphQL Schema.

Getting Started

npm install --save codemirror-graphql

CodeMirror helpers install themselves to the global CodeMirror when they are imported.

import CodeMirror from 'codemirror';
import 'codemirror/addon/hint/show-hint';
import 'codemirror/addon/lint/lint';
import 'codemirror-graphql/hint';
import 'codemirror-graphql/lint';
import 'codemirror-graphql/mode';

CodeMirror.fromTextArea(myTextarea, {
  mode: 'graphql',
  lint: {
    schema: myGraphQLSchema
  },
  hintOptions: {
    schema: myGraphQLSchema
  }
});

Build for the web with webpack or browserify.

Related Repositories

awesome-react-components

awesome-react-components

Catalog of React Components & Libraries ...

awesome-graphql

awesome-graphql

Awesome list of GraphQL & Relay ...

graphiql

graphiql

An in-browser IDE for exploring GraphQL. ...

js-graphql-language-service

js-graphql-language-service

A Node.js powered language service that provides a GraphQL language API on top o ...

awesome-vue

awesome-vue

A curated list of awesome things related to Vue.js ...


Top Contributors

leebyron asiandrummer skevy greenkeeperio-bot fson

Dependencies

package version
graphql-language-service-interface 0.0.19
graphql-language-service-parser 0.0.15
dev babel-cli 6.24.1
babel-eslint 7.2.3
babel-plugin-check-es2015-constants 6.8.0
babel-plugin-syntax-async-functions 6.13.0
babel-plugin-transform-class-properties 6.24.1
babel-plugin-transform-es2015-arrow-functions 6.8.0
babel-plugin-transform-es2015-block-scoped-functions 6.8.0
babel-plugin-transform-es2015-block-scoping 6.24.1
babel-plugin-transform-es2015-classes 6.24.1
babel-plugin-transform-es2015-computed-properties 6.24.1
babel-plugin-transform-es2015-destructuring 6.23.0
babel-plugin-transform-es2015-duplicate-keys 6.24.1
babel-plugin-transform-es2015-function-name 6.24.1
babel-plugin-transform-es2015-literals 6.8.0
babel-plugin-transform-es2015-modules-commonjs 6.24.1
babel-plugin-transform-es2015-object-super 6.24.1
babel-plugin-transform-es2015-parameters 6.24.1
babel-plugin-transform-es2015-shorthand-properties 6.24.1
babel-plugin-transform-es2015-spread 6.8.0
babel-plugin-transform-es2015-template-literals 6.22.0
babel-plugin-transform-flow-strip-types 6.21.0
babel-plugin-transform-object-rest-spread 6.20.2
babel-plugin-transform-regenerator 6.24.1
chai 4.1.0
chai-subset 1.5.0
codemirror 5.28.0
eslint 4.3.0
eslint-plugin-babel 4.1.2
eslint-plugin-flowtype 2.35.0
flow-bin 0.52.0
graphql ^0.10.1
jsdom 11.1.0
mocha 3.5.0
prettier ^1.4.4
sane 2.0.0
peer codemirror ^5.26.0
graphql ^0.6.0 || ^0.7.0 || ^0.8.0-b || ^0.8.0 || ^0.9.0 |

Releases

-   v0.5.7 zip tar
-   v0.5.6 zip tar
-   v0.5.5 zip tar
-   v0.5.4 zip tar
-   v0.5.3 zip tar
-   v0.5.2 zip tar
-   v0.5.1 zip tar
-   v0.5.0 zip tar
-   v0.3.1 zip tar
-   v0.3.0 zip tar
-   v0.2.2 zip tar
-   v0.2.1 zip tar
-   v0.2.0 zip tar
-   v0.1.1 zip tar
-   v0.1.0 zip tar