Skip to content

Fix examples, fixes #366#367

Merged
k4b7 merged 5 commits into
masterfrom
fix-examples
Apr 5, 2019
Merged

Fix examples, fixes #366#367
k4b7 merged 5 commits into
masterfrom
fix-examples

Conversation

@k4b7
Copy link
Copy Markdown
Contributor

@k4b7 k4b7 commented Apr 5, 2019

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

@k4b7 k4b7 requested review from BrianGenisio and lencioni April 5, 2019 02:17
@khanbot
Copy link
Copy Markdown

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

Comment thread package.json
"devDependencies": {
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"@babel/preset-flow": "^7.0.0",
Copy link
Copy Markdown
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

@k4b7
Copy link
Copy Markdown
Contributor Author

k4b7 commented Apr 5, 2019

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

@k4b7 k4b7 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
Copy Markdown
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.

Comment thread .travis.yml
on_start: never

after_script:
- npm run build
Copy link
Copy Markdown
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
Copy Markdown

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

@k4b7 k4b7 merged commit 1beabca into master Apr 5, 2019
@k4b7 k4b7 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