Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Ty3uK/parcel-plugin-graphql-raw
Allows Parcel to export GraphQL files as plain text
https://github.com/Ty3uK/parcel-plugin-graphql-raw
Last synced: 3 months ago
JSON representation
Allows Parcel to export GraphQL files as plain text
- Host: GitHub
- URL: https://github.com/Ty3uK/parcel-plugin-graphql-raw
- Owner: Ty3uK
- License: mit
- Created: 2019-06-16T21:06:01.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T21:48:40.000Z (almost 2 years ago)
- Last Synced: 2024-07-21T18:48:32.456Z (4 months ago)
- Language: JavaScript
- Size: 1.42 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-parcel - parcel-plugin-graphql-raw
README
[![Travis CI Build Status](https://travis-ci.com/Ty3uK/parcel-plugin-graphql-raw.svg?branch=master)](https://travis-ci.com/Ty3uK/parcel-plugin-graphql-raw)
[![Dependencies](https://david-dm.org/Ty3uK/parcel-plugin-graphql-raw.svg?branch=master)](https://david-dm.org/Ty3uK/parcel-plugin-graphql-raw)
[![npm package](https://img.shields.io/npm/v/parcel-plugin-graphql-raw.svg)](https://www.npmjs.com/package/parcel-plugin-graphql-raw)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)# parcel-plugin-graphql-raw
Some packages (like [nanographql](https://github.com/yoshuawuyts/nanographql)) uses plain-text GraphQL Schema instead of JSON, generated by [graphql-tag](https://github.com/apollographql/graphql-tag).
Since [GraphqlAsset](https://github.com/parcel-bundler/parcel/blob/master/packages/core/parcel-bundler/src/assets/GraphqlAsset.js) uses [graphql-tag](https://github.com/apollographql/graphql-tag), this plugin allows [Parcel](https://github.com/parcel-bundler/parcel) to export GraphQL files as plain text
## Usage
Install plugin:
```bash
# via yarn
yarn add -D parcel-plugin-graphql-raw
# via npm
npm i -D parcel-plugin-graphql-raw
```Import GraphQL file (with .graphql or .gql extension):
```javascript
import simple from './simple.gql';
```## License
[MIT](LICENSE)