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

966 commits

Author SHA1 Message Date
Sébastien Dubois 75a993f781 Ensure NODE_ENV is production when deploying on Now (#1106)
* Ensure NODE_ENV is production when deploying on Now

* Fix custom server example instead of default one

* Fix typo
2017-02-13 16:09:11 +01:00
sfhardman dbc2ceefde Return a promise from getRequestHandler execution, await _serveStatic in serveStaticWithGzip, update custom-server-hapi to complete request lifecycle (#1099) 2017-02-12 23:12:32 -03:00
Arunoda Susiripala b220193167 Babelrc false babelrc (#1094)
* Detect babelrc disabling via babelrc.

* Simplify boolean condition.
2017-02-13 06:18:22 +09:00
Tim Neutkens a0453a7b84 Add tests for behaviour mentioned in #1079 (#1084) 2017-02-12 13:46:11 -03:00
Tim Neutkens 66d97744e9 Improve contributing text (#1093) 2017-02-12 13:45:39 -03:00
ǝlzlǝoq lǝᴉuɐp ツ e38d81e6c1 Fix patching component's render method in case its prototype is not writable (#1067) 2017-02-12 22:14:54 +05:30
Naoyuki Kanezawa 1cd242ba57 remove gulpfile.js (#1092) 2017-02-12 17:32:45 +01:00
Tim Neutkens 4fd2ca2598 Improve quiet documentation (#1085) 2017-02-13 01:26:51 +09:00
Tim Neutkens f93bacfaba Use minimist string option for hostname (#1090)
* Use minimist string option

* Consistently use --hostname

* Code style

* Show hostname
2017-02-13 01:23:42 +09:00
Jesse Hattabaugh c4a22abb4c adding hostname argument to CLI (#1017)
* adding hostname argument to CLI

* using -H instead of -hn

* removing hostname default

* checking that hostname has a truthy value that's not a boolean

* making the log message match the hostname

* oops
2017-02-12 12:26:10 +01:00
Davide Bertola 19f1125520 add global stylesheet example (#1016)
* add global stylesheet example

* fix avoiding html-escape of stylesheets

* update readme

* remove .gitignore
2017-02-12 00:22:35 +01:00
Tim Neutkens faef6e48e0 Remove pure-class-to-function (#1077)
* Optimize React

* Remove unused preset

* Remove pure-class-to-function
2017-02-11 07:42:12 +05:30
Tim Neutkens 250c066de5 Optimize React on next build (#1075)
* Optimize React

* Remove unused preset
2017-02-11 04:05:13 +09:00
Naoyuki Kanezawa ed00eb7236 ensure not to render ErrorDebug on production (#1064) 2017-02-10 10:05:22 +01:00
Luke Edwards 15facf0ae1 switch octal format (#1060) 2017-02-09 21:58:48 +01:00
Luke Edwards 864fe60a15 Write executable files to dist/bin (#1059)
* update to fly@2.0.4

* write executable dist/bin files
2017-02-09 21:37:18 +01:00
Luke Edwards 839fb1c05c [WIP] Migrate from Gulp to Fly (#965)
* install fly & plugins

* start flyfile conversion

* install node-notifier directly

* send task notifications

* upgrade to fly@2.0.1

* fix watch rebuilds

* compile in parallel

* remove gulp-related deps

* enable start|stop-chromedriver

* run build before watching

* extract webpack config

* fix webpack build

* use serial chain within 'build' -- faster

* update to fly-watch@1.1.0

* generate new yarn.lock after rebase

* rename tasks; use fly-esnext (async/await)

* bump fly deps (node4 supp)

* remove destructured assignment

* import latest package.json changes
2017-02-09 20:33:08 +01:00
I am not shine 97714e8b2a wrong position of babel config example (#1057) 2017-02-09 18:57:17 +01:00
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