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

948 commits

Author SHA1 Message Date
Tim Neutkens c106a1d02f Using router example improvements (#1034) 2017-02-09 22:02:01 +05:30
Arunoda Susiripala 4534c55968 Set displayName properly when patching React locally. (#1053)
* Using styled-jsx for with-jest example.

* Set the displayName of the wraped components.
Otherwise it won't get the correct displayName if the
original component doesn't provide it by using it's function name.
2017-02-09 15:40:31 +01:00
nkzawa bfab00a3ee add react and react-dom to devDependencies again 2017-02-09 22:49:32 +09:00
Arunoda Susiripala 57b6e9a71b Using styled-jsx for with-jest example. (#1052) 2017-02-09 19:14:52 +05:30
Arunoda Susiripala 355c984ed8 Testing: use a better way to get a port to the test app (#753)
* Randomize the port returned from test util's findPort().

* Use http's server.listen() to bind to a random available port.

* Update yarn.lock

* Update yarn.lock
2017-02-09 14:40:09 +01:00
Tim Neutkens e46cedda57 Update table of contents (#1051) 2017-02-09 12:52:14 +01:00
Loren Sands-Ramshaw d6439d172b Add table of contents to README (#735)
* Fix example README formatting

* Add table of contents to README
2017-02-09 12:47:20 +01:00
Giacomo Rebonato b00f0c2044 TypeScript example proposal (#845)
* TypeScript example proposal

* removed unused loader

Removed typings

Moved TypeScript to dev dependencies

removed unused typings

changed react typings version

removed react dependency

set next dependency version to latest

removed not needed babel preset

enabled sourcemaps

simplified tsconfig

modified component to be a functional one

* Ignore build

* Making npm script Windows-friendly

* Clean up

* Added readme

* fixed typo
2017-02-09 12:36:58 +01:00
Tim Neutkens 53c245bf63 Throw when parsedUrl is not provided (#1015)
* Throw when parsedUrl is not provided

* Allow parsedUrl to be empty

* Remove unwanted line.

* Reset to the original
2017-02-09 08:52:48 +05:30
Arunoda Susiripala bdcb0f7828 Add support to transpile import/export syntax (#1044)
next/babel doesn't transpile import/export.
So, we need to do it explicitly, but only for test env.
2017-02-09 08:32:58 +05:30
Naoyuki Kanezawa 9348762f4a add next/error (#1040) 2017-02-08 16:59:33 -03:00
Naoyuki Kanezawa a9428b88e3 fix .baberc (#1041) 2017-02-08 20:44:56 +01:00
nkzawa 29e0c3eba0 add react and react-dom to devDependencies 2017-02-09 02:31:20 +09:00
Arunoda Susiripala 55f48563a0 Add babel-preset-latest support. (#1027)
* Add babel-preset-2016 support.
This adds the support for Exponentiation operator (**)

* Use babel-preset-latest.

* Remove babel-plugin-transform-async-to-generator in favor of babel-plugin-latest
It has es2017 preset and it comes with the above plugin.
2017-02-08 13:05:25 +01:00
Lukas Strassel 4a73ccbb00 add react and react dom as peer (#1024)
- tackles #997
- add ./idea to gitignore for webstorm users
- update all the examples
2017-02-08 10:11:38 +05:30
Tim Neutkens aa971d6a1c Disallow directories in /static (#1028) 2017-02-08 05:43:25 +05:30
Adam Soffer 01cc898450 Update Apollo example (#1021)
* 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

* Update Apollo example

* Remove trailing comma

* Update reduxRootKey

* Remove unnecessary babelrc
2017-02-07 12:02:28 +01:00
Guillermo Rauch 8dfbbd3674 Release 2.0.0-beta.24 2017-02-06 11:05:07 -03:00
Tim Neutkens 8c1808d7d7 Add contributing.md (#1009)
* Add contributing.md

* Only reload example app on server changes
2017-02-06 18:49:34 +05:30
greenkeeper[bot] 6832fea9f1 chore(package): update coveralls to version 2.11.16 (#1007)
https://greenkeeper.io/
2017-02-05 22:11:36 +01:00
greenkeeper[bot] 1d456346ae fix(package): update babel-plugin-module-resolver to version 2.5.0 (#1005)
https://greenkeeper.io/
2017-02-05 20:50:08 +01:00
Emanuel Kluge f6510c05b2 Pass parsed request-URL into the run-method (#1000) 2017-02-05 12:38:20 -03:00
greenkeeper[bot] 2af8a4cbcf fix(package): update styled-jsx to version 0.5.4 (#1002)
https://greenkeeper.io/
2017-02-06 00:38:07 +09:00
Sergio Daniel Xalambrí 592c666e82 [example] Progressive rendered application (#998)
* [add] example of a progressive rendered app

* [update] remove extra blank line

* [update] fix typo

* [update] more use cases

* [update] example link

* Update README.md

* [update] next.js dependency version

* [update] fix readme typos
2017-02-05 13:43:28 +01:00
Koutaro Chikuba 267b74b256 Add next.js flowtype definition to with-flow example (#973)
* Add next.js flowtype definition to with-flow

* Add render api types for flow

* Add prefetch types

* Fix push/replace api types to promise
2017-02-05 19:39:51 +09:00
Arunoda Susiripala 5b2854dce9 Properly handle hash URL changes. (#996)
* Properly handle hash URL changes.

* Make sure we replace origin correctly.

* Get rid of RegExp for getUrl().
2017-02-05 17:58:44 +09:00
Tim Neutkens a8731d0651 Added universal configuration example (#991)
* Added universal configuration example

* Make example more clear
2017-02-05 04:43:23 +05:30
Guillermo Rauch 2e81af8d83 Release 2.0.0-beta.23 2017-02-03 15:12:44 -08:00
Tim Neutkens 6431f5fce2 Allow any element to be rendered under Link (#921)
* Allow any element to be rendered under Link

* Use Children.only instead of Children.map

* Remove check for multiple children since we already throw at 2+

* Clean up variables
2017-02-03 12:27:12 -08:00
Naoyuki Kanezawa ddd93e9865 Improve babel settings (#976)
* fix babelrc settings

* use only transform-es2015-modules-commonjs for transpiling emitting files
2017-02-03 12:18:44 -08:00
Tim Neutkens 3143e0d0a1 Add styled-jsx to babel plugins (#970)
* Resolve all modules through module resolver

* Add styled-jsx back
2017-02-03 12:09:52 +05:30
Arunoda Susiripala 57e9a5e5f6 Find custom babel config location properly. (#969)
* Find custom babel config location properly.
Earlier we simply check for the .bablerc file in the dir.
But the actual logic is much complex.
Now we are using the babel's actual logic to find the
custom config location.

* Fix failing tests.
2017-02-03 14:33:35 +09:00
Guillermo Rauch 729088cbf7 Merge branch 'master' of github.com:zeit/next.js 2017-02-02 15:59:54 -08:00
Guillermo Rauch adf38f3ba3 Release 2.0.0-beta.22 2017-02-02 15:59:44 -08:00
Tim Neutkens ec83670cc7 Check if BUILD_ID is available before starting (#960)
* Check if BUILD_ID is available before starting

* Leave whitespace at end of file
2017-02-02 15:59:01 -08:00
Tim Neutkens efe0c7b433 Resolve all modules through module resolver (#963) 2017-02-02 15:58:02 -08:00
Vlad Frolov fca0a39cbc examples/with-react-md: Fixed "Cannot read property 'focus' of undefined" (#961) 2017-02-02 22:56:07 +01:00
Guillermo Rauch 3e34430f74 Release 2.0.0-beta.21 2017-02-02 11:13:43 -08:00
Tim Neutkens 61bdae5a08 Fix typo in react-md example readme (#959) 2017-02-02 20:00:45 +01:00
greenkeeper[bot] cf4fb78f96 fix(package): update styled-jsx to version 0.5.3 (#958)
https://greenkeeper.io/
2017-02-02 19:55:59 +01:00
Vlad Frolov 0a2466a36e Added React-MD example (#940) 2017-02-02 13:10:59 +01:00
Tim Neutkens 59281adef3 Allow parsed url to be passed down (#950)
* Allow parsed url to be passed down

* Update example to reflect url passing

* Check if passed url.query is empty

* Rename url to parsedUrl
2017-02-02 12:21:08 +05:30
Arunoda Susiripala 24edfbdea7 Resolve styled-jsx/style when transpiling ES2015 modules. (#953) 2017-02-02 06:56:21 +01:00
Tim Neutkens f9717347a4 Resolve preset es2015 from next directory (#949) 2017-02-02 07:35:21 +05:30
greenkeeper[bot] a97ca923d8 fix(package): update webpack-dev-middleware to version 1.10.0 (#948)
https://greenkeeper.io/
2017-02-01 21:37:14 +01:00
Artem Samofalov 2f7d743050 add pretty message if port already in use(#927) (#932)
* add pretty message if port already use(#927)

* fix console async nature

* fix linter

* clean callbacks code

* Check package.json for the startup script

* fix path to package

* omit callback

* remove extra check, code execute in try block

* + reason for change start listen port of node http

* remove extra code for search package
2017-02-01 21:36:23 +01:00
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