-
Notifications
You must be signed in to change notification settings - Fork 187
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
Fix examples, fixes #366 #367
Conversation
Hey @kevinbarabash, Thanks for the PR! Mind signing our Contributor License Agreement? When you've done so, go ahead and comment Yours truly, |
@@ -43,15 +43,17 @@ | |||
"devDependencies": { | |||
"@babel/cli": "^7.0.0", | |||
"@babel/core": "^7.0.0", | |||
"@babel/preset-flow": "^7.0.0", |
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.
Unrelated: I think we should consider switching to TypeScript
…ges to root .babelrc
@lencioni thanks for the review. I still have some work to do to get lint passing before I can merge. I'll figure it out in the morning. 🙂 |
import React from 'react'; | ||
import { StyleSheet, css } from '../../src/index.js'; | ||
import * as React from 'react'; | ||
import { StyleSheet, css } from '../../lib/index.js'; |
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.
The reason for importing ../../lib/index.js
instead of ../../src/index.js
is that @babel/register
doesn't want to compile files from outside of its directory subtree.
@@ -15,4 +15,5 @@ notifications: | |||
on_start: never | |||
|
|||
after_script: | |||
- npm run build |
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.
The linter was catching references in examples/src/*.js
to ../../lib/index.js
as not existing. This should fix that.
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.
Wowza. Thanks Kevin! This is really great! I'll try to play with it this weekend. Kevin is my hero. Seriously.
The dependencies in

examples/package.json
were quite out of date. I've upgraded them to be current.To test this change I followed the instructions in
examples/README.md
and then opened http://localhost:4114/ in a browser and saw: