gatsby

The best React-based framework with performance, scalability and security built in.

MIT License

Downloads
7.6M
Stars
55.2K
Committers
4.1K

Bot releases are visible (Hide)

gatsby - Small fixes — improve default host on Windows + compile mode for html.js

Published by KyleAMathews over 8 years ago

gatsby - Better Windows support & Font Loaders

Published by KyleAMathews over 8 years ago

Noted fixer of NPM packages for Windows @NogsMPLS submitted a PR to get Gatsby (hopefully) completely working on Windows! 🎉 🎉 🎉

@gesposito added support to Webpack for requiring fonts https://github.com/gatsbyjs/gatsby/pull/162

@kyleamathews made a few miscallaneous changes

Thanks everyone!

gatsby - Major release upgrading to React-Router 2.0 + full support for Less/Sass/PostCSS

Published by KyleAMathews over 8 years ago

Hi folks,
Finished off a major new release of Gatsby in time for ReactConf 🎉

New features

  • Support Less/Sass/Postcss out of the box. CSS files are processed using the excellent cssnext.
  • Support extracting and minifying css on production builds to an external styles.css file.
  • React-Router 2.0 🎉

Internals work

  • We're using Webpack Hot Middleware + react-transform-hmr now instead of react-hot-loader.
  • All remaining Coffeescript files have been converted to JS.

Breaking changes.

React Router has made two major releases since Gatsby was first built with a ton of nice improvements. But as Gatsby uses React Router heavily, its breaking changes often cause breaking changes within Gatsby.

The main change is what props are passed to _template and wrapper components. Previously each component was passed the current page data and a pages array of all pages. Now this information is put onto the route prop passed in by React Router.

Also where previously React Router provided a <RouteHandler/> component which rendered the children components in _template files, you should now replace those with {this.props.children}.

Upgrading

  • Install new packages: npm install --save react-router@latest lodash@latest && npm install --save-dev [email protected] react-transform-catch-errors react-transform-hmr redbox-react
  • Adjust templates and wrappers (and other components as necessary) to account for the React Router changes.
  • onRouteChange is now passed the location object from History.
gatsby - Internals cleanup

Published by KyleAMathews almost 9 years ago

> DEBUG=gatsby:* gatsby build

screenshot 2015-12-06 01 48 23

gatsby - Can now easily override default Webpack config

Published by KyleAMathews almost 9 years ago

@ChristopherBiscardi added a PR to make it simple to override or extend the default Gatsby Webpack configuration. Gatsby tries to anticipate most needs out of the box but many projects will need some customizations to Webpack.

See the PR and new documentation.

gatsby - Now using React 0.14!

Published by KyleAMathews almost 9 years ago

Update to React 0.14

The big change for this release was updating React to 0.14. Thanks to @patrykkopycinski for his PR!

We're still on the 0.13 series of React Router as their recent 1.0 release will require internal updates to Gatsby. Follow along at https://github.com/gatsbyjs/gatsby/issues/32 if interested.

gatsby serve now gatsby develop

Serve implied Gatsby was just serving up files. Develop conveys the idea better that you're starting up a full-fledged development server with the intent to start developing.

Can now do webpack requires in your html.jsx

Previously you couldn't do webpack requires in your html component as the development server was requiring the module in node context. But with the help of @petehunt's webpack-require project, you can now require css or anything else you'd like in your html.jsx.

Improved support for prefixing site links e.g. when building for Github Pages.

See the documentation that's been added to the README.

How to upgrade

You'll need to update React in your project to React 0.14 as well as upgrade any React components that relied on older React APIs. Make sure to not install the latest react-router.

gatsby - require('babel/register') doesn't work when installed globally

Published by KyleAMathews about 9 years ago

Hopefully this will be fixed soon.

Reported by @luandro at https://github.com/gatsbyjs/gatsby/issues/54

Babel bug report at https://github.com/babel/babel/issues/1889

gatsby - v0.6.0

Published by KyleAMathews about 9 years ago

Bug fix

gatsby - Fix for asset copying bug

Published by KyleAMathews about 9 years ago

Gatsby previously was crashing when trying to copy assets in the post-build step where the asset was not in a directory with a page.

#39

Fixed in https://github.com/gatsbyjs/gatsby/commit/55fee06a11299ae0d761323e35a80e7c49e1aa74

gatsby - Support SVG

Published by KyleAMathews about 9 years ago

@fson added SVG support to the Webpack config in #34

gatsby - Fully support ES6 and babel

Published by KyleAMathews about 9 years ago

@gesposito fixed up Gatsby's support for Babel in https://github.com/gatsbyjs/gatsby/pull/31 as well as converting the starter blog to ES6

Thanks!

gatsby - Fix path error on builds for non-index pages

Published by KyleAMathews about 9 years ago

@phlogisticfugu created a PR to fix #14

gatsby - Fix "Cannot find module" error"

Published by KyleAMathews about 9 years ago

Bugs fixed:

  • #11 Error: Cannot find module '../lib/utils/init-starter' on second step of tutorial
gatsby - 0.2.0

Published by KyleAMathews about 9 years ago

First somewhat stable public release

Features added:

  • Install pre-built starter sites from Github.
  • Support adding link prefixes e.g. for Github sites.
  • Added two demo/starter sites, a blog and documentation site
  • Added two helper functions for auto-prefixing links and for finding the child pages for a template.