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

1.0 #852

Closed
wants to merge 433 commits into from
Closed

1.0 #852

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
433 commits
Select commit Hold shift + click to select a range
bd2aa99
Merge branch '1.0' into unist-graphql
KyleAMathews Nov 21, 2016
ec7cd4e
Initial conversion to use Lerna
KyleAMathews Nov 21, 2016
eff1c21
Try Prata for header typeface (#563)
KyleAMathews Nov 28, 2016
509175e
Initial commit of multiple interlocking changes
KyleAMathews Dec 1, 2016
0a0b854
Add initial set of query operators to connections
KyleAMathews Dec 6, 2016
31aa2e4
Fix sorting for fields in sub-objects
KyleAMathews Dec 6, 2016
c4be0fb
Create connection field to pull out unique values for a field
KyleAMathews Dec 6, 2016
84b54c1
Don't flatten arrays for enum values
KyleAMathews Dec 6, 2016
12c8556
Ignore built tests
KyleAMathews Dec 6, 2016
749cde7
Use flatten to extract field examples
KyleAMathews Dec 6, 2016
a35d613
Bootstrap lerna before running tests
KyleAMathews Dec 6, 2016
8c700c2
Add groupBy field to connections
KyleAMathews Dec 7, 2016
0d54c31
Ignore compiled gatsby-node.js files
KyleAMathews Dec 9, 2016
a02705f
Copy referenced files/images from markdown files to public directory
KyleAMathews Dec 9, 2016
cb56344
Prototype way to create links between node types
KyleAMathews Dec 9, 2016
e0c7a4d
Restore correct .npmignores
KyleAMathews Dec 9, 2016
7683637
Add script for publishing canaries
KyleAMathews Dec 9, 2016
444221c
Just use relative links for files/images in markdown
KyleAMathews Dec 9, 2016
ef03495
Autogen GraphQL types from AST types
KyleAMathews Dec 27, 2016
89f2fc2
Update dependencies for gatsby-source-filesystem + gen hash for all f…
KyleAMathews Dec 27, 2016
77f70d8
Various markdown experiments — most likely to be moved to plugins
KyleAMathews Dec 27, 2016
8d5eba2
Define template file format as 'template-'
KyleAMathews Dec 27, 2016
60cf1d4
Make bootstrap more robust
KyleAMathews Dec 27, 2016
03dafb2
refactor
KyleAMathews Dec 27, 2016
df503d0
Throw error if site doesn't have html.js
KyleAMathews Dec 27, 2016
9d0ae6e
Temp way to load images in dev
KyleAMathews Dec 27, 2016
1e150d2
Update yarn.lock
KyleAMathews Dec 27, 2016
9f20185
Init support for image manipulation with Sharp
KyleAMathews Dec 27, 2016
1f41853
Extract out image processing to util package gatsby-sharp
KyleAMathews Dec 28, 2016
5653515
Always lowercase extensions (this is safe?)
KyleAMathews Dec 28, 2016
00fcfe9
Add start to new module which gens responsive images for markdown files
KyleAMathews Dec 28, 2016
e51dc4f
Add plugins to modify remark ast
KyleAMathews Dec 30, 2016
94e1fc3
Add support for async/await to default .babelrc
KyleAMathews Jan 2, 2017
245d29e
Just use root .babelrc
KyleAMathews Jan 2, 2017
c174c5c
Add functions/graphql fields to generate responsive sizes/resolutions…
KyleAMathews Jan 2, 2017
239ee38
Update dependencies
KyleAMathews Jan 2, 2017
4665124
Add .babelrc to gatsby so it can compile react
KyleAMathews Jan 2, 2017
0b9c105
Fix small errors
KyleAMathews Jan 2, 2017
a310916
Remove leftover code from 0.x
KyleAMathews Jan 3, 2017
2e7707b
Disable api-runner-browser until can refactor
KyleAMathews Jan 3, 2017
ef926ac
remove unused flow interfaces
KyleAMathews Jan 3, 2017
da03570
Debugging
KyleAMathews Jan 3, 2017
7265d52
Remove some testing code
KyleAMathews Jan 3, 2017
c0e2403
Better label
KyleAMathews Jan 3, 2017
703baa9
Typo fix
KyleAMathews Jan 3, 2017
901be86
Just treat the site's gatsby-x files as another plugin
KyleAMathews Jan 5, 2017
90ad60b
Find which plugins implement browser/ssr apis and write this out to I…
KyleAMathews Jan 5, 2017
cbd7931
Check if gatsby-node.js exists before requiring it
KyleAMathews Jan 5, 2017
c2d725f
Add initial version of graphql-skip-limit
KyleAMathews Jan 5, 2017
49b15be
Use 'quality' arg for jpeg&png and account for height arg
KyleAMathews Jan 11, 2017
3e009a3
Add classes to markdown responsive images
KyleAMathews Jan 11, 2017
3597013
Better method for creating excerpt for markdown bodies
KyleAMathews Jan 11, 2017
39786dc
Add two new ways to link fields to types
KyleAMathews Jan 11, 2017
3b6f655
Add gatsby-parser-yaml
KyleAMathews Jan 11, 2017
64d3ce7
Memoize base64 image creation
KyleAMathews Jan 11, 2017
4defb10
Warn if image width is smaller than what's requested
KyleAMathews Jan 11, 2017
ae38f2d
cleanups
KyleAMathews Jan 12, 2017
4351108
Add plugin for Glamor
KyleAMathews Jan 12, 2017
6e55685
Add new remark plugin to make iframe embeds responsive
KyleAMathews Jan 12, 2017
fdcf888
Add smartypants plugin for remark
KyleAMathews Jan 12, 2017
e61cadf
Enable a few more options for remark parsing, footnotes and pedantic
KyleAMathews Jan 12, 2017
c2f187c
Treat quality as the lower-bound for png
KyleAMathews Jan 12, 2017
4bc1452
Add support for remark plugins to modify src before parsing
KyleAMathews Jan 12, 2017
68e8f9a
Add initial version of a gatsby-link component which prefetches compo…
KyleAMathews Jan 12, 2017
4042fd0
Add missing index.js
KyleAMathews Jan 12, 2017
e814ddf
Small fixes
KyleAMathews Jan 12, 2017
24b9cc3
Remove noisy console.log
KyleAMathews Jan 13, 2017
a2bf086
Handle when no plugin modifies the babelrc
KyleAMathews Jan 13, 2017
696c2e3
On errors generating HTML, return before deleting the render-page.js
KyleAMathews Jan 13, 2017
930a4aa
Just copy gifs as Sharp can't process them
KyleAMathews Jan 13, 2017
bf7ce71
Add gatsby-plugin-google-analytics
KyleAMathews Jan 13, 2017
c061d10
Pass options to browser/ssr plugins
KyleAMathews Jan 13, 2017
69d037f
Bug fixes for google analytics/api-runner-browser
KyleAMathews Jan 13, 2017
5b0191b
Add gatsby-typegen-remark-autolink-headers
KyleAMathews Jan 18, 2017
3b0066c
Allow subplugins to use APIs in gatsby-*
KyleAMathews Jan 18, 2017
74cc553
Don't use express.static as can't filter out HTML files
KyleAMathews Jan 18, 2017
990d35b
Simplify image processing queue
KyleAMathews Jan 19, 2017
899d713
Add linkPrefix to links when activated
KyleAMathews Jan 19, 2017
a515c4c
Pass linkPrefix around and small changes
KyleAMathews Jan 19, 2017
ef5273b
Add publish-canary script
KyleAMathews Jan 19, 2017
7c86b91
Add missing dependency
KyleAMathews Jan 20, 2017
e3858f3
Up image processing concurency for slightly better CPU utilization
KyleAMathews Jan 20, 2017
268aa2c
Fix copy/paste error
KyleAMathews Jan 20, 2017
7c01ebf
Add README for google analytics plugin
KyleAMathews Jan 20, 2017
1085c13
Initial commit of GatsbyGram
KyleAMathews Jan 22, 2017
4e4f53f
Self-host our font
KyleAMathews Jan 24, 2017
18ab689
Move concurrency back to 1 — most files have multiple transforms
KyleAMathews Jan 24, 2017
eeea77f
Sometimes results can be false so only check for undefined
KyleAMathews Jan 24, 2017
ce276e7
Add API to override shouldUpdateScroll
KyleAMathews Jan 24, 2017
11a846c
Add args to date fields for fromNow and difference calculation
KyleAMathews Jan 24, 2017
f8f11d4
Send 404 errors for files in development
KyleAMathews Jan 24, 2017
2ceff12
Use all babylon parse plugins
KyleAMathews Jan 24, 2017
96d7a80
Add new gatsby-parser-json package
KyleAMathews Jan 24, 2017
79a528d
Include the glamor babel-hoist plugin
KyleAMathews Jan 24, 2017
3757e4a
Pass develop-html to plugins
KyleAMathews Jan 24, 2017
f19f649
Add gatsby-plugin-preact
KyleAMathews Jan 24, 2017
3539e8b
Attention strategy is apparently faster & better
KyleAMathews Jan 24, 2017
a5e523b
Didn't need to invert the aspect ratio
KyleAMathews Jan 24, 2017
9a073a0
Only return defaultReturn if it's set
KyleAMathews Jan 24, 2017
9e7a535
Reverse aspect ratio change
KyleAMathews Jan 24, 2017
6b60b3c
Support object embeds as well as iframe
KyleAMathews Jan 25, 2017
e7a5f8a
Better to err on under than over for size to reduce image size
KyleAMathews Jan 25, 2017
ee2cc7e
Make deciding to inline woff2 files an explicit decision
KyleAMathews Jan 25, 2017
5a808e5
Update website to latest Gatsby + update typography/colors
KyleAMathews Jan 27, 2017
c83a144
update website building instructions
KyleAMathews Jan 27, 2017
cd0228b
Bump desktop base size a bit so more readable
KyleAMathews Jan 28, 2017
18e3c08
Also disable ligatures on ios
KyleAMathews Jan 28, 2017
fabe233
srcset width has to use ints
KyleAMathews Feb 1, 2017
8ca6d25
Didn't end up using this package
KyleAMathews Feb 2, 2017
5efcfde
Raise the bar slightly for a module to be included in the commons chunk
KyleAMathews Feb 2, 2017
c249aef
Shrink body + header font sizes somewhat
KyleAMathews Feb 3, 2017
03bff6a
Make inline code use same styles as pre code blocks
KyleAMathews Feb 3, 2017
9711b0d
Border on inline code too much contrast
KyleAMathews Feb 3, 2017
f125dfb
offsetY not always set as an option
KyleAMathews Feb 4, 2017
dc621b0
Various updates to the gatsby website
KyleAMathews Feb 4, 2017
a764a59
Don't use node-glob for finding files, recursive-readdir is much much…
KyleAMathews Feb 4, 2017
6ffa976
Add or update package READMEs
KyleAMathews Feb 4, 2017
3f33af1
Update Gatsby packages
KyleAMathews Feb 4, 2017
68a54ff
Copy edit
KyleAMathews Feb 4, 2017
59fc20d
Copy edit
KyleAMathews Feb 4, 2017
2a26b5f
Copy edits
KyleAMathews Feb 4, 2017
900e94a
Pull out html-styles component into new package gatsby-inline-css
KyleAMathews Feb 6, 2017
f46304a
Rename gatsby-sharp to gatsby-plugin-sharp as it is a plugin
KyleAMathews Feb 6, 2017
e642a0e
Update gatsby website for latest canary
KyleAMathews Feb 6, 2017
3f3a1c0
Add gatsby-inline-css README
KyleAMathews Feb 6, 2017
3e77155
Update yarn.lock
KyleAMathews Feb 6, 2017
e083703
Set code block's language to jsx for React components
KyleAMathews Feb 6, 2017
3e34137
Set the path of the public directory in webpack for gatsby-inline-css
KyleAMathews Feb 6, 2017
62ce0be
update website to latest canary
KyleAMathews Feb 6, 2017
5b6024a
Use forked version of library for now
KyleAMathews Feb 6, 2017
a014b2d
Stop trying to use inlining css component for now
KyleAMathews Feb 6, 2017
c381d08
Remove failed experiment gatsby-inline-css
KyleAMathews Feb 6, 2017
c623e1c
Stop using exiftool as it's very slow compared to using native node.j…
KyleAMathews Feb 6, 2017
f047312
Update website
KyleAMathews Feb 6, 2017
8321a46
Use JSX for code block
KyleAMathews Feb 7, 2017
3ef6ba1
Merge branch '1.0' into unist-graphql
KyleAMathews Feb 7, 2017
419f75b
Merge pull request #662 from gatsbyjs/unist-graphql
KyleAMathews Feb 7, 2017
9400b8a
Prettier conversion (#664)
KyleAMathews Feb 7, 2017
b1e9a06
v1.0.0-alpha11
KyleAMathews Feb 7, 2017
ba3eba1
Add publish-next command
KyleAMathews Feb 7, 2017
c553e57
Merge branch '1.0' of github.com:gatsbyjs/gatsby into 1.0
KyleAMathews Feb 7, 2017
a0ef09f
Add theme color (#665)
KyleAMathews Feb 7, 2017
6c8e8f5
Copy edits
KyleAMathews Feb 7, 2017
215f626
Update GatsbyGram to Alpha11
KyleAMathews Feb 8, 2017
285c469
Restrict width of image post so last row w/ < 3 posts aren't large
KyleAMathews Feb 8, 2017
ebf51c4
Ensure the code language is lowercase
KyleAMathews Feb 8, 2017
d701670
Don't show hover state on mobile (if touched)
KyleAMathews Feb 8, 2017
eee2a95
Fix up header on small screens for GatsbyGram
KyleAMathews Feb 8, 2017
c54231e
Fix wildly updating posts count bug on mobile
KyleAMathews Feb 8, 2017
206e2de
Add script to build gatsbygram site on Netlify (#667)
KyleAMathews Feb 9, 2017
5079957
Add favicon, meta description, preload fonts
KyleAMathews Feb 9, 2017
49f7adc
Update README
KyleAMathews Feb 9, 2017
2663ade
Add Google Analytics to GatsbyGram
KyleAMathews Feb 9, 2017
6704345
Wait for the browser to finish rendering before scrolling
KyleAMathews Feb 10, 2017
91b8040
WIP: Website UI/IA updates (#672)
KyleAMathews Feb 14, 2017
d0ccb34
Run some code through Prettier 0.17
KyleAMathews Feb 14, 2017
bdc68bf
Always use gatsby-link
KyleAMathews Feb 17, 2017
45b3627
Add Offline and Manifest plugin (#687)
KyleAMathews Feb 22, 2017
8dc728b
v1.0.0-alpha12
KyleAMathews Feb 22, 2017
ae5ef29
Add READMEs for the offline & manifest plugins (#689)
KyleAMathews Feb 22, 2017
afb5c87
Copy Instagram and don't use camelcase
KyleAMathews Mar 1, 2017
36b8190
Small tweaks + add an about page (#701)
KyleAMathews Mar 3, 2017
553f76d
Add Gatsbygram case study and code for blog (#707)
KyleAMathews Mar 9, 2017
b5eda0f
Fix publish date
KyleAMathews Mar 9, 2017
9dec83e
Game time decision — don't add date to url
KyleAMathews Mar 9, 2017
62e846e
Update post with new webpagetest results + suggestions from Addy (#713)
KyleAMathews Mar 10, 2017
893fa98
Quick typo fix in README (#714)
tonyxiao Mar 11, 2017
00dd0e0
Correct sizes syntax 😅
KyleAMathews Mar 11, 2017
ccd42c2
Update glamor to v3 and inlined styles (#720)
KyleAMathews Mar 14, 2017
6b4dca2
Move headComponents higher
KyleAMathews Mar 14, 2017
4ba57c8
Move webpack manifest to after body but before loading other scripts
KyleAMathews Mar 14, 2017
793896c
Up sites to latest canary
KyleAMathews Mar 14, 2017
c9778da
Add prettier (#722)
KyleAMathews Mar 15, 2017
4af3700
User .babelrc files should be merged with defaults not override it
KyleAMathews Mar 15, 2017
b97941e
Up to latest canary
KyleAMathews Mar 15, 2017
afbe7b1
Correct smartphone model
KyleAMathews Mar 16, 2017
c005d79
Small changes to gatsbygram case study
KyleAMathews Mar 16, 2017
4124c5a
Use eslint-plugin-prettier instead of old messy airbnb based config
KyleAMathews Mar 16, 2017
dfc40de
Let users of gatsby-plugin-offline override default options
KyleAMathews Mar 17, 2017
b60aca4
Adds preferDefault helper to generated scripts (#725)
noahlange Mar 18, 2017
d86b873
Update snapshot + fix code error (#726)
KyleAMathews Mar 18, 2017
547467c
Check that path is relative as otherwise can't link to a file
KyleAMathews Mar 20, 2017
f88f64e
Fixing what looks like a copy-paste oversight. (#734)
Mar 20, 2017
3d7a5eb
Allow mapping from an array to another node type (#737)
KyleAMathews Mar 21, 2017
e4db6cb
1.0 fix windows scripts (#741)
fabien0102 Mar 21, 2017
41c5ce6
Adds support for arbitrary compile-to-JS languages (#732)
noahlange Mar 21, 2017
b61b05c
Allow remark headings to be queried by level (#738)
jamiebuilds Mar 21, 2017
508537e
Contributing Guide for 1.0 (#727)
Mar 21, 2017
b3dbfd2
Tweak contributing.md (#742)
KyleAMathews Mar 21, 2017
1b15986
Use minChunks callback function to ensure framework code in commons.j…
KyleAMathews Mar 21, 2017
9680770
Run lerna bootstrap on postinstall (#735)
jamiebuilds Mar 21, 2017
bc8d810
Remove yarn.lock from packages as they get out of date easily and not…
KyleAMathews Mar 21, 2017
5e425f6
Adds plugin support for CoffeeScript 2.x. (#745)
noahlange Mar 21, 2017
1b1c742
Remove yarn.lock
KyleAMathews Mar 21, 2017
b800590
Adds plugin support for TypeScript. (#747)
noahlange Mar 21, 2017
545e4a0
Merge branch '1.0' of github.com:gatsbyjs/gatsby into 1.0
KyleAMathews Mar 21, 2017
4f30010
Add two new plugins to list
KyleAMathews Mar 21, 2017
ca84c46
updates on how-to-contribute page (#751)
m4rrc0 Mar 23, 2017
92a8af8
eslint/prettier changes
KyleAMathews Mar 23, 2017
e1f27e4
Remove extra slash when adding a prefix
KyleAMathews Mar 23, 2017
90f8b08
selector isn't always set
KyleAMathews Mar 24, 2017
58c3990
Add guide for prefixing a site's paths (#753)
KyleAMathews Mar 24, 2017
fb347ff
[1.0] add support for 404 pages (#755)
KyleAMathews Mar 25, 2017
ca1e2da
Check if there's a 404 page before adding its route
KyleAMathews Mar 27, 2017
dbf1a59
Add gatsby dev cli (#758)
KyleAMathews Mar 27, 2017
bd3e428
Update dependencies for sites
KyleAMathews Mar 27, 2017
10141fd
Fix 404 fallback route for production
KyleAMathews Mar 27, 2017
20afce7
Update dependencies for sites
KyleAMathews Mar 27, 2017
ab76608
404 docs (#759)
KyleAMathews Mar 27, 2017
7ea9ebb
Update flow, remove dead code (#760)
KyleAMathews Mar 27, 2017
82ff66a
Fix gatsby dev (#761)
KyleAMathews Mar 28, 2017
80e93d6
Fix gatsby dev round #2 (#762)
KyleAMathews Mar 28, 2017
699f4ea
Specify that people need to install canary tag of gatsby-dev-cli (#763)
KyleAMathews Mar 28, 2017
351006c
Add trailing slash when creating script tags for prefixed sites
KyleAMathews Mar 28, 2017
5854cb7
[1.0] improve gatsby-dev-cli (#766)
fabien0102 Mar 29, 2017
1abb2b9
[1.0] Fix gatsby-dev-cli regex for windows (#767)
fabien0102 Mar 29, 2017
1cd25ea
[1.0] fix windows (#771)
fabien0102 Apr 3, 2017
f3143ec
Correct gatsby-plugin-glamor README (#774)
djm Apr 3, 2017
4899b20
Clarify relationship between css and default style prop
KyleAMathews Apr 3, 2017
dcde7f3
Copy edits + add link to style prop docs (#776)
KyleAMathews Apr 4, 2017
a034e91
[1.0] Fix windows paths (#781)
fabien0102 Apr 10, 2017
1fbc633
Use Yarn to install packages by default (#790)
donysukardi Apr 11, 2017
f186b91
[1.0] gatsbygram gravatar (#792)
fabien0102 Apr 11, 2017
4b15bd2
Use Redux for internal state plus add prototype for data hot reloadin…
KyleAMathews Apr 11, 2017
7b0bf37
Update gatsbygram case study for latest canaries (#793)
KyleAMathews Apr 12, 2017
af1aed8
Upgrade Prettier to 1.0 (#797)
KyleAMathews Apr 13, 2017
27acf64
Add a pre-commit hook to run prettier fixes #800 (#805)
KyleAMathews Apr 14, 2017
d26e24f
fix typo in error message
KyleAMathews Apr 15, 2017
1206e21
Update tests (#813)
KyleAMathews Apr 17, 2017
718e22a
[1.0] Change directory structure (#802)
fabien0102 Apr 18, 2017
c95be69
Don't set a root. Use normal node.js module resolution rules
KyleAMathews Apr 18, 2017
e7ad98d
[1.0] Refactor data layer (#818)
KyleAMathews Apr 19, 2017
2097bff
Update the readme for gatsby-dev-cli (#820)
0x80 Apr 19, 2017
9ffb1fa
[1.0] Fix duplicate node (#822)
fabien0102 Apr 19, 2017
814a03f
Update gatsby dev readme (#823)
KyleAMathews Apr 19, 2017
d54b34f
Fix id generation for JSON/YAML nodes + more tests (#824)
KyleAMathews Apr 19, 2017
7da5ef4
Update gatsby dev readme (#825) (#825)
0x80 Apr 19, 2017
b0ce38b
Link directly to the README page
KyleAMathews Apr 19, 2017
5d7bcdc
Allow use of babel options (#830)
0x80 Apr 20, 2017
0e9731b
Don't filter boolean values (#829)
fabien0102 Apr 20, 2017
f850a6c
[1.0 WIP Query runner refactor (#828)
KyleAMathews Apr 21, 2017
8b87236
Minor updates for Lerna (#834)
KyleAMathews Apr 21, 2017
777ca60
Small bug fixes (#835)
KyleAMathews Apr 21, 2017
8031a00
[1.0] revert change to lerna npm scripts, run still used for executin…
KyleAMathews Apr 22, 2017
ba62b14
[1.0] improve typescript config (#848)
fabien0102 Apr 24, 2017
3ca0478
Move remotedev server to npm script instead of always starting (#849)
KyleAMathews Apr 24, 2017
ed52c48
Only setup the integration with Redux devtools if dev sets env var (#…
KyleAMathews Apr 24, 2017
897a398
Update packages
KyleAMathews Apr 24, 2017
cf0fcba
v1.0.0-alpha13
KyleAMathews Apr 24, 2017
84b2c91
Update example sites to alpha13
KyleAMathews Apr 24, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
16 changes: 11 additions & 5 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
{
"presets": [
["env", {
"targets": {
"node": 4.0
},
}],
'react',
'es2015',
'stage-0',
'flow',
],
"plugins": [
'transform-flow-strip-types',
'lodash',
],
"transform-runtime",
"transform-object-rest-spread",
"transform-async-to-generator",
"transform-flow-strip-types",
]
}
67 changes: 19 additions & 48 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,58 +1,29 @@
{
"parser": "babel-eslint",
"extends": [
"eslint-config-airbnb",
"plugin:ava/recommended"
"google",
"plugin:flowtype/recommended",
"plugin:react/recommended",
"prettier",
"prettier/flowtype",
"prettier/react"
],
"plugins": [
"ava",
"flowtype",
"flow-vars"
"react",
],
"rules": {
"indent": [2, 2, {"SwitchCase": 1}],
"no-console": [0],
"func-names": [0],
"semi": [2, "never"],
"no-extra-semi": [2],
"space-before-function-paren": [2, "always"],
"no-else-return": [0],
"space-infix-ops": [0],
"react/prefer-es6-class": [0],
"react/prefer-stateless-function": [0],
"no-underscore-dangle": ["error", { "allow": ["_config"] }],
"import/no-unresolved": [0],
"global-require": [0],
"no-duplicate-imports": [0],
/*"flowtype/require-parameter-type": 1,*/
/*"flowtype/require-return-type": [*/
/*1,*/
/*"always",*/
/*{*/
/*"annotateUndefined": "never"*/
/*}*/
/*],*/
/*"flowtype/space-after-type-colon": [*/
/*1,*/
/*"always"*/
/*],*/
/*"flowtype/space-before-type-colon": [*/
/*1,*/
/*"never"*/
/*],*/
/*"flowtype/type-id-match": [*/
/*0,*/
/*"^([A-Z][a-z0-9]+)+Type$"*/
/*],*/
/*"flow-vars/define-flow-type": 1,*/
/*"flow-vars/use-flow-type": 1,*/
"parserOptions": {
"ecmaVersion": 2016,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"globals": {
"__PREFIX_LINKS__": true,
"env": {
"es6": true,
"node": true
},
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": true
}
"rules": {
"valid-jsdoc": [0],
"require-jsdoc": [0],
}
}
26 changes: 6 additions & 20 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -1,24 +1,10 @@
[version]
0.27.0
0.42.0

[ignore]
.*/node_modules/.*
.*/test/.*

[include]
node_modules

[libs]
./interfaces/
node_modules/iflow-debug/index.js.flow
node_modules/iflow-lodash/index.js.flow
node_modules/iflow-react-router/index.js.flow

[options]
esproposal.class_instance_fields=enable
esproposal.class_static_fields=enable

strip_root=true

suppress_comment= \\(.\\|\n\\)*\\$FlowFixMe
suppress_comment= \\(.\\|\n\\)*\\$FlowIssue
.*/node_modules/typography/.*
.*/node_modules/fbjs/.*
.*/node_modules/react-side-effect/.*
.*/www/.*
.*/examples/.*
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ bin/published.js
test/**/public
.gatsby-context.js
.DS_Store
public/
node_modules/
.cache/
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6
12 changes: 12 additions & 0 deletions .pre-commit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh
jsfiles=$(git diff --cached --name-only --diff-filter=ACM | grep '\.jsx\?$' | tr '\n' ' ')
[ -z "$jsfiles" ] && exit 0

diffs=$(node_modules/.bin/prettier -l $jsfiles)
[ -z "$diffs" ] && exit 0

echo "here"
echo >&2 "Javascript files must be formatted with prettier. Please run:"
echo >&2 "node_modules/.bin/prettier --write "$diffs""

exit 1
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
language: cpp
sudo: false
env:
- export NODE_VERSION="0.12"
- export NODE_VERSION="4"
- export NODE_VERSION="6"
os:
Expand Down
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Place your settings in this file to overwrite the default settings
{
"prettier.semi": false,
"prettier.trailingComma": "es5",
"editor.formatOnSave": true
}
161 changes: 161 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
# Change Log

## [1.0.0-alpha10] - 2016-11-17
### Added
- Did the intitial build of the new gatsbyjs.org! It's in the `www`
subdirectory on the 1.0 branch and is built on each push! That's my
kind of integration testing :-) You can see the early version of the
site at https://gatsbyjs.netlify.com/. PRs welcome!
- Added <link preload> for page scripts. This speeds up loading scripts
slightly by telling the browser to start downloading the scripts when
the HTML first starts being parsed instead of when the browser reaches
the end. This is especially helpful for large HTML documents on slow
mobile networks. [PR](https://github.com/gatsbyjs/gatsby/pull/558)

## Changed
- Use namedmodulesplugin instead of recordsPath for ensuring
deterministic builds and long-term cachability. The [previous PR adding
support for recordsPath](https://github.com/gatsbyjs/gatsby/pull/533)
proved unpleasant as you had to build locally and commit the outputted
records.json which was confusing and annoying.
[PR](https://github.com/gatsbyjs/gatsby/pull/559)

## [1.0.0-alpha9] - 2016-11-04
### Added
- Put the routes module on `window` to support experimental idea. See
this issue for more](https://github.com/gatsbyjs/gatsby/issues/537).
[commit](https://github.com/gatsbyjs/gatsby/commit/28e84f3aed480d1f5a8f9859172d1c6f531696d4)

### Changed
- Removed the package `sharp` as it's not used and is preventing Gatsby
1.0 from being installed on Windows.
[commit](https://github.com/gatsbyjs/gatsby/commit/34fff74e6fb3cae88010b42f74d784382ead4031)

## [1.0.0-alpha8] - 2016-11-01
### Added
- Extension API `swOnUpdated` for when a service worker finishes
updating. Use this to alert users of your app to reload to see the
latest version.
[commit](https://github.com/gatsbyjs/gatsby/commit/5173bdc5424e7c874b3f2abfad706cea2e38ebc3)

### Fixed
- hot reloading now fully works. Apparently you can't use function
components for top-level routes on react-router with react-hot-loader
3.0 `¯\_(ツ)_/¯` [#532](https://github.com/gatsbyjs/gatsby/pull/532) and
[commit](https://github.com/gatsbyjs/gatsby/commit/36f2c169586ea30518639d7b1493e08e05befb73)
- Webpack needs the help of an obscure setting `recordsPath` to preserve
module ids across builds. Big thanks to @NekR for pointing this out to
me. Previous to this change, loading changed JS chunks could cause a JS
error as the module ids the new chunk expects wouldn't match the module
ids from the older chunks.
[#533](https://github.com/gatsbyjs/gatsby/pull/533)

### Changed
- Disabled hard-source-webpack-plugin. It speeds up builds significantly
but has been causing hard-to-debug errors while developing. We'll
circle back to it down the road.
[commit](https://github.com/gatsbyjs/gatsby/commit/4bc9660ac8c371d23c0295cde52002775eee5aa1)
- Restored using ChunkManifestPlugin. It was disabled while trying to
debug the mismatched module id bug but that being fixed, we're using
it again.
[commit](https://github.com/gatsbyjs/gatsby/commit/8d16905f31b80ca56db225904d60ed78c6091ca9)
- Name modules ids in development for easier debugging. Primary benefit
is you can see which modules are getting hot reloaded.
[commit](https://github.com/gatsbyjs/gatsby/commit/93f6bd2c4206e71623c1a7fa007322f8dc9887be)

## [1.0.0-alpha7] - 2016-10-27
### Fixed
- Removed entries from the webpack config looking for
`node_modules/gatsby/node_modules`. This was added to help when
developing Gatsby using `npm link` but when Gatsby is installed
regularly, it then fails the Webpack validation as
`node_modules/gatsby/node_modules` doesn't now exist.

## [1.0.0-alpha6] - 2016-10-27
### Added
- extension API for adding types to the GraphQL schema
[commit](https://github.com/gatsbyjs/gatsby/commit/18b8b64ed4cbe3399fb262395c0c6e6a5a16099a)

### Fixed
- Use babel-traverse instead of using babel-plugin so that don't say
done early when running graphql queries that have async resolvers
[commit](https://github.com/gatsbyjs/gatsby/commit/a19677e38d1ce8ba4fb39ddff75482904f168db6)

## [1.0.0-alpha5] - 2016-10-14
### Added
- hard-source-webpack-plugin
[commit](https://github.com/gatsbyjs/gatsby/commit/2c48e5c42887fecabc01c5f5b6f3dd8e06d3372f)
- New replacement API to wrap root component (useful for Redux, et
al.)
[commit](https://github.com/gatsbyjs/gatsby/commit/ebd57d2bd6c39b51a455b76018737e2957e146ef)
- yarn.lock
[commit](https://github.com/gatsbyjs/gatsby/commit/5ce3321b84e912925c4705ececef6f2c817b0684)

### Changed
- Disable extracting the Webpack chunk manifest until understand why
this breaks updates when using Service Workers
[commit](https://github.com/gatsbyjs/gatsby/commit/07ed5b010ad27b1816084b361f06fd0ae6a017ba)

## [1.0.0-alpha4] - 2016-10-07
### Added
- Add more file extensions to file/url loader config. Default to url
loader unless it never makes sense to use data-uri e.g. favicons.
- Use api-runner-browser for calling browser extension
APIs/replacements. Prep for plugin system.
- Add extension API `clientEntry` that let's site code and plugins to
run code at the very start of client app.

### Changed
- Add config to uglify to ignore ie8.
- Disable building AppCache until can research if useful.
- Turn on screw_ie8 options in UglifyJS.

### Fixed
- Actually use the "sources" key from gatsby-config.js for looking for
markdown files. This will be getting an overhaul soon.
- Don't use null-loader for css during the build-js stage as this
prevents offline-plugin from caching files referenced in your CSS.
- Add missing publicPath for build-html step.

## [1.0.0-alpha3] - 2016-10-05
### Added
- Introduce way to programatically add components to `<head>` + API to take over SSR rendering [a39c2a5](https://github.com/gatsbyjs/gatsby/commit/a39c2a5)
- Extract webpack manifest from commons.js so it doesn't change on every
build improving its cachability
[0941d33](https://github.com/gatsbyjs/gatsby/commit/0941d33)
- Always add babel-plugin-add-module-exports
[97f083d](https://github.com/gatsbyjs/gatsby/commit/97f083d)

### Changed
- Upgraded React Hot Loader to 3.0-beta5
[5185c3a](https://github.com/gatsbyjs/gatsby/commit/5185c3a)

### Fixed
- Ensure bundle names for components and paths are unique [342030d](https://github.com/gatsbyjs/gatsby/commit/342030d)
[a1dfe19](https://github.com/gatsbyjs/gatsby/commit/a1dfe19)
- Remove old code loading config.toml
[66f901](https://github.com/gatsbyjs/gatsby/commit/66f901)

## [1.0.0-alpha2] - 2016-09-21
### Added
- New system for specifying page layouts inspired by Jekyll.
- `<HTMLScripts />` and `<HTMLStyles />` helper components for rendering
correct scripts and styles in your html.js,
- Validate at runtime gatsby-config.js and page objects.
- Start of new plugin system.
- New extension API: `onPostCreatePages` — called with pages after all
pages are created. Useful for programmatically modifying pages created
in plugins.

### Changed
- Removed remaining 0.x code
- Exit if can't find local install of Gatsby.
[030f655](https://github.com/gatsbyjs/gatsby/commit/030f655075be5ad91af1dc12a05e6bd153a861df)
- Fix folder hierarchy for looking for loaders and modules #435
- Changed default `Config` GraphQL type to `Site` and added some
Jekyll-inspired fields.

## [1.0.0-alpha1] - 2016-09-02
### Added
- Initial versions of new GraphQL data layer, PRPL pattern, programmatic routes, code
splitting, supporting long-term caching of JS files.
Loading