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

94 commits

Author SHA1 Message Date
Naoyuki Kanezawa a87ef1a7af Incorporate styled-jsx (#420)
* integrate styled-jsx

* define styles of pages with styled-jsx

* bump styled-jsx

* bump styled-jsx

* error-debug: fix style

* bump styled-jsx

* fix examples to use styled-jsx

* bump styled-jsx
2016-12-19 10:42:19 -08:00
Arunoda Susiripala 22776c2eee Implement the Singleton Router API (#429)
* Immplement the initial singleton Router.

* Use the new SingletonRouter for HMR error handling.

* Use SingletonRouter inside the Link.

* Create an example app using the Router.

* Make the url parameter optional in Router.push and Router.replace

* Add a section about next/router in the README.
2016-12-19 06:40:26 -08:00
nkzawa d12502ef24 bump dependencies 2016-12-19 00:36:46 +09:00
Arunoda Susiripala b62a0e8f55 Bundle all the modules inside the app (#414)
* Remove the use of CDN and bundle everything inside the app.
We still pre-build the prefetcher because it needs
different webpack config which only targets browsers
supports Service Workers.

* Remove cdn config item.
We no longer using it.

* Stop adding script tags when staticMarkup=true

* Remove babel-plugin-transform-remove-strict-mode NPM module.
2016-12-17 17:49:10 +09:00
Naoyuki Kanezawa 1708222381 Programmatic API (#310)
* add 'next' api

* add render APIs

* add 'as' prop to Link

* check Accept header to serve json response

* check if response was finished on getInitialProps call

* move server/app to server/index

* load webpack-hot-middleware-client by absolute path

* server: options for testing

* add tests

* example: improve

* server: make dir optional

* fix client routing

* add parameterized routing example

* link: fix display url

* Add custom-server-express example (#352)

* Add custom-server-express example

* Remove extraneous nexts in express routes defs

* Update next config in server.js

* Handle accept headers totally inside Next.js (#385)

* Handle accept headers totally inside Next.js
Now user doesn't need to handle it anymore.

* Move json pages serving to /_next/pages base path.

* Join paths correctly.

* remove next/render
2016-12-16 12:33:08 -08:00
nkzawa cd2fcd6e6f update files field of package.json 2016-12-17 04:25:40 +09:00
Naoyuki Kanezawa 8ddafaea5c custom document support (#405) 2016-12-16 10:42:40 -08:00
Arunoda Susiripala 36abdc77c5 Prefetch pages with Service Workers (#375)
* Register the service worker.

* Update prefetcher code to do prefetching.

* Implement the core prefetching API.
support "import <Link>, { prefetch } from 'next/prefetch'"

* Implement a better communication system with the service worker.

* Add a separate example for prefetching

* Fix some typos.

* Initiate service worker support even prefetching is not used.
This is pretty important since initiating will reset the cache.
If we don't do this, it's possible to have old cached resources
after the user decided to remove all of the prefetching logic.
In this case, even the page didn't prefetch it'll use the
previously cached pages. That because of there might be a already running
service worker.

* Use url module to get pathname.

* Move prefetcher code to the client from pages
Now we also do a webpack build for the prefetcher code.

* Add prefetching docs to the README.md

* Fix some typo.

* Register service worker only if asked to prefetch
We also clean the cache always, even we initialize
the service worker or not.
2016-12-15 11:13:40 -08:00
Benjamin E. Coe 0f2979b02b chore: switch from ava to jest (#381) 2016-12-12 21:31:49 +09:00
Greenkeeper 3de4788e0e chore(package): update babel-plugin-transform-object-rest-spread to version 6.20.2 (#371) 2016-12-09 10:36:46 +09:00
Greenkeeper a5ae843aca chore(package): update babel-loader to version 6.2.9 (#359) 2016-12-09 09:49:46 +09:00
Greenkeeper cf5daae62f chore(package): update webpack to version 1.14.0 (#357) 2016-12-09 09:35:07 +09:00
Greenkeeper 423dd94748 chore(package): update babel-core to version 6.20.0 (#365) 2016-12-09 09:34:55 +09:00
Greenkeeper fac5c19472 chore(package): update babel-generator to version 6.20.0 (#366) 2016-12-09 09:26:44 +09:00
Greenkeeper 2edbab7934 chore(package): update babel-runtime to version 6.20.0 (#368) 2016-12-09 09:26:14 +09:00
Chua Kiem Fai f61335066b Update package.json (#346)
Fix following issue in Docker
https://github.com/IanMitchell/is-windows-bash/pull/2
https://github.com/zeit/next.js/issues/344
2016-12-05 18:08:45 +01:00
Greenkeeper c5667a7539 chore(package): update friendly-errors-webpack-plugin to version 1.1.2 (#337) 2016-12-04 04:21:32 +09:00
Greenkeeper c8ba9bb88d chore(package): update glamor to version 2.20.12 (#328) 2016-12-02 23:38:17 +09:00
nkzawa f3a42e9590 Release 1.2.3 2016-12-02 23:06:18 +09:00
Arunoda Susiripala 65c4e1e5bd Init next.js even after dom is loaded. (#326)
Earlier we add a event to init next.js when dom has loaded.
But if at that time dom is already loaded, next.js won't get init ever.
Now we are using domready NPM module which handle these for us.
2016-12-02 22:59:10 +09:00
nkzawa ea5ec12c2d Release 1.2.2 2016-12-02 17:06:04 +09:00
nkzawa 39ba1a0110 Release 1.2.1 2016-12-02 15:59:10 +09:00
nkzawa f2653d0e2f Release 1.2.0 2016-12-02 14:51:48 +09:00
nkzawa b23f193124 bump friendly-errors-webpack-plugin 2016-12-02 10:53:25 +09:00
Naoyuki Kanezawa 12f31b5bf3 Source map support (#279)
* generate source-maps on development

* remove unused dep
2016-12-02 10:43:38 +09:00
nkzawa 6ad1e23167 Merge branch 'master' into pr/259 2016-12-02 10:35:07 +09:00
nkzawa 4a71fb6b3c Merge branch 'master' into pr/264 2016-12-02 10:21:21 +09:00
Greenkeeper f9726a5d59 chore(package): update dependencies (#289) 2016-12-01 20:58:50 +09:00
Greenkeeper c36e0d98fd chore(package): update standard to version 8.6.0 (#292) 2016-12-01 20:50:35 +09:00
Greenkeeper fff12d14db chore(package): update is-windows-bash to version 1.0.2 (#305) 2016-12-01 20:41:10 +09:00
Greenkeeper 333708c751 chore(package): update babel-plugin-module-resolver to version 2.4.0 (#314) 2016-12-01 20:40:38 +09:00
Greenkeeper 94b1fb0d10 chore(package): update glamor to version 2.20.8 (#317) 2016-12-01 20:34:39 +09:00
Ian Mitchell 7a66870af9 Add Polling for Bash on Windows (#302)
* Add Polling for Bash on Windows

Fixes #166

* Add Windows Bash Dependency
2016-11-28 09:04:59 -05:00
Jonas Windey 10b815b9c9 Add react-require to avoid importing React (#295)
* Add react-require

* Add babel-plugin-react-require
2016-11-28 06:46:42 -05:00
Naoyuki Kanezawa a14cc66720 Remove webpack-dev-server (#276)
* remove webpack-dev-server

* webpack: fix publicPath
2016-11-23 10:32:49 -08:00
Benjamin Coe 0f34b9b568
fix: address merge conflict 2016-11-22 10:20:18 -08:00
Benjamin Coe 5e2b426d33
fix: switch to using the handy gulp-process-env plugin 2016-11-22 10:11:24 -08:00
Benjamin Coe 12003f307b
feat: run individual tests with ava script 2016-11-22 10:11:24 -08:00
Benjamin Coe 564b01cf73
fix: use babel-core/register rather than babel-register 2016-11-22 10:11:24 -08:00
Benjamin Coe c56fde89c3
chore: add test coverage 2016-11-22 10:11:23 -08:00
Jonas Windey 960f50a019 Upgrade packages & React v15.4.0 (#283)
* Upgrade packages & React v15.4.0

* Update package.json

* no message
2016-11-21 20:46:49 +09:00
nkzawa fc23d34a40 Release 1.1.2 2016-11-18 23:25:51 +09:00
Florian Didron becf2f2a62 Adds friendly error plugin 2016-11-16 11:46:58 +09:00
nkzawa d88f40a001 remove babel settings for ava 2016-11-14 16:01:15 +09:00
Sébastien Dubois c5887281fb Update glamor (#228) 2016-11-09 19:15:58 +09:00
Andrew McCloud 7f0f3ae940 Upgrade babel-plugin-module-resolver to 2.3.0 to fix #202 (#218) 2016-11-07 11:11:54 +09:00
nkzawa b9d6a59415 Release 1.1.1 2016-11-06 17:52:17 +09:00
nkzawa 027622f646 add ava as a devDependencies for npm@2.x 2016-11-06 14:47:13 +09:00
Siddharth Kshetrapal 18ab55bc73 Added travis file (#205)
* Added travis file

* Dropping node 5

* Added os field as well

* Removed os, fails on both osx and linux

* Adding ava and sockjs-client as devDeps

* Shouldn't need ava 🤔

* Moved sockjs-client to dependency
2016-11-06 03:04:59 +09:00
nkzawa ef409af453 Revert "Revert "Add syntax highlighting to debug error page" (#197)"
This reverts commit f4ae99fc54.
2016-11-06 00:15:54 +09:00