Skip to content

Commit

Permalink
Merge v2 in master making it the default branch (#5954)
Browse files Browse the repository at this point in the history
* Publish

 - [email protected]

* fix icon link

* Publish

 - [email protected]

* [v2] Update offline plugin so it doesn't cachebust JS files any more as well as anything in the static directory (#5299)

* Publish

 - [email protected]

* fix lint (#5304)

* [v2] Allow for plugins to override core prefetching behavior (#5320)

* Always fetch page resources if user mouseenters a link

* Allow plugins to stop core prefetching

* Misc small fixes

* When rendering bundle for generating HTML, target the current node version

* Sort matchPath pages last so more explicit matches win

* Misc

* Revert

* Remove stray console.log

* Publish

 - [email protected]
 - [email protected]
 - [email protected]

* Expose dataPaths on window for access by plugins (need to create API) (#5322)

* Publish

 - [email protected]

* [v2][tut. part 7] Rename boundActionCreators to actions (#5293)

* [v2][tut. part 4] typography peerDependencies (#5292)

* Remove this for now, as it's not currently being used (#5325)

* [v2] re-add tests for sass and less plugins + update using-sass example (#5223)

* update "using-sass" example

* [gatsby-plugin-sass] add tests

* [gatsby-plugin-less] update tests and README

* commit missing file

* add missing snapshot

* [v2] sourceType: 'unambigious' is a general babel config option, not for @babel/preset-env (#5336)

* [v2] sourceType: 'unambigious' is a general babel config option, not for @babel/preset-env

* Update snapshots

* Publish

 - [email protected]
 - [email protected]
 - [email protected]

* Adding deploy steps for Aerobatic (#4437)

* [v2] small refactor of api-runner-browser to fix loader test (#5343)

* small refactor of api-runner-browser to fix tests

* remove stray '$' and unneeded eslint-disable-next-line

* fix sass and less variants of css modules in build-html stage (#5340)

* [v2] fix gatsbygram build (#5356)

* Publish

 - [email protected]
 - [email protected]
 - [email protected]

* [v2] deleteNode signature (#5222)

* Change deleteNode signature to remove nodeId

* These tests were failing?

* Deprecate old deleteNode method signature

* Change touchNode to accept an object

* [v2] Initial commit of gatsby-plugin-guess-js & gatsby-source-wikipedia (#5358)

* Add gatsby-source-wikipedia

* Add gatsby-plugin-guess-js

* Only run guess code during builds as can error during development

* Set packages to alpha

* Add more keywords to gatsby-source-wikipedia

* Document plugins

* Publish

 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]

* Run bootstrap

* [gatsby-plugin-guess-js] fix a small README (#5361)

* Publish

 - [email protected]

* Fix www front page + small edits to tutorial

* Add start to part-8

* only look for files when looking for depracated APIs (#5374)

`glob.sync` returns files and directories by default.
It is not forbidden to name a directory `foo.js` and it would be returned by `glob`.
That's an issue because `fs.readFileSync(file)` will then fail with `EISDIR: illegal operation on a directory`.

This makes sure that `glob.sync` only returns files

* Lint (#5363)

* Fix the gatsbygram UI tests (#5362)

* Fix typo

* [v2] Make default browserslist more futureproof (#5114)

* [v2] Make default browserslist more futureproof

This is inspired by Jamie Kyle's blog post/issue in babel yesterday
on the problems of using "last 2 versions" with @babel/preset-env which
includes browsers which aren't receiving updates anymore so "last 2
versions" will always be building for them.

To quote his post:

>Using market share percentages as your baseline is much better than some arbitrary number of previous versions. If a browser is used by 0 people, then market percentages will reflect that.

* https://jamie.build/last-2-versions
* https://github.com/babel/babel/issues/7789

* Use recommended browser defaults

* Update index.md

Fixing Layout closing tag

* Update index.md (#5383)

Fixing rhythm export

* [v2] Pin babel (#5389)

* Pin babel version

* Update yarn.lock

* remove deprecated Tapable.plugin syntax (#5395)

* [V2] Docs - Import Link from gatsby. (#5390)

* pass pathContext to page component - it's deprecated, not removed (#5387)

* Use "you" instead of "we" where appropriate (#5418)

https://github.com/gatsbyjs/gatsby/issues/5381

* [v2] Update Babel to 7.0.0-beta.47 (#5399)

* Update babel to 7.0.0-beta.46

* Update yarn.lock

* Fix ignore paths

* Add missing .babelrc files

* Add config for Gatsby package

* Fix Jest source compilation

* Update to beta 47

* Update yarn.lock

* Remove unused dependencies (#5401)

* [v2][tut. part 1] Use "you" instead of "we" where appropriate (#5420)

* [v2][tut. part 2] Use "you" instead of "we" where appropriate (#5421)

* [v2][tut. part 3] Use "you" instead of "we" where appropriate (#5422)

* [v2] Update ESLint-related dependencies (#5419)

* Update ESLint-related dependencies

Fixes #5411

* Remove duplicate dependency from gatsby/package.json

* [v2][tut. part 4] Use "you" instead of "we" where appropriate (#5428)

* [v2][tut. part 5] Use "you" instead of "we" where appropriate (#5429)

* [v2][tut. part 6] Use "you" instead of "we" where appropriate (#5430)

* [v2][tut. part 8] Use "you" instead of "we" where appropriate (#5431)

* [v2][tut. part 1] Bracket consistency (#5432)

* [v2][tut. part 2] Bracket consistency on code blocks + fix line number highlights (#5433)

* [gatsby-plugin-sharp] tests: mock async/queue to not actually run sharp sizing (#5426)

* Use pageContext

* Publish

 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]

* Publish

 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]

* Publish

 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]

* Add missing dev dependencies

* [v2][tut. part 3] Bracket consistency on code blocks (#5434)

* [v2][tut. part 4] Bracket consistency on code blocks (#5435)

* Publish

 - [email protected]

* Bump version of Gatsby for new build

* Publish

 - [email protected]

* [gatsby-remark-images] change gatsby-plugin-sharp version to next to avoid resolving version to outdated canary release (#5443)

* Publish

 - [email protected]

* [v2][www] Add global layout to pages and templates that don’t have it yet. (#5454)

* Added missing package

* Added global layout + fix little issues

* [v2][tut. pt. 4] No semi (#5449)

* [v2][tut. pt. 2] Single to backticks consistency (#5450)

* Run bootstrap (#5456)

* [v2] merge master into v2 (#5451)

* Use index within container

Confusing as to what is being asked. Later, the docs say to `import Container from "../components/container";`

* Pass through GTM environment params if present

Signed-off-by: Spencer Sanchez <[email protected]>

* Add abinavseelan.com to Showcase

* Add Dovetail (dovetailapp.com) to website examples

Thanks for creating Gatsby and for all of your hard work! We’ve enjoyed building our new marketing website with it.

* change link of `gatsby-advanced-blog` in docs

* Remove outdated contributing notes from gatsby-remark-prismjs

* Typo: Return to wrong file

I was doing the gatsby.js tutorial and I was running into one issue, the tutorial said to return to index.js, but it should be to my-files.js, I eventually figured out that this was probably just a typo, but for a long time I kept changing my index.js file and didn't understand what I was doing wrong, turns out I was editing the wrong file. For so far I have enjoyed gatsby.js, I want to use it for my personal portfolio.

* Fix distance between masthead and the icon (#5068)

On mobile, the masthead is overlapping with the Gatsby icon.

* Update CONTRIBUTING.md

* Update README.md

Per issue https://github.com/gatsbyjs/gatsby/issues/5073

* Add better-queue to dependencies

* Remove index.js for more consistent paths

* removing "a"

* pre-inferring data sanitazation (#5050)

* extractFieldExamples: omit not defined fields

this is especially helpful with ___NODE fields - plugins/users don't have to test if there are any values and be confident that empty ___NODE values or arrays will just be omitted and not error out during bootstrap

* sanitize field owner key when using createNodeField with name containing ___NODE

this fixes issue with inferring fieldOwners types - gatsby would try to link to not existing nodes

* Add getRenderer method (#5017)

* Add getRenderer method

Signed-off-by: slorber <[email protected]>

* upgrade example versions

Signed-off-by: slorber <[email protected]>

* change name to renderer

* Change name to replaceHydrateFunction

* document replaceHydrateFunction

* fix(gatsby): remove `.js` suffixes in require() to allow transpilation (#5087)

In earlier v1, one could write files such as `gatsby-config` in typescript and
use babel to transpile the file into js on the fly via
`babel-node --presets @babel/preset-typescript --extensions '.ts' gatsby
develop`. However, it's no longer possible in recent releases.

The reason is that the current implementation put a `.js` suffix on each
require(`gatsby-${env}.js`), which blocks `gatsby-{$env}` files being transpiled
from other languages via babel. The PR addresses this problem by removing the
unnecessary suffix and preserving the integrity.

Signed-off-by: Alvis HT Tang <[email protected]>

* Publish

 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]

* stylus plugin tests

Signed-off-by: Jan Winterfeld <[email protected]>

* add learnstorybook.com to showcase

* Bump yargs version to get help and version for free by default

* Update manifest extension to .webmanifest

Reason: https://sonarwhal.com/docs/user-guide/rules/rule-manifest-file-extension/

* Updated link to file

* team development workflows (#5084)

* team development workflows

* Small typos

* Revert "Small typos"

This reverts commit ee7bc36c2093ba550280330040f89d771c867b47.

* Revert "team development workflows"

This reverts commit a9e549853e826ef93a96c2b61da4d7fab0883ece.

* move doc to blog

* excerpt

* Publish

 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]

* Hyperlinks, optionality, and "easy" (#5154)

Added a few changes. This document needs to be reorganized eventually; I just want to add these notes in the fastest way possible now so I don't forget them.

* Add bartvanderwaerden.com to showcase (#5152)

* I guess I found the wrong word... (#5088)

I think line 308's `src/pages/my-files.js` is wrong.
It should be `src/pages/index.js` isn't it?

* Add two missing spaces (minor validation error) (#5150)

My previous commit missed adding a space after the backup blank `src=""` and `alt=""` attributes. This causes an HTML validation error when no `alt` value is supplied.

This commit simply adds those missing spaces (i.e. `src="" ` and `alt="" `) so there will always be a space between attributes.

* Adjust image processing example queries (#5158)

* adjust queries to not use id as way to select by filenames

this will stop working in gatsby v2

* add link to code

* Update KaTeX to 0.9.0 (#4712)

* Update KaTeX to 0.9.0

* Update snapshots

* DCO bye-bye (#5165)

* source-contentful: Add environment support (#5142)

* source-contentful: Add environment support

* fix lint

* fix default locale logix

* log error

* Update lock file

* Ulog the error

* Update package-lock.json

* revert lock changes, test shrinkwrap

* remove shrinkwrap, it's unused after all, add yarn resolutions

* cleanup debug console logs

* Link an example that uses gatsby-transformer-json (#5169)

* Publish

 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]

* Update RNW plugin and example (#5174)

* Update RNW example to use new plugin version

Signed-off-by: slorber <[email protected]>

* Update React in example

Signed-off-by: slorber <[email protected]>

* Enhance RNW example

Signed-off-by: slorber <[email protected]>

* Add link to online demo

Signed-off-by: slorber <[email protected]>

* Add screenshot

Signed-off-by: slorber <[email protected]>

* Update createRemoteFileNode documentation (#5171)

* Update createRemoteFileNode documentation

* Update README.md

* Fix replaceHydrateFunction doc (#5175)

* Fix replaceHydrateFunction doc

* Add spaces

* Update "how gatsby works" documentation (#243) (#5181)

* Add a note about CNAME file in `static`

* Fix typo in the .eslintrc file (#5173)

* added my site (#5172)

* Added rafael.do (#5199)

* Add Eviction Free NYC blog post and link to site (#5159)

* Add evictionfreenyc.org to showcase

* Add Eviction Free NYC blog post

* Fixing a typo

* Copy edits

* Self-contained images

* [Ready 4 Review] SQIP - Vectorized primitive image previews (#4205)

* first working version with Contentful assets only

* add readme

* respect width, height, aspect ratio, cropping, resize focus and background

* add support for gatsby-transformer-sharp

* integrate in gatsbygram

* avoid useless regeneration cus contentDigest changes

* proper way to get absolute path to ImageSharp nodes

* queue preview generation and cache results on disk

* upgrade to latest node-sqip to get rid of the GoLang dependency

* replace custom svg data uri function with package

* prepare images via sharp plugin and allow sharp transformations

* load cached svg properly from disk

* fix queue resolving to early

* set contentful images to 400px

* implement new sharp transformation awareness feature

* WIP - extract generation and write first pseudo test

* fix styling for gatsbygram post detail

* finalize unit tests for actual sqip implementation

* use 256px input image width to match sqip/primitive default

* add using-sqip example page

* some cleanup

* clean up example and enhance polaroid effect

* fix using-sqip dependency

* remove base64 since it was not implemented and is bad for compression

* remove sqip from gatsbygram example

* simplify tests

* Small change to trigger build

* Publish

 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]

* Add tutorial on creating a source plugin

* Format

* Add extensions to .eslintrc (#5206)

- Add .json or .yaml extension to .eslintrc files

```shell
$ cd ./packages
$ rename 's/.eslintrc/.eslintrc.yaml/' `find . -name .eslintrc`
$ cd ../
$ rename 's/.eslintrc/.eslintrc.json/' `find . -name .eslintrc`
```

- Tweak plopfile.js to add .json extension to examples to be generated

Signed-off-by: Masato Ohba <[email protected]>

* Add gatsby-starter-bulma-storybook to the starters list (#5208)

Signed-off-by: Gianni Valdambrini <[email protected]>

* fix: style and typo correction

- Minor style tweaks (e.g. unlinked "pixabay.com" => "Pixabay")
- Typo patrol
- De-British some of the language (my apologies to the letter U)

* Toodle-pip British u

* Adjust heading hierarchy

* Use relative urls for gatsbyjs.org links

* Pull last few sections up a level

* Minor edits and consistency tweaks

* Cleanup example for the createPages API (#5216)

* Update with @shannonbux's edits

* Additional header

* Bumps gatsby-plugin-mailchimp to 2.2.2 bc we updated its API to be more user friendly (#5215)

* Add YAML data file for site showcase (#5227)

* Publish

 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]

* Update to Gitlab pages deploy (#5243)

* Update to Gitlab pages deploy

Gitlab pages now include a Gatsby template for CI, which makes it a lot easier to add. Have updated the documentation to reflect this.

* Edit

* Update README.md (#5247)

Adding explanation about available option `offsetY` to solve issue #5061
Signed-off-by: Robin Cussol <[email protected]>

* [gatsby-source-contentful] Fix storing new sync token (#5252)

* Add https://emoji.tinder.com/ to showcase (#5257)

* Fix typo (#5241)

* Link to website in contributing.md (#5249)

* Publish

 - [email protected]
 - [email protected]
 - [email protected]

* Bump versions of packages that failed to publish earlier

* Publish

 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]

* Add top padding for tablet masthead (#5266)

* wordpress-source-plugin-tutorial (#5235)

* wordpress-source-plugin-tutorial

Not sure if I got all the code samples formatted correctly.

Still need to edit the index.js page so the <p> tags don't render!!

Then, need a screenshot of the final result without <p> tags!

* removed unnecessary backticks and corrected link to Part 7 of tutorial

* Make links relative

* Use graphql for syntax highlighting + minor copy edits

* Image Tutorial (#5236)

* Image Tutorial

Would be nice to add a screenshot of the finished result.

Eventually, a really cool image tutorial could include GIFs.

* Remove unneeded backticks around code

* Add example gif

* Fix image links

* added Gatsbygram link, fixed assumption spelling

* we --> you

* Added some more edits of my own

wasn't sure whether you wanted lines 153-155 to stay the same

* Changed back to previous lines 149-159

I accidentally deleted necessary stuff in my previous commit, so I'm just starting over

* Edited comments per Mike's suggestions

* Small tweaks

* Add site (#5268)

* readme: Add aQuICK QC landing page site

* readme: Kill old event specific page

* Quick fix for wordpress source plugin tutorial (#5276)

Fragments don't work on Graphiql

* Minor fix on wordpress source plugin tutorial (#5277)

removed typo

* Update wordpress-source-plugin-tutorial.md (#5278)

* add missing underscore to graphiql URL (#5275)

* add missing underscore to graphiql

* Update image-tutorial.md

* Update wordpress-source-plugin-tutorial.md (#5279)

* Update image-tutorial.md (#5281)

* Update source-plugin-tutorial.md (#5283)

* add missing .npmignore and .babelrc to sqip transformer (#5282)

* Publish

 - [email protected]

* Fix typos in source-plugin-tutorial (#5284)

* Add workshop-in-the-woods.com to the showcase (#5291)

* Update README.md (#5288)

* Update README.md

Missing curly bracket

* formatting

* Fix doc typo (#5294)

*  fix: chang the url of blog in readme :bug: (#5302)

* feat: :sparkles: add gatsby-new-blog plugin

* docs: update showcase :memo:

* flag importance of plugin order for prism-js vs embed-snippet (#5313)

If gatsby-remark-prism-js is declared before gatsby-remark-embed-snippet, the latter will not pick up the `embed:example.js` syntax because it is looking for an inline-code node and it will have been transformed into a p node by gatsby-remark-prism-js. This needs to be noted as this is far from obvious.

* Add manifest.webmanifest to staticFileGlobs (#5300)

Signed-off-by: Kaue Machado <[email protected]>

* Publish

 - [email protected]
 - [email protected]
 - [email protected]

* Fix post path comment (#5295)

* Fix post path

* Fix

* Expand docs for custom components (#5315)

* Expand docs for custom components

The docs for custom components only mention defining custom components in the markdown, but don't address one of the most useful aspects - that you can map generic markdown tags/elements to your own components. I've expanded the docs to point this out and added a simple example.

* Typo

* plugin-feed: Note feed xml file is production only (#5305)

Add note that the rss.xml feed is only generated in production.

* Fixing grammar around CSS Modules (#5286)

* Fix broken link to tutorial for building blog (#5273)

I don't know if it's the original article but at least it looks fairly similar

* added develop command options to use custom key and certs (#5056)

* added develop command options to use custom key and certs

* fixed typos in doc

* added condition to make sure both --key-file and --cert-file are present

* - passing https flag results in automatic https certs [devcert]
- --cert-file, --key-file, and --https flags can be used together for custom ssl
- if all flags needed for custom ssl are not present an error is displayed to the user
- if provided --cert-file and --key-file paths are not real files, node gives a rejection
- modified docs to express current behavior

* Add portfolio to the created with gatsby section (#5331)

* Documentation for images in page components #3380 (#4191)

* adding first draft

* adding info about fragments

* cleaning up language

* renaming file, this commit is for issue #3380

* technical edits on working with images in gatsby

* technical edits on working with images in gatsby

* punctuation and verb tense edits

* more punctuation and grammar

* commas

* Add new docs page to sidebar (#5339)

* New issue, feature and question template (#5274)

* Basic template for new issues

* updated issue template

* updated issue template

* Update ISSUE_TEMPLATE.md

* Update ISSUE_TEMPLATE.md

* changed bug report to the new GitHub issue template

* add feature request template

* question template

* fixed title of question and added emojis

* added RFC to question template

* Update bug_report.md

* Update feature_request.md

* Update question.md

* Typo

* Update custom-html.md (#5341)

* Update custom-html.md

grammar corrections

* Revert one change

* Actually revert that one change

* add plugin option examples (#5345)

add plugin option examples

* Remove workshop banner now that workshops have finished (#5338)

* Update url-loader (#5342)

* Update plugins.md

* [gatsby-source-contentful]: Add fallback locale support (#5328)

* Add fallback locale support

* Fix linting

* test: Fix test

* Publish

 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]

* [gatsby-source-wordpress] check if parent exists (#5373)

* [gatsby-source-filesystem] add fs error handling, bump got retry attemps count (#5375)

* [gatsby-source-filesystem] catch fs stream errors

* [gatsby-source-filesystem] bump got retries from default 2 to 5

* normalize reject payload

* Add context to query-runner error log (#5214)

* [www] Prevent image twitching in Chrome when hovering a blog index card (#5396)

* [gatsby-transformer-yaml] Update docs: GraphQL query mismatch (#5402)

GraphQL query references "value" when it should actually reference "character" as per the example output.

* [gatsby-transformer-json] Update docs: outdated Readme examples (#5403)

`{ internal: { type } }` exists but it would actually be "LettersJson" (according to my GraphiQL checks).
Seems better to just remove this, so it at least has parity with gatsby-transformer-yaml readme.

* Add "Six Reasons I Chose Gatsby" blog post (#5369)

* added  "Six Reasons I Chose Gatsby" blog post

* added site to showcase

* updated content based on review comments

* updated Gatsby links to be relative

* Fix for IE10 not loading scripts (#5404)

* Fix for IE10 not loading scripts

* Fixed duplicate declaration.

* Update example config for netlify-cms (#5405)

Added the public_folder attribute to make the assets accessible.

Also added the body field to the collection, so the html attribute of markdownRemark gets filled properly. Figuring out that the field has to be named "body" was a bit cumbersome.

https://www.netlifycms.org/docs/configuration-options/#fields

* Fix regression with prefix paths and gatsby-plugin-manifest (#5406)

as per https://github.com/gatsbyjs/gatsby/commit/69ca24750ecba8945a57f2c662cc5ca44964d76a#diff-079fdad4111264c646208511aa18a321 manifest.webmanifest should start with /

it just works (tm) when your site is flat, but when your pages are in sub directory and prefixed, its assumes your manifest files are in the subdirectory, not the root of your site (which might be prefixed).

Fixing reversion

* Remove old comment (#5407)

Code changed in #5404, this comment no longer relevant.

* Add gatsby-starter-modern (#5427)

* Publish

 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]

* Mention in building apps docs page that we use React Router under the hood (#5439)

* Add a how to add search to your website section (#5272)

* Add a how to add search to your website section

* Update adding-search.md

* Update doc-links.yaml

* Update adding-search.md

* Better restructuring

* Update doc-links.yaml

* Update adding-search.md

* Address Changes

* Rewrite docs

* Add the link before the links to stub articles

The ones ending with * are stubs

* Tidy up

* Grammar/punctuation edits and some wording edits

* Adding Headers

* Edits

* More headings

* Minor edits

* Update adding-search.md (#5448)

* regenerate yarn.lock

* temporarily disable stylus tests - need to update both tests and example sites to v2

* fix wrong conflict resolution

* [v2] update using-stylus example and re-add tests to stylus plugin (#5461)

* update stylus tests

* update using-stylus example

* specify eslint rule we want to disable

* format

* fix merge conflict remnant

* Removed unneeded imports causing no-unused-vars lint errors (#5463)

* Add stricter check for `Error:` and placeholder test (#5460)

* Publish

 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]

* [v2][www] Move layout to components folder + import Link from gatsby (#5472)

* Move layout to components folder and rename its import to be consistent

* Import Link from gatsby instead of gatsby-link

* Add preload links to end of headComponents list (#5490)

* Publish

 - [email protected]

* Don't infer types for plugin provided GQL types

* Update screenshot plugin for Gatsby v2 (#5502)

* Publish

 - [email protected]

* Simpler bundle and data loading (#5535)

* Publish

 - [email protected]

* [v2] [gatsby-plugin-offline] get exact filenames for js staticFileGlob (#5511)

* [gatsby-plugin-offline] extract exact filenames for js chunks for app and offline app shell

* format

* Don't inline webpack-runtime as this prevents the service worker from correctly updating to new version of the site (#5540)

* Publish

 - [email protected]
 - [email protected]

* [v2][www] Fix remaining lint errors (#5568)

* fix: `default-case` lint errors

* fix: `eqeqeq` lint error

* fix: `array-callback-return` lint error

* fix: `no-unused-vars` lint error

* fix: `alt-text` lint error

* Fix missing blog posts (#5539) (#5551)

Quick fix for: https://github.com/gatsbyjs/gatsby/issues/5348#issuecomment-391682881

* Add a valid entry point for the `gatsby` package (#5481)

* Fix outdated babel-code-frame import to use @babel/code-frame (#5585)

Fix #5584

Signed-off-by: Helder S Ribeiro <[email protected]>

* [v2] image processing example (#5589)

* Upgrade to use gatsby v2 and fix eslint warnings

* Fix up fonts on production build

* Add back `replaceComponentRenderer` API (#5600)

also fix bad merge on lifecycles

* Publish

 - [email protected]
 - [email protected]

* Update Contentful example site for Gatsby v2 (#5606)

* delete stray console.log

* Update babel to 7.0.0-beta.49

* Update yarn.lock

* [v2] responsive image types (#5250)

* Change image type names from resolutions to fixed

resolutions resolutions resolutions
fixed fixed fixed fixed fixed fixed

* Change image type names from sizes to fluid

sizes sizes sizes sizes
fluid fluid fluid fluid

* Continue renaming sizes to fluid

* eslint

* Include sizes as part of a fluid node

* Update snapshots

* Update resolver

* Remove references to responsiveResolution and responsiveSizes

* Rename GraphQL node types for gatsby-transformer-sharp

* Rename GraphQL node types for gatsby-source-contentful

* Update image-processing example

* fluid() should still return a sizes property

* Use unique type names

* Fix duplicate deprecation messages

* Publish

 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]

* [v2] mime dependencies (#5602)

* Recreate lockfile

* Update dependencies that depend on mime

* Move less to a peer dependency

* Move node-sass to a peer dependency

* Update lockfile

* Update README.md

* Include node-sass in the sass example site

* [v2][www] Abstracted sidebar to layout component (#5537)

* Abstracted sidebar to layout component

* Hide sidebar on mobile

* [v2] Bump gatsby-image version as #5250 is a breaking change for it (#5627)

* Publish

 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]

* [v2] Bump gatsby-image version as #5250 is a breaking change for it

* [v2][www] Move YAML link files to data (#5567)

* Move YAML link files to data

* Organize sidebar links to a subdirectory of data

* Publish

 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]

* v1.0.18-9

* v1.0.18-10

* v2.0.0-alpha.20

* revert one change from #5250, this one should use "sizes" (it doesn't use sharp transformer) (#5631)

* Publish

 - [email protected]

* [v2][www] Fix missing search sidebar for plugins/packages pages (#5550)

* Add react-instantsearch package required by plugins searchbar

* Add package searchbar to pages that require them

* Rename searchbar to plugin-searchbar

* Fix imports sidebar data

* Revert upgrade to babel-beta.49

* Publish

 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]

* Publish

 - [email protected]

* Fix a typo in Readme example (#5645)

* [v2][doc] v1 to v2 migration guide (WIP) (#5575)

* v1 to v2 migration guide doc start

* Add sidebar link to v2 migration guide

* Update README to show v1 to v2 migration guide

* Fix children type in README (#5687)

* Update redirects example for Gatsby v2 (#5681)

* [v2][gatsby-image] Deepen propTypes declaration (#5684)

* Add extensive prop types checking

* This works better and is easier to read

* Fix webp spelling

* [v2][source-contentful] Restore legacy sizes and resolutions fragments (#5678)

* [v2] Restore legacy sizes and resolutions fragments

* Reword TODO a little bit

* [v2] Update csv example (#5703)

* [v2] Update medium example (#5704)

* [v2] Update no-plugins example (#5705)

* Update no-plugins example

* update html.js to use all passed props

* format

* [v2] Update client only paths example (#5706)

* [v2] Update using-excel example (#5707)

* [WIP][v2] Edit tutorial to use emotion instead of glamorous (#5664)

* [v2] Edit tutorial part 4 to use emotion instead of glamorous

* Change heading to siteTitle as it makes more sense

* Change glamor to emotion + ran markdown formatter

* Move css inline

* part-six: change to emotion + run through format-markdown

* part-seven: add Layout to template + run format-markdown

* part-seven: add line highlight numbers to template changes

* part-seven: emotion + format-markdown + add line highlight numbers

* part-six: change sort syntax so it’s consistent with part-seven

* Remove mistakenly added line

* [v2][gatsby-transformer-sharp] restore legacy fragments (#5710)

* Publish

 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]

* [v2] Update Emotion example (#5715)

* Bump package versions

* Add react-helmet and its Gatsby plugin

* Migrate from custom html.js to react-helmet

* Edit styling method to showcase different Emotion APIs

* Add references to README

* Change gatsby-plugin-react-helmet version to next

* [v2] Update styled-components example (#5717)

* Bump package versions

* Add gatsby-plugin-react-helmet and gatsby-plugin-typography

* Add react react-dom babel-plugin-styled-components

* Remove outdated line (Gatsby hot reloads regardless of this line)

* Migrate from custom html.js to react-helmet

* Bump gatsby-plugin-typography version to next

* Flag the new example as version 2.0.0, up from 1.0.0

* Add references to README

* [v2] Migration guide updates (#5661)

* Remove yarn examples for consistency with other docs

* Add rename responsive image queries section

* Add postcss plugins section

* Remove checklist (moved to issue 3986)

* Add mixed CommonJS/ES6 section

* Link to Gatsby webpack docs

* Add node id section

* Add section: remove explicit polyfills

* Add section: Change modifyBabelrc to onCreateBabelConfig

* Add section: Change `modifyWebpackConfig` to `onCreateWebpackConfig`

* Add section:  CSS is inlined automatically

* Add introduction and small tweaks

* Correct line numbers

* Improve explanation around movement of libs to peerDependencies

* chore: minor capitalization tweak

* Add edit link

* Split peer dep updates into two sections

* Declarative headings

* Add table of contents

* Use neater Fragment syntax

* More detail on deprecation note

* Inline comments on code examples

* Add Jason's node ID query example

* Use markdown diff syntax for before / after examples

* Add 'in-progress' note about babel polyfills

* Add instructions on how to install Gatsby v2

* [gatsby] added TypeScript typings for StaticQuery component (#5666)

This should make StaticQuery calls not give out any type errors in
TypeScript. Types are intentionally made weak, as I couldn't figure out
how to correctly type any GraphQL calls here.

* [v2][gatsby-image][source-contentful] Fix sizes fields that were changed to fluid by mistake (#5714)

* Fix sizes field that was changed to fluid by mistake

* [gatsby-image] Fix sizes fields that were changed to fluid by mistake

* Update test snapshot

* [v2] compile cache dir (#5637)

* run cache-dir through babel

* fix gitignore

* watch cache-dir

* fix cache-dir linting and update json-store react lifecycle methods

* build rawfiles during watch

* Publish

 - [email protected]
 - [email protected]
 - [email protected]

* [v2] Correct inlined css upgrade guide (#5741)

v1's default html.js also inlined css https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/cache-dir/default-html.js

The change is that with mini-css-extract-plugin, we have css splitting so we handle inlining css in core as it requires understanding webpack's stats object.

* [v2] fix build with pathPrefix (#5691)

* [v2] fix build with pathPrefix

* update test

* removed __PREFIX_PATHS__

* fix test

* update lock file

* address comments

* clean

* clean

* [v2] Update styleguide example (#5712)

* Update styleguide example for v2

* Replace boundActionCreators to actions

* Use pageContext

* Fix exports

* [v2] Update redux example (#5713)

* Update redux example for v2

* Remove html.js

* Use ES6 export

* [v2] Update Emotion + PrismJS example (#5720)

* Add required packages + upgrade their versions

* Refactor layout component to v2

* Migrate from custom html.js to react-helmet

* Add references to README

* Fix typo + remove semi

* Fix typo

* Fix lint errors + remove unused console.log

* Fix mixed up blog post content

* Show proper page titles

* remove word

* remove word

* Update page loading indicator example for Gatsby v2 (#5735)

* Update using css modules example for Gatsby v2 (#5736)

* [v2] Update plugin-typescript to use Babel (#5709)

* Update plugin-typescript to use Babel

* Fix code style

* Bump the version

* Update README

* Use npm for install instructions

* Add more cheese (#5751)

* Update using-styletron example for v2 (#5749)

* fix: page renderer behavior (#5759)

* [v2] Migration guide: shorten TOC links to just the hash (#5766)

* Simplify TOC links to just the hash

* Run it through format-markdown script

* Publish

 - [email protected]
 - [email protected]
 - [email protected]

* [v2] Don't allow unknown keys on node.internal object (#5770)

* [v2] Don't allow unknown fields on node.internal object

Validate against changes like https://github.com/gatsbyjs/gatsby/pull/5557

* Document the change

* Add script for adding new owners to our NPM packages (#5768)

* [v2] Update typescript example (#5711)

* Improve the TypeScript example

* Set up linting and type checking

Tweak tsconfig.json

* Remove extraneous package

* Update using-path-prefix example for v2 (#5752)

* [v2] Update using-remark-copy-linked-file example (#5755)

* Update using-remark-copy-linked-files example for v2

* Remove react-responsive-grid

refs gatsbyjs/gatsby-starter-blog#99

* Use Layout component

* [v2] Update Sitemap example (#5767)

* [v2] Update using-glamor example (#5757)

* Update packages

* Remove unused typography packages

* Add typography.js

* eslint

* [docgen] better error handling and update to v3 (#5604)

* better error handling and update to v3

* fix rdg version:

* update doc-handler

* Update package.json

* make test more robust

* fix test

* Update no-trailing-slashes example for v2 (#5781)

* Update simple-auth example for v2 (#5782)

* Link directly to edit page (#5792)

Closes #5791

* Update wording (#5795)

* [v2] export graphql package from gatsby (#5415)

* export graphql package from gatsby

* update after sqip plugin merge

* revert weird formatting changes

* fix graphql.js packaging

* note in Breaking Changes for plugin maintainers

* fix typo

* remove graphql-type-json from plugins deps

* update setFieldsOnGraphQLNodeType docs

* update yarn.lock

* Typo

* Minor edits

* update migration guide

* Add a word

* [v2] Use kebabHash() instead of _.kebabCase() (#5532)

* Add dep `kebab-hash` to `packages/gatsby`. #4637

* Replace `_.kebabCase()` with `kebabHash()`. #4637

* Add dep `kebab-hash` to `packages/gatsby`. #4637

* Replace `_.kebabCase()` with `kebabHash()`. #4637

In the `gatsby-plugin-netlify` package.

* Bump `kebab-hash` to `0.1.2`. #4637

* Update snapshots for new path ID format. #4637

* [v2] Clarify filenames and update `sizes` to `fluid` (#5809)

[v2] Clarify filenames and update `sizes` to `fluid`

* fix: upstream fixes (#5815)

* webpack hmr path responding appropriately to env GATSBY_WEBPACK_PUBLICPATH

* make linter happy

* added public path env option for webpack (#5527)

* Publish

 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]

* Publish

 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]

* Publish

 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]
 - [email protected]

* Publish

 - [email protected]

* [v2][www] add prismjs dependency (it was moved to peerDeps in gatsby-remark-prismjs) (#5844)

* [v2][www] add prismjs dependency (it was moved to peerDeps in gatsby-remark-prismjs)

* add prismjs in examples

* [v2] Use replacementComponent directly in page-renderer (#5812)

* Run replaced component generated by replaceComponentRenderer

* Use first result as replacementComponent

* [v2][using-remark] fix build (#5852)

* [v2] re-add eslintrc after master merge (#5856)

* [v2] Fix styling for remark example (#5857)

* Include gatsby-plugin-typography

* Lint

* Update lockfile

* [v2] cleanup MiniCssExtractPlugin from develop stage (#5837)

* [v2] Update using-jss example (#5832)

* Bump package versions

* Add react react-dom react-jss

* Flag v…
  • Loading branch information
KyleAMathews authored Jun 17, 2018
1 parent 899bf5b commit 1fb19f9
Show file tree
Hide file tree
Showing 1,037 changed files with 25,507 additions and 30,604 deletions.
57 changes: 57 additions & 0 deletions .babel-preset.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
const r = m => require.resolve(m)

function preset(context, options = {}) {
const { browser = false, debug = false } = options
const { NODE_ENV, BABEL_ENV } = process.env

const PRODUCTION = (BABEL_ENV || NODE_ENV) === "production"

const browserConfig = {
useBuiltIns: false,
targets: {
browsers: PRODUCTION
? [`last 4 versions`, `safari >= 7`, "ie >= 9"]
: [`last 2 versions`, `not ie <= 11`, `not android 4.4.3`],
},
}

const nodeConfig = {
targets: {
node: PRODUCTION ? 6.0 : "current",
},
}

return {
presets: [
[
r("@babel/preset-env"),
Object.assign(
{
loose: true,
debug: !!debug,
useBuiltIns: "entry",
shippedProposals: true,
modules: "commonjs",
},
browser ? browserConfig : nodeConfig
),
],
[r("@babel/preset-react"), { development: !PRODUCTION }],
r("@babel/preset-flow"),
],
plugins: [
r("@babel/plugin-proposal-class-properties"),
r("@babel/plugin-proposal-optional-chaining"),
[
r("@babel/plugin-transform-runtime"),
{
// we are only polyfilling the node environment
// so we need to enable the runtime replacements for the browser preset
polyfill: !!browser,
},
],
],
}
}

module.exports = preset
12 changes: 0 additions & 12 deletions .babelrc

This file was deleted.

64 changes: 11 additions & 53 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -1,57 +1,15 @@
const r = m => require.resolve(m)
let ignore = [`**/dist`]

function preset(context, options = {}) {
const { browser = false, debug = false } = options
const { NODE_ENV, BABEL_ENV } = process.env

const PRODUCTION = (BABEL_ENV || NODE_ENV) === "production"

const browserConfig = {
useBuiltIns: false,
targets: {
browsers: PRODUCTION
? [`last 4 versions`, `safari >= 7`, "ie >= 9"]
: [`last 2 versions`, `not ie <= 11`, `not android 4.4.3`],
uglify: PRODUCTION,
},
}
// Jest needs to compile this code, but generally we don't want this copied
// to output folders
if (process.env.NODE_ENV !== `test`) {
ignore.push(`**/__tests__`)
}

const nodeConfig = {
targets: {
node: PRODUCTION ? 4.0 : "current",
},
}
const presetAbsPath = require(`path`).join(__dirname, '.babel-preset.js')

return {
presets: [
[
r("babel-preset-env"),
Object.assign(
{
loose: true,
debug: !!debug,
useBuiltIns: true,
modules: "commonjs",
},
browser ? browserConfig : nodeConfig
),
],
r("babel-preset-react"),
r("babel-preset-flow"),
],
plugins: [
r("babel-plugin-transform-object-rest-spread"),
[
r("babel-plugin-transform-runtime"),
{
// we are only polyfilling the node environment
// so we need to enable the runtime replacements for the browser preset
polyfill: !!browser,
},
],
r(`babel-plugin-transform-flow-strip-types`),
],
}
module.exports = {
sourceMaps: true,
presets: [presetAbsPath],
ignore,
}

module.exports = preset
7 changes: 4 additions & 3 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
[ignore]
.*/test/.*
.*/node_modules/documentation/.*
.*/node_modules/typography/.*
.*/node_modules/emotion/.*
.*/node_modules/fbjs/.*
.*/node_modules/jss/.*
.*/node_modules/preact/.*
.*/node_modules/react-side-effect/.*
.*/node_modules/styled-components/.*
.*/node_modules/preact/.*
.*/node_modules/jss/.*
.*/node_modules/typography/.*
.*/www/.*
.*/examples/.*
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ about: Usage question or discussion about Gatsby.

### Environment (if relevant)

- Gatsby version (`npm list gatsby`):
- gatsby-cli version (`gatsby --version`):
- Node.js version:
- Operating System:
<!--
Required. Run `gatsby info --clipboard` in your gatsby project directory and paste its contents here.
Not working? You may need to update your global gatsby-cli - `npm install -g gatsby-cli`
-->

### File contents (if changed)

Expand Down
12 changes: 12 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!--
Please choose the correct branch for your pull request:
* `master` branch for Gatsby version 2 bug fixes
* `master` branch for any new features (these will be released in the Gatsby v2 betas)
* `v1` branch for updates to the `www` and `docs` directories
* `v1` branch for Gatsby version 1 bug fixes
Note: We will *not* accept new features for Gatsby v1, only bug fixes, documentation and updates to gatsbyjs.org.
Learn more about contributing: https://www.gatsbyjs.org/docs/how-to-contribute/
-->
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,5 @@ node_modules/
*.sw*

.serverless/
yarn.lock
package-lock.json
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:
- yarn run bootstrap
script:
- yarn test
- yarn danger ci

- stage: gatsbygram ui tests
language: node_js
Expand Down
12 changes: 12 additions & 0 deletions Breaking Changes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
- Remove postcss plugins (cssnext, cssimport) from default css loader config
- boundActionCreators => actions
- pathContext => pageContext
- Source & transformer plugins now use UUIDs for ids. If you used glob or regex to query nodes by id then you'll need to query something else.
- Mixed commonjs/es6 modules fail
- Remove explicit polyfill and use the new builtins: usage support in babel 7.
- Changed `modifyBabelrc` to `onCreateBabelConfig`
- Changed `modifyWebpackConfig` to `onCreateWebpackConfig`
- Inlining CSS changed — remove it from any custom html.js as done automatically by core now.
- Manually install `react` and `react-dom`, along with any dependencies required by your plugins.
- Layouts have been removed. To achieve the same behavior as v1, you have to wrap your pages and page templates with your own Layout component. Since Layout is a non-page component, making query has to be done with StaticQuery.
- `graphql` package is exported from `gatsby`. If you use `setFieldsOnGraphQLNodeType` node API, please import graphql types from `gatsby/graphql` to prevent `Schema must contain unique named types but contains multiple types named "<typename>"` errors.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ export const pageQuery = `
}
}
}
`;
`
```

You must now write:
Expand All @@ -545,7 +545,7 @@ export const pageQuery = graphql`
}
}
}
`;
`
```

## [1.0.0-alpha10] - 2016-11-17
Expand Down
24 changes: 22 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,27 @@

<img alt="Gatsby" src="https://www.gatsbyjs.org/monogram.svg" width="100">

# Gatsby
# Gatsby V2 Beta

⚛️📄🚀 Blazing-fast static site generator for React
⚛️📄🚀 Blazing-fast site generator for React

**NOTE:** This branch is the beta version of Gatsby V2. You can find documentation at [next.gatsbyjs.org](https://next.gatsbyjs.org/).

For `gatsby@1`, please see [the v1 branch](https://github.com/gatsbyjs/gatsby/tree/v1).

**Are you using V1 and want to try upgrading and help prepare Gatsby for v2? Check out [our V1 => V2 migration guide](https://next.gatsbyjs.org//docs/migrating-from-v1-to-v2/).**

**How are pull requests being handled during the v2 beta?**

The following policy will be in place during the v2 beta:

- We will only accept _bug fixes_ for Gatsby v1. Any PRs opened against v1 that are not bug fixes will be closed

- If the bug fix is applicable to v2, we will open an additional issue to track porting the change to v2

- All _new features_ should be opened as pull requests against v2 (the `master` branch)

We're using this policy as the Gatsby team currently spends a significant amount of time maintaining two active branches - the v1 branch and the v2 branch - we'd like to limit this work to focus on getting v2 released and start working on oft-requested new features like schema snapshots and schema stitching.

## Showcase

Expand Down Expand Up @@ -235,6 +253,8 @@ Websites built with Gatsby:

**[View the docs on gatsbyjs.org](https://www.gatsbyjs.org/docs/)**

[Migrating from v1 to v2?](https://www.gatsbyjs.org/docs/migrating-from-v1-to-v2/)

[Migrating from v0 to v1?](https://www.gatsbyjs.org/docs/migrating-from-v0-to-v1/)

[v0 docs](https://github.com/gatsbyjs/gatsby/blob/v0.12.48/docs/index.md)
Expand Down
8 changes: 8 additions & 0 deletions cds-takeaways.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- preload at top of page for resources ala flipkart
- marketing points — cost of aquisition, boosts from switching
to PWA.
- sites to copy — NASA website + polymer shop but for Packard cars
- On GraphQL errors — print the query plus where it came from and give
them the link to debug it in GraphiQL
- AggressiveSplitPlugin — limit max chunk size to 250kb.
- SW render-dom-stream and stream HTML to browser.
2 changes: 0 additions & 2 deletions dangerfile.js

This file was deleted.

Loading

0 comments on commit 1fb19f9

Please sign in to comment.