Skip to content
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 41 commits into from
Jul 2, 2018
Merged
Show file tree
Hide file tree
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 May 5, 2018
ef6dd5c
Fix stuff
emmatown May 5, 2018
2ee93eb
Merge branch 'master' into change-build
emmatown Jun 28, 2018
1a46819
Move site and benchmarks
emmatown Jun 28, 2018
46b2750
Merge branch 'master' into change-build
emmatown Jun 28, 2018
f2f153f
Add a thing for flow
emmatown Jun 28, 2018
df609e9
Change some stuff
emmatown Jun 28, 2018
f9c975d
Add UMD builds and update build script from next
emmatown Jun 28, 2018
c74a39a
Fix stuff
emmatown Jun 28, 2018
21d2b01
Clean up stuff and update jest
emmatown Jun 28, 2018
95840eb
Change a thing
emmatown Jun 30, 2018
6e1256c
Merge branch 'master' into change-build
emmatown Jun 30, 2018
c5cabe5
Change a thing
emmatown Jun 30, 2018
1b8e73b
Fix site
emmatown Jun 30, 2018
541b1cd
probably fix ci
emmatown Jun 30, 2018
edf6af3
Fix linting
emmatown Jun 30, 2018
eea5e74
Update CONTRIBUTING.md
emmatown Jun 30, 2018
4decc39
Change netlify.toml
emmatown Jun 30, 2018
86c95dc
Fix path
emmatown Jun 30, 2018
b70004d
Fix more paths
emmatown Jun 30, 2018
42f98b8
Remove exclude from rollup-plugin-commonjs usage
emmatown Jun 30, 2018
157a7a0
Move rollup-plugin-commonjs to after rollup-plugin-babel
emmatown Jun 30, 2018
dad28a7
Add comments to macro proxy files
emmatown Jun 30, 2018
54acf9f
Refactor and add comment to react component constructor babel plugin
emmatown Jun 30, 2018
3d4f99a
Disallow commonjs in the src of packages to avoid rollup problems
emmatown Jun 30, 2018
157bbec
Don't build eslint-plugin-emotion
emmatown Jun 30, 2018
ad8d1ad
Fix site
emmatown Jun 30, 2018
22f1907
gahhhhhhhhhhhhhh
emmatown Jun 30, 2018
43eb9e3
Address some feedback and stuff
emmatown Jun 30, 2018
d31ded1
Support PureComponent in basic react constructor babel plugin
emmatown Jun 30, 2018
6f89776
Add flow types to build script
emmatown Jul 1, 2018
44e35e9
Fix a thing
emmatown Jul 1, 2018
29887b9
Update babel (lots of tests are failing)
emmatown Jul 1, 2018
7ae8d49
Fix mock fs in babel plugin tests
emmatown Jul 1, 2018
200495c
Update snapshots (the reason the component selector hashes changed wa…
emmatown Jul 1, 2018
3a0fe42
Add to coverage ignore
emmatown Jul 1, 2018
07aaace
Fix site and switch benchmarks to parcel
emmatown Jul 1, 2018
6d552a4
Revert "Fix site and switch benchmarks to parcel"
emmatown Jul 1, 2018
6d9f93b
Add browserslist to resolutions
emmatown Jul 1, 2018
cb4e562
Change es suffix to esm
emmatown Jul 1, 2018
ec46278
Fix site
emmatown Jul 2, 2018
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
Prev Previous commit
Fix site
  • Loading branch information
emmatown committed Jul 2, 2018
commit ec46278b1a845a6a938bdfc8fcd60122ce0ab1c2
7 changes: 5 additions & 2 deletions site/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ global.Babel = require('babel-standalone')

exports.onCreateWebpackConfig = ({ stage, actions, plugins, getConfig }) => {
actions.setWebpackConfig({
plugins: [plugins.ignore(/^(xor|props)$/)],
// xor and props are for react-live and cosmiconfig is for babel-plugin-macros
plugins: [plugins.ignore(/^(xor|props|cosmiconfig)$/)],
resolve: {
modules: ['node_modules'],
alias: {
assert: 'fbjs/lib/emptyFunction',
'source-map': 'fbjs/lib/emptyFunction',
Expand All @@ -28,6 +28,9 @@ exports.onCreateWebpackConfig = ({ stage, actions, plugins, getConfig }) => {
...config.output,
// this doesn't seem to always merge correctly with `setWebpackConfig` for some reason
// so i'm setting it here
// this is here because it defaults to window and is used for hot reloading and other stuff
// so if this wasn't here, the web worker would break
// since it would try to access window
globalObject: 'this'
},
module: {
Expand Down
1 change: 0 additions & 1 deletion site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"gatsby-plugin-emotion": "^2.0.0-beta.2",
"gatsby-plugin-netlify": "1.0.19-11",
"gatsby-plugin-react-helmet": "^3.0.0-beta.3",
"gatsby-plugin-react-next": "next",
"gatsby-plugin-sharp": "^2.0.0-beta.2",
"gatsby-plugin-sitemap": "^2.0.0-beta.2",
"gatsby-remark-autolink-headers": "^2.0.0-beta.3",
Expand Down
3 changes: 1 addition & 2 deletions site/src/components/live/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ export const compileAndEvaluate = (
code: string,
compiler: Compiler,
scope: Scope
): Promise<{ error: Error | null, element: React.Element<*> | null }> => {
// $FlowFixMe i'm lazy
): Promise<{ error: Error | null, element: React.Node | null }> => {
return compiler(code)
.then(compiledCode => {
return evaluate(compiledCode, scope)
Expand Down
2 changes: 1 addition & 1 deletion site/src/components/live/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type Props = {

type State = {
code: string,
element: React.Element<*> | null,
element: React.Node | null,
error: Error | null
}

Expand Down
10 changes: 1 addition & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4106,7 +4106,7 @@ core-js@^1.0.0:
version "1.2.7"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636"

core-js@^2.4.0, core-js@^2.4.1, core-js@^2.5.0, core-js@^2.5.1, core-js@^2.5.3, core-js@^2.5.7:
core-js@^2.4.0, core-js@^2.4.1, core-js@^2.5.0, core-js@^2.5.3, core-js@^2.5.7:
version "2.5.7"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.7.tgz#f972608ff0cead68b841a16a932d0b183791814e"

Expand Down Expand Up @@ -6530,14 +6530,6 @@ gatsby-plugin-react-helmet@^3.0.0-beta.3:
dependencies:
"@babel/runtime" "7.0.0-beta.51"

gatsby-plugin-react-next@next:
version "2.0.1-13"
resolved "https://registry.yarnpkg.com/gatsby-plugin-react-next/-/gatsby-plugin-react-next-2.0.1-13.tgz#c08a5335c0b3c9e8f016ae5495a17c8ce1422a44"
dependencies:
"@babel/runtime" "7.0.0-beta.47"
core-js "^2.5.1"
resolve "^1.5.0"

gatsby-plugin-sharp@^2.0.0-beta.2:
version "2.0.0-beta.2"
resolved "https://registry.yarnpkg.com/gatsby-plugin-sharp/-/gatsby-plugin-sharp-2.0.0-beta.2.tgz#ea7e42d1ba7adbeebeeffe3ddafc675d6eb2fc33"
Expand Down