forked from gatsbyjs/gatsby
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(gatsby-plugin-emotion): upgrade plugin for emotion 10 support #3
Open
DSchau
wants to merge
3
commits into
master
Choose a base branch
from
gatsby-plugin-emotion/v10
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -4,23 +4,25 @@ | |
"description": "Gatsby example site using using-emotion", | ||
"author": "Tegan Churchill <[email protected]>", | ||
"dependencies": { | ||
"emotion": "^9.2.12", | ||
"emotion-server": "^9.2.12", | ||
"@emotion/core": "^10.0.0", | ||
"@emotion/styled": "^10.0.0", | ||
"emotion": "^10.0.0", | ||
"emotion-server": "^10.0.0", | ||
"gatsby": "^2.0.0", | ||
"gatsby-plugin-emotion": "^2.0.5", | ||
"gatsby-plugin-google-analytics": "^2.0.5", | ||
"gatsby-plugin-offline": "^2.0.5", | ||
"gatsby-plugin-react-helmet": "^3.0.0", | ||
"react": "^16.4.0", | ||
"react-dom": "^16.4.0", | ||
"react-emotion": "^9.2.12", | ||
"react-helmet": "^5.2.0" | ||
}, | ||
"license": "MIT", | ||
"main": "n/a", | ||
"scripts": { | ||
"develop": "gatsby develop", | ||
"build": "gatsby build", | ||
"serve": "gatsby serve", | ||
"start": "npm run develop" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -3,4 +3,3 @@ | |
["babel-preset-gatsby-package", { "browser": true }] | ||
] | ||
} | ||
|
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 |
---|---|---|
@@ -1,34 +0,0 @@ | ||
# Logs | ||
logs | ||
*.log | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directory | ||
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git | ||
node_modules | ||
*.un~ | ||
yarn.lock | ||
src | ||
flow-typed | ||
coverage | ||
decls | ||
examples | ||
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 |
---|---|---|
@@ -1,82 +0,0 @@ | ||
# Change Log | ||
|
||
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
<a name="2.0.6"></a> | ||
|
||
## [2.0.6](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-emotion/compare/[email protected]@2.0.6) (2018-10-29) | ||
|
||
**Note:** Version bump only for package gatsby-plugin-emotion | ||
|
||
<a name="2.0.5"></a> | ||
|
||
## [2.0.5](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-emotion/compare/[email protected]@2.0.5) (2018-09-17) | ||
|
||
**Note:** Version bump only for package gatsby-plugin-emotion | ||
|
||
<a name="2.0.0-rc.5"></a> | ||
|
||
# [2.0.0-rc.5](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-emotion/compare/[email protected]@2.0.0-rc.5) (2018-09-11) | ||
|
||
**Note:** Version bump only for package gatsby-plugin-emotion | ||
|
||
<a name="2.0.0-rc.4"></a> | ||
|
||
# [2.0.0-rc.4](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-emotion/compare/[email protected]@2.0.0-rc.4) (2018-09-11) | ||
|
||
**Note:** Version bump only for package gatsby-plugin-emotion | ||
|
||
<a name="2.0.0-rc.3"></a> | ||
|
||
# [2.0.0-rc.3](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-emotion/compare/[email protected]@2.0.0-rc.3) (2018-09-11) | ||
|
||
**Note:** Version bump only for package gatsby-plugin-emotion | ||
|
||
<a name="2.0.0-rc.2"></a> | ||
|
||
# [2.0.0-rc.2](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-emotion/compare/[email protected]@2.0.0-rc.2) (2018-09-11) | ||
|
||
**Note:** Version bump only for package gatsby-plugin-emotion | ||
|
||
<a name="2.0.0-rc.1"></a> | ||
|
||
# [2.0.0-rc.1](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-emotion/compare/[email protected]@2.0.0-rc.1) (2018-08-29) | ||
|
||
**Note:** Version bump only for package gatsby-plugin-emotion | ||
|
||
<a name="2.0.0-rc.0"></a> | ||
|
||
# [2.0.0-rc.0](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-emotion/compare/[email protected]@2.0.0-rc.0) (2018-08-21) | ||
|
||
**Note:** Version bump only for package gatsby-plugin-emotion | ||
|
||
<a name="2.0.0-beta.4"></a> | ||
|
||
# [2.0.0-beta.4](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-emotion/compare/[email protected]@2.0.0-beta.4) (2018-08-20) | ||
|
||
**Note:** Version bump only for package gatsby-plugin-emotion | ||
|
||
<a name="2.0.0-beta.3"></a> | ||
|
||
# [2.0.0-beta.3](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-emotion/compare/[email protected]@2.0.0-beta.3) (2018-07-21) | ||
|
||
**Note:** Version bump only for package gatsby-plugin-emotion | ||
|
||
<a name="2.0.0-beta.2"></a> | ||
|
||
# [2.0.0-beta.2](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-emotion/compare/[email protected]@2.0.0-beta.2) (2018-06-20) | ||
|
||
**Note:** Version bump only for package gatsby-plugin-emotion | ||
|
||
<a name="2.0.0-beta.1"></a> | ||
|
||
# [2.0.0-beta.1](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-emotion/compare/[email protected]@2.0.0-beta.1) (2018-06-17) | ||
|
||
**Note:** Version bump only for package gatsby-plugin-emotion | ||
|
||
<a name="2.0.0-beta.0"></a> | ||
|
||
# [2.0.0-beta.0](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-emotion/compare/[email protected]@2.0.0-beta.0) (2018-06-17) | ||
|
||
**Note:** Version bump only for package gatsby-plugin-emotion | ||
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 |
---|---|---|
@@ -1,28 +0,0 @@ | ||
# gatsby-plugin-emotion | ||
|
||
Provide support for using the css-in-js library | ||
[Emotion](https://github.com/emotion-js/emotion) including server side | ||
rendering. | ||
|
||
## Install | ||
|
||
``` | ||
npm install --save gatsby-plugin-emotion emotion emotion-server react-emotion | ||
``` | ||
|
||
## How to use | ||
|
||
Add the plugin to your `gatsby-config.js`. | ||
|
||
```js | ||
module.exports = { | ||
plugins: [ | ||
{ | ||
resolve: `gatsby-plugin-emotion`, | ||
options: { | ||
// Accepts all options defined by `babel-plugin-emotion` plugin. | ||
}, | ||
}, | ||
], | ||
} | ||
``` | ||
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 |
---|---|---|
@@ -1 +0,0 @@ | ||
// noop | ||
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
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,7 @@ | ||
import React from "react" | ||
import { cache } from "emotion" | ||
import { CacheProvider } from "@emotion/core" | ||
|
||
export const wrapElement = element => ( | ||
<CacheProvider value={cache}>{element}</CacheProvider> | ||
) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is necessary if people are using
injectGlobal
,keyframes
,css
, etc. from theemotion
package, which seems likely.