-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consolidate compiler / workflow guides
Reviewed By: alunyov, kassens Differential Revision: D26895903 fbshipit-source-id: 7c0c61bd99bcd9ca8cadaf5d1a39a98c9cebafe4
- Loading branch information
1 parent
a6c6139
commit 7fa7c60
Showing
5 changed files
with
80 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
id: workflow | ||
title: Workflow | ||
slug: /guided-tour/workflow/ | ||
--- | ||
|
||
import DocsRating from '../../src/core/DocsRating'; | ||
import {OssOnly, FbInternalOnly} from 'internaldocs-fb-helpers'; | ||
import FbWorkflow from './fb/FbWorkflow.md'; | ||
|
||
<FbInternalOnly> | ||
<FbWorkflow /> | ||
</FbInternalOnly> | ||
|
||
<OssOnly> | ||
|
||
Before we can get started writing Relay code, we need to make sure to **[setup the Relay Compiler](../../getting-started/installation-and-setup/#set-up-relay-compiler)**. | ||
|
||
The **[Relay Compiler](../../guides/compiler/)** will analyze any `graphql` literals inside your Javascript code, and produce a set of artifacts that are used by Relay at runtime, when the application is running on the browser. | ||
|
||
So whenever we're developing Relay components, for example by writing [Fragments](../rendering/fragments/) or [Queries](../rendering/queries/), we will need to run the Relay Compiler: | ||
|
||
```sh | ||
yarn run relay | ||
``` | ||
|
||
Or we can run it in watch mode, so the artifacts are re-generated as we update our source code: | ||
|
||
```sh | ||
yarn run relay --watch | ||
``` | ||
|
||
</OssOnly> | ||
|
||
<DocsRating /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters