https://github.com/danielholmes/relay-compiler-webpack-plugin-example
Simple example showing how to use the relay-compiler-webpack-plpugin
https://github.com/danielholmes/relay-compiler-webpack-plugin-example
graphql react relay relay-compiler relay-modern webpack webpack3 webpack4
Last synced: 5 months ago
JSON representation
Simple example showing how to use the relay-compiler-webpack-plpugin
- Host: GitHub
- URL: https://github.com/danielholmes/relay-compiler-webpack-plugin-example
- Owner: danielholmes
- License: mit
- Archived: true
- Created: 2017-11-29T00:03:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T16:56:33.000Z (over 2 years ago)
- Last Synced: 2024-10-24T02:54:54.239Z (8 months ago)
- Topics: graphql, react, relay, relay-compiler, relay-modern, webpack, webpack3, webpack4
- Language: JavaScript
- Size: 3.11 MB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Relay Compiler Webpack Plugin Example
[](https://travis-ci.org/danielholmes/relay-compiler-webpack-plugin-example)
Example project setup for testing out
[relay-compiler-webpack-plugin](https://github.com/danielholmes/relay-compiler-webpack-plugin).## Dependencies
- [NodeJS](https://nodejs.org/)
- [Yarn](https://yarnpkg.com/) (tested with 1.3.2)## Setting Up
```bash
yarn
```## Running
```bash
yarn generate-schema
yarn backend
``````bash
yarn clean
yarn frontend
```Site now available at [http://127.0.0.1:3000](http://127.0.0.1:3000).
Or for a single webpack build:
```bash
yarn build
```## Direct relay-compiler Call
To help see differences with webpack plugin vs direct invocation.
```bash
yarn relay-compile
```