Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 4932227

Browse files
authored
Merge pull request #1982 from atom/aw/relay-up
Upgrade to Relay 3.0.0
2 parents 2d67c14 + 68f8513 commit 4932227

File tree

48 files changed

+2520
-2286
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+2520
-2286
lines changed

.babelrc

Lines changed: 0 additions & 20 deletions
This file was deleted.

.babelrc.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
module.exports = {
2+
sourceMaps: "inline",
3+
plugins: [
4+
"babel-plugin-relay",
5+
"./assert-messages-plugin.js",
6+
"@atom/babel-plugin-chai-assert-async",
7+
"@babel/plugin-proposal-class-properties",
8+
9+
// Needed for esprima
10+
"@babel/plugin-proposal-object-rest-spread",
11+
],
12+
presets: [
13+
["@babel/preset-env", {
14+
targets: {electron: process.versions.electron}
15+
}],
16+
"@babel/preset-react"
17+
],
18+
env: {
19+
coverage: {
20+
plugins: ["babel-plugin-istanbul"]
21+
}
22+
}
23+
}

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ We use the following technologies:
162162
* We interact with GitHub via its [GraphQL](https://graphql.org/) API.
163163
* [Relay](https://github.com/facebook/relay) is a layer of glue between React and GraphQL queries that handles responsibilities like query composition and caching.
164164
* Our tests are written with [Mocha](https://mochajs.org/) and [Chai](https://www.chaijs.com/) [_(with the "assert" style)_](https://www.chaijs.com/api/assert/). We also use [Enzyme](https://airbnb.io/enzyme/) to assert against React behavior.
165-
* We use a [custom Babel 6 transpiler pipeline](https://github.com/atom/atom-babel6-transpiler) to write modern source with JSX, `import` statements, and other constructs unavailable natively within Atom's Node.js version.
165+
* We use a [custom Babel 7 transpiler pipeline](https://github.com/atom/atom-babel7-transpiler) to write modern source with JSX, `import` statements, and other constructs unavailable natively within Atom's Node.js version.
166166

167167
### Updating the GraphQL Schema
168168

assert-messages-plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const generate = require('babel-generator').default;
1+
const generate = require('@babel/generator').default;
22

33
module.exports = function({types: t}) {
44
return {

lib/containers/__generated__/currentPullRequestContainerQuery.graphql.js

Lines changed: 27 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)