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

Upgrade to Relay 3.0.0 #1982

Merged
merged 13 commits into from
Feb 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions .babelrc

This file was deleted.

23 changes: 23 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module.exports = {
sourceMaps: "inline",
plugins: [
"babel-plugin-relay",
"./assert-messages-plugin.js",
"@atom/babel-plugin-chai-assert-async",
"@babel/plugin-proposal-class-properties",

// Needed for esprima
"@babel/plugin-proposal-object-rest-spread",
],
presets: [
["@babel/preset-env", {
targets: {electron: process.versions.electron}
}],
"@babel/preset-react"
],
env: {
coverage: {
plugins: ["babel-plugin-istanbul"]
}
}
}
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ We use the following technologies:
* We interact with GitHub via its [GraphQL](https://graphql.org/) API.
* [Relay](https://github.com/facebook/relay) is a layer of glue between React and GraphQL queries that handles responsibilities like query composition and caching.
* 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.
* 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.
* 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.

### Updating the GraphQL Schema

Expand Down
2 changes: 1 addition & 1 deletion assert-messages-plugin.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const generate = require('babel-generator').default;
const generate = require('@babel/generator').default;

module.exports = function({types: t}) {
return {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading