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

Fix examples, fixes #366 #367

Merged
merged 5 commits into from
Apr 5, 2019
Merged

Fix examples, fixes #366 #367

merged 5 commits into from
Apr 5, 2019

Conversation

kevinbarabash
Copy link
Contributor

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:
Screen Shot 2019-04-04 at 10 17 00 PM

@khanbot
Copy link

khanbot commented Apr 5, 2019

Hey @kevinbarabash,

Thanks for the PR! Mind signing our Contributor License Agreement?

When you've done so, go ahead and comment [clabot:check] and I'll check again.

Yours truly,
khanbot

@@ -43,15 +43,17 @@
"devDependencies": {
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"@babel/preset-flow": "^7.0.0",
Copy link
Collaborator

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

@kevinbarabash
Copy link
Contributor Author

@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. 🙂

@kevinbarabash kevinbarabash self-assigned this Apr 5, 2019
import React from 'react';
import { StyleSheet, css } from '../../src/index.js';
import * as React from 'react';
import { StyleSheet, css } from '../../lib/index.js';
Copy link
Contributor Author

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
Copy link
Contributor Author

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.

Copy link

@BrianGenisio BrianGenisio left a 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.

@kevinbarabash kevinbarabash merged commit 1beabca into master Apr 5, 2019
@kevinbarabash kevinbarabash deleted the fix-examples branch April 5, 2019 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants