1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
Commit graph

602 commits

Author SHA1 Message Date
Arunoda Susiripala ec2c8c6784 Fix .json import issue (#944)
* Fix .json import error
This is a regression we've added by #926 (tree-shaking-support)

* Add a test case.
2017-02-01 15:17:15 +09:00
Tim Neutkens 579098663c Set dev variable consistent with examples (#939) 2017-01-31 19:48:10 +05:30
Arunoda Susiripala f3e541fe23 Add support for Webpack 2's tree-shaking (#926)
* Let webpack2 to handle ES2015 module system
Since Node.js can't do that, we need to transpile
ES2015 module system in the emit-file-loader.

* Use sourceMaps only in dev.

* Introduce a transform option to emit-file-loader
So, we can move our ES2015 transpile code with that option.

* Remove unwanted argument options.

* Update comments.

* Use dev flag instead of NODE_ENV
2017-01-31 15:31:27 +09:00
greenkeeper[bot] 5188eed5b1 fix(package): update webpack to version 2.2.1 (#938)
https://greenkeeper.io/
2017-01-31 06:38:43 +01:00
Tim Neutkens bd83ed5c54 [WIP] Remember scroll position on error (#911)
* Remember scroll position on error

* Added comment + check if lastScroll was set

* Remove check for lastAppProps

* Use events to make scroll persistence dev-only

* Return EventEmitter from next()

* Update next-dev.js
2017-01-31 08:56:17 +05:30
greenkeeper[bot] 08eadb4688 fix(package): update webpack-hot-middleware to version 2.16.1 (#935)
https://greenkeeper.io/
2017-01-30 19:51:33 +01:00
Arunoda Susiripala 0d2af801ec Use service-worker to fetch only JSON pages. (#924)
* Use service-worker to fetch only JSON pages.
We simply don't need to proxy other requests through that.
That's might cause some latency issues.

* Use a better regexp to identify JSON pages.
2017-01-30 19:42:49 +09:00
greenkeeper[bot] 72ae013e08 fix(package): update webpack-hot-middleware to version 2.16.0 (#922)
https://greenkeeper.io/
2017-01-30 07:58:10 +01:00
Jaga Santagostino b4814e1ef9 fix typo (#916) 2017-01-29 11:32:29 +01:00
Stephen Mathieson ac2a963c9c README: fix "Routing with lazy component loading" blob (#915)
Looks like `<Link>` was replaced with `\n` on accident
2017-01-29 06:29:29 +05:30
Tim Neutkens 0820204646 Remove yarn.lock from examples (#912)
* Remove yarn.lock from examples

* Add yarn.lock to gitignore for examples

* Move yarn ignore to examples directory
2017-01-29 05:48:53 +05:30
Sébastien Dubois a3bec7666b with-apollo: Don't store Redux store and Apollo client in global namespace (#909)
* Add yarn lockfile

* Avoid storing Redux store and Apollo client in global namespace + don't create Apollo client when already existing in browser
2017-01-28 17:22:32 +01:00
Arunoda Susiripala bf467e64af Do not patch prototypes with render exposed only as a getter. (#898)
* Do not patch prototypes with render exposed only as a getter.

* Use Object.getOwnPropertyDescriptor to make things simpler.

* Get the prototype which has the render method.
2017-01-28 22:50:46 +09:00
Stephen Mathieson ee717af088 examples/with-redux: remove global store (#908)
This patch removes the global `store` on the client. IMO this example
should avoid polluting the global namespace with simple scoping tricks
can solve the problem equally as well.
2017-01-27 18:33:42 -08:00
Tim Neutkens db50fc7dee chore(package): update wd to version 1.1.3 (#906)
https://greenkeeper.io/
2017-01-27 22:44:44 +01:00
greenkeeper[bot] 52163f5cb8 fix(package): update source-map-support to version 0.4.11 (#901)
https://greenkeeper.io/
2017-01-27 22:33:39 +01:00
greenkeeper[bot] 4481038fcf chore(package): update gulp-notify to version 3.0.0 (#905)
https://greenkeeper.io/
2017-01-27 22:29:32 +01:00
Guillermo Rauch f944b50ffe Release 2.0.0-beta.20 2017-01-27 10:57:16 -08:00
greenkeeper[bot] e0f49f8a18 fix(package): update styled-jsx to version 0.5.2 (#902)
https://greenkeeper.io/
2017-01-27 10:37:43 -08:00
Adam Soffer 8310f812ec Fix Apollo Example (#900)
* Add minimal apollo example

* Update apollo example README

* Update apollo example demo link in README

* Fix button styles

* Fix show more button

* Alias demo url

* Include the data field on the Apollo store when hydrating

* Revert

* Include the data field on the Apollo store when hydrating per tpreusse's suggestion.

* Add example to faq section in README

* Sort by newest; Add active state to buttons

* Make optimization suggestions

* Use process.browser; inline props

* Pass wrapped component's initial props into component heirarchy if they exist

* Remove unnecessary sorting of array
2017-01-27 17:06:17 +01:00
jcsmesquita 8922e7b63a Update README.md (#895)
Just adding download instructions
2017-01-26 23:19:12 +05:30
Jarmo Isotalo 0b131cad2a Add next build and next start to the first How to use sample (#894) 2017-01-26 22:30:55 +05:30
Naoyuki Kanezawa 0b3db91731 Fix handling finished response (#889)
* allows to not return props if response is already finished on getInitialProps

* check res.finished after getInitialProps call of Document
2017-01-26 16:36:50 +05:30
nkzawa 386c960359 Release 2.0.0-beta.19 2017-01-26 18:30:56 +09:00
nkzawa 293029a36a update yarn.lock 2017-01-26 18:30:20 +09:00
Jarmo Isotalo 51cbebb240 Don't process.exit(null) when e.g build is SIGKILLed (#887) 2017-01-25 17:10:48 -08:00
Adam Soffer a76ec83b64 Update Apollo Example (#888)
* Add minimal apollo example

* Update apollo example README

* Update apollo example demo link in README

* Fix button styles

* Fix show more button

* Alias demo url

* Include the data field on the Apollo store when hydrating

* Revert

* Include the data field on the Apollo store when hydrating per tpreusse's suggestion.

* Add example to faq section in README

* Sort by newest; Add active state to buttons

* Make optimization suggestions

* Use process.browser; inline props

* Pass wrapped component's initial props into component heirarchy if they exist
2017-01-25 17:10:21 -08:00
Arunoda Susiripala b4e2b7bd4d Handles the initial popstate event of older version of Safari. (#870) 2017-01-26 01:58:26 +09:00
greenkeeper[bot] f89eaf315c fix(package): update styled-jsx to version 0.5.1 (#879)
https://greenkeeper.io/
2017-01-25 14:56:35 +01:00
Robin Frischmann a418b35e98 Added Fela Example to the CSS-in-JS <details> in README (#878) 2017-01-25 04:13:34 -08:00
Dan Zajdband 3ad3a6c1e7 Added Google AMP example (#793)
* Added Google AMP example

* Added styles and a second page

* Using regular anchor since there is no client-side routing

* Added comment on react config for amp
2017-01-24 05:20:56 -08:00
jagreehal cbb2d1c250 simpler flow task (#857) 2017-01-23 22:19:14 -08:00
Robin Frischmann 8d8d5ebdf6 Example using Fela (#863)
* added example using fela

* update package-json

* removed nested routing test

* fixed linting issues

* fixed typo
2017-01-23 20:29:15 -03:00
Greenkeeper 2390c87cb4 chore(package): update husky to version 0.13.1 (#862) 2017-01-23 13:50:07 +01:00
Naoyuki Kanezawa 8b94534260 Wrap render method created using class properties (2) (#856)
* wrap render method created using class properties

* use Boolean instead of double not-operator

* patch-react: move a comment
2017-01-22 10:11:56 -08:00
Adam Soffer 4b257483e2 Add Apollo example (#780)
* Add minimal apollo example

* Update apollo example README

* Update apollo example demo link in README

* Fix button styles

* Fix show more button

* Alias demo url

* Include the data field on the Apollo store when hydrating

* Revert

* Include the data field on the Apollo store when hydrating per tpreusse's suggestion.

* Add example to faq section in README

* Sort by newest; Add active state to buttons

* Make optimization suggestions

* Use process.browser; inline props
2017-01-22 13:27:06 +01:00
Guillermo Rauch 85cd38f4bd tweak font sizes again 🙈 2017-01-21 18:12:27 -08:00
Zhao 3813f73ece Fix error fonts (#826)
* add "consolas" font for windows

* fix too small font size in non-retina display
2017-01-21 18:04:41 -08:00
Greenkeeper 13d6c04acf chore(package): update husky to version 0.13.0 (#853) 2017-01-21 16:16:06 -08:00
Kristo Jorgenson e67d62d888 Update styled-component docs (#841)
* Add details to custom Document documentation

Custom document must be created at ./Pages/_document.js, which is not
noted in the README… so I updated it.

* Add note to styled-components example about existing issue

* Made phrasing a bit more clear

* Another phrasing update.

* from P to p
2017-01-21 22:24:17 +01:00
Naoyuki Kanezawa 98e2951f0c Use ErrorDebug component on error of react-hot-loader (#852)
* use ErrorDebug component for reporter of react-hot-loader

* app: fix props of ErrorDebug
2017-01-21 10:46:18 -08:00
Guillermo Rauch cec8f9dd58 Release 2.0.0-beta.18 2017-01-20 18:45:23 -08:00
Guillermo Rauch 3765b14993 bump styled-jsx 2017-01-20 18:26:27 -08:00
Greenkeeper f085a6d9a0 chore(package): update styled-jsx to version 0.4.5 (#847) 2017-01-20 23:15:58 +01:00
Arunoda Susiripala 399e510389 Make sure lastAppProps always have some value. (#829)
* Make sure lastAppProps always have some value.

* Revert "Make sure lastAppProps always have some value."

This reverts commit b4ae722d9c1a4460e17dbdc041b111cbd492b2aa.

* Throw an error, if we found an empty object from getInitialProps.

* Add proper tests for getInitialProps empty check.
2017-01-20 11:33:46 -08:00
Greenkeeper 318f110a8e chore(package): update babel-generator to version 6.22.0 (#833) 2017-01-20 08:16:02 +01:00
Greenkeeper a05a5d2004 chore(package): update babel-plugin-transform-async-to-generator to version 6.22.0 (#834) 2017-01-20 08:15:31 +01:00
Greenkeeper 865f806058 chore(package): update babel-plugin-transform-class-properties to version 6.22.0 (#835) 2017-01-20 08:15:05 +01:00
Greenkeeper 118055516c chore(package): update babel-plugin-transform-object-rest-spread to version 6.22.0 (#836) 2017-01-20 08:14:44 +01:00
Greenkeeper 2aed328eee chore(package): update babel-plugin-transform-runtime to version 6.22.0 (#837) 2017-01-20 08:14:10 +01:00