Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kamilkisiela/rollup-plugin-graphql
Convert graphql files to ES6 modules
https://github.com/kamilkisiela/rollup-plugin-graphql
graphql rollup rollup-plugin
Last synced: 11 days ago
JSON representation
Convert graphql files to ES6 modules
- Host: GitHub
- URL: https://github.com/kamilkisiela/rollup-plugin-graphql
- Owner: kamilkisiela
- License: mit
- Created: 2017-06-07T13:38:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-10-27T08:50:21.000Z (about 4 years ago)
- Last Synced: 2024-10-18T17:22:19.658Z (about 1 month ago)
- Topics: graphql, rollup, rollup-plugin
- Language: JavaScript
- Homepage: http://npmjs.com/package/rollup-plugin-graphql
- Size: 9.77 KB
- Stars: 9
- Watchers: 3
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# rollup-plugin-graphql
Convert GraphQL files to ES6 modules:
```js
// import a GraphQL Document from a GraphQL file,
import schema from './schema.graphql';
```## Installation
```bash
npm install --save-dev rollup-plugin-graphql
```## Usage
```js
import { rollup } from 'rollup';
import graphql from 'rollup-plugin-graphql';rollup({
entry: 'main.js',
plugins: [
graphql()
]
});
```## License
MIT