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

Added Babel dependency and configuration for building from ES6 codebase #31

Merged
merged 4 commits into from Sep 11, 2015
Merged

Conversation

gesposito
Copy link
Contributor

I've made some config changes to let build from ES6 codebases as this one:
https://github.com/gesposito/gatsby-starter-blog

It's still hybrid (coffee, ES6) and just a proof of concept, but I'm willing to port it to a full ES6 starter.

@@ -23,7 +23,6 @@
value.relativePath = path.relative('.', directory);
return globPages(directory, function(err, pagesData) {
value.pages = pagesData;
this.value = [value];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this line not needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, forgot I bumped my head over it for a while, might be some transformation that fails.
I'm not used to CoffeeScript now I understand that @ notation is the this scope binding notation (right?), but while executing with that line this error pops up:
Cannot set property 'value' of undefined
this is actually undefined(?).

For what I see the "value" is just passed in "callback" (wrapped as an array?).

@KyleAMathews
Copy link
Contributor

Awesome! Made a few inline comments. LGTM.

P.s. if you want to contribute more and would prefer to do so in ES6, feel free to convert .coffee files over to es6 in the process. That's the plan anyways, just really busy right now with work.

@KyleAMathews
Copy link
Contributor

Also, if you just want to port the starters to es6, that'd be cool too. That should be the default. I can fork the original version as an explicit Coffeescript starter.

@gesposito
Copy link
Contributor Author

I'm willing to port the blog starter, if I get used to the quirks of porting might port the rest too.
Not ready for prime time yet, will let you know when the blog one is done.

@gesposito
Copy link
Contributor Author

I ended up converting the whole blog starter
https://github.com/gesposito/gatsby-starter-blog

@KyleAMathews
Copy link
Contributor

Awesome! I'd love a PR for that to the starter blog repo. Will give more feedback later to this PR.

@KyleAMathews KyleAMathews merged commit af24e37 into gatsbyjs:master Sep 11, 2015
@KyleAMathews
Copy link
Contributor

Thanks! Merged and published https://github.com/gatsbyjs/gatsby/releases/tag/0.3.0

@gesposito
Copy link
Contributor Author

Awesome!

@jlengstorf
Copy link
Contributor

Hiya @gesposito! 👋

This is definitely late, but on behalf of the entire Gatsby community, I wanted to say thank you for being here.

Gatsby is built by awesome people like you. Let us say “thanks” in two ways:

  1. We’d like to send you some Gatsby swag. As a token of our appreciation, you can go to the Gatsby Swag Store and log in with your GitHub account to get a coupon code good for one free piece of swag. (We’ve got t-shirts and hats, plus some socks that are really razzing our berries right now.)
  2. If you’re not already part of it, we just invited you to join the Gatsby organization on GitHub. This will add you to our team of maintainers. You’ll receive an email shortly asking you to confirm. By joining the team, you’ll be able to label issues, review pull requests, and merge approved pull requests.

If you have questions, please don’t hesitate to reach out to us: tweet at @gatsbyjs and we’ll come a-runnin’.

Thanks again! 💪💜

pragmaticpat pushed a commit to pragmaticpat/gatsby that referenced this pull request Apr 28, 2022
* Delete TravisCI config

* Remove gh-pages dependency and add prettier

* Change double quotes to single quotes in src files

* Update packages, refactor classes to stateless components and update
readme

* Removed package-lock as yarn is the default for this project

* Readded travis yml

* Remove travis config

* Remove Eslint and Editorconfig

* Remove html.js as it's already imported implicitely

* Update lock file
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.

None yet

3 participants