-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Change build system and update Jest #747
Merged
Merged
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
e9315c6
Start changing build stuff
emmatown ef6dd5c
Fix stuff
emmatown 2ee93eb
Merge branch 'master' into change-build
emmatown 1a46819
Move site and benchmarks
emmatown 46b2750
Merge branch 'master' into change-build
emmatown f2f153f
Add a thing for flow
emmatown df609e9
Change some stuff
emmatown f9c975d
Add UMD builds and update build script from next
emmatown c74a39a
Fix stuff
emmatown 21d2b01
Clean up stuff and update jest
emmatown 95840eb
Change a thing
emmatown 6e1256c
Merge branch 'master' into change-build
emmatown c5cabe5
Change a thing
emmatown 1b8e73b
Fix site
emmatown 541b1cd
probably fix ci
emmatown edf6af3
Fix linting
emmatown eea5e74
Update CONTRIBUTING.md
emmatown 4decc39
Change netlify.toml
emmatown 86c95dc
Fix path
emmatown b70004d
Fix more paths
emmatown 42f98b8
Remove exclude from rollup-plugin-commonjs usage
emmatown 157a7a0
Move rollup-plugin-commonjs to after rollup-plugin-babel
emmatown dad28a7
Add comments to macro proxy files
emmatown 54acf9f
Refactor and add comment to react component constructor babel plugin
emmatown 3d4f99a
Disallow commonjs in the src of packages to avoid rollup problems
emmatown 157bbec
Don't build eslint-plugin-emotion
emmatown ad8d1ad
Fix site
emmatown 22f1907
gahhhhhhhhhhhhhh
emmatown 43eb9e3
Address some feedback and stuff
emmatown d31ded1
Support PureComponent in basic react constructor babel plugin
emmatown 6f89776
Add flow types to build script
emmatown 44e35e9
Fix a thing
emmatown 29887b9
Update babel (lots of tests are failing)
emmatown 7ae8d49
Fix mock fs in babel plugin tests
emmatown 200495c
Update snapshots (the reason the component selector hashes changed wa…
emmatown 3a0fe42
Add to coverage ignore
emmatown 07aaace
Fix site and switch benchmarks to parcel
emmatown 6d552a4
Revert "Fix site and switch benchmarks to parcel"
emmatown 6d9f93b
Add browserslist to resolutions
emmatown cb4e562
Change es suffix to esm
emmatown ec46278
Fix site
emmatown 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
Change some stuff
- Loading branch information
commit df609e9016b3f06c2a1e0b91fa0ed08ebbbeaf41
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
/coverage | ||
/demo/dist | ||
dist/ | ||
lib/ | ||
node_modules/ | ||
*.log | ||
.idea | ||
|
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 @@ | ||
module.exports = require('babel-plugin-emotion').macros.styled | ||
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 @@ | ||
module.exports = require('babel-plugin-emotion').macros.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
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
4 changes: 1 addition & 3 deletions
4
packages/babel-plugin-emotion/test/macro/babel-macros-register.js
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,9 +1,7 @@ | ||
require('babel-register') | ||
const path = require('path') | ||
require('module-alias').addAliases({ | ||
'emotion-utils': path.join(__dirname, '../../../emotion-utils/src'), | ||
'react-emotion/macro': path.join(__dirname, '../../src/macro-styled'), | ||
'emotion/macro': path.join(__dirname, '../../src/macro') | ||
'babel-plugin-emotion': path.join(__dirname, '../../src') | ||
}) | ||
|
||
module.exports = require('babel-plugin-macros') |
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 |
---|---|---|
@@ -1 +1 @@ | ||
module.exports = require('babel-plugin-emotion').emotionMacro | ||
module.exports = require('babel-plugin-emotion').macros.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
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 +1 @@ | ||
module.exports = require('babel-plugin-emotion').styledMacro | ||
module.exports = require('babel-plugin-emotion').macros.styled |
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 +1 @@ | ||
module.exports = require('babel-plugin-emotion').styledMacro | ||
module.exports = require('babel-plugin-emotion').macros.styled |
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.
whats the reason behind those 2 "proxy" files?
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.
In case people have custom instances of emotion and they're using the macros with them since this they were previously imported via
babel-plugin-emotion/lib/macro
andbabel-plugin-emotion/lib/macro-styled
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.
gotcha, maybe add a comment that this can be removed with next major?