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

368 commits

Author SHA1 Message Date
Guillermo Rauch 12ae74c236 Update README.md 2016-12-19 14:37:15 -08:00
Guillermo Rauch 9f303ebe74 Update README.md 2016-12-19 14:36:33 -08:00
Guillermo Rauch 59c33e1f11 Update README.md 2016-12-19 14:35:26 -08:00
Guillermo Rauch 1980726208 Update README.md 2016-12-19 14:25:03 -08:00
Guillermo Rauch 3c25bef2ea Update README.md 2016-12-19 13:34:19 -08:00
Arunoda Susiripala 565bb5790b Update url.pushTo and url.replaceTo update only on dev. (#434)
In order to warn the user, now we are using a warn function
which is located in the lib/utils module.
2016-12-19 13:04:38 -08:00
Luke Edwards ff7e128c80 add cli version flags (#435)
* add version flags

* fix typo -.-
2016-12-19 12:14:23 -08:00
Guillermo Rauch fce87e6e65 Update README.md 2016-12-19 11:20:18 -08:00
Arunoda Susiripala e45cc89ce3 Add deprecate messages for url.replaceTo and url.pushTo (#433) 2016-12-19 10:49:15 -08:00
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 26c485a22f Add X-Powered-By header. (#416)
* Add X-Powered-By header.

* Add support to disable setting x-provided-by header

* Add some test cases.
2016-12-19 07:27:47 -08:00
Guillermo Rauch 7baebd0c0f Update README.md 2016-12-19 07:17:33 -08:00
Guillermo Rauch 7ab4f54971 Update README.md 2016-12-19 07:16:44 -08:00
Guillermo Rauch ec235dbf1e Update README.md 2016-12-19 07:04:53 -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
Stephen Sauceda 955f6817c4 Add cli usage information (#423)
* add cli usage: `next init`

* add cli usage: `next --help`

* add cli usage: `next build --help`

* add cli usage: `next dev --help`

* add cli usage: `next init --help`

* add cli usage: `next start --help`

* use set

* build, start and dev all accept a directory

* typo and conciseness
2016-12-18 12:28:34 -08:00
nkzawa d12502ef24 bump dependencies 2016-12-19 00:36:46 +09:00
Naoyuki Kanezawa 1e70324a41 print a deprecated message for next/css (#421) 2016-12-17 13:59:38 -08:00
Arunoda Susiripala 37a9c661ff Make prefetching works again. (#422) 2016-12-17 13:59:03 -08:00
Thomas Jaggi de6521a481 Allow for custom route in pushTo and replaceTo methods (#417) 2016-12-18 05:18:50 +09:00
Guillermo Rauch e9543cf614 Update README.md 2016-12-17 11:48:52 -08:00
Guillermo Rauch 4e77e105af Update README.md 2016-12-17 11:33:07 -08:00
Guillermo Rauch 3b1761eb1b Update README.md 2016-12-17 11:31:34 -08:00
Guillermo Rauch 6950633796 Update README.md 2016-12-17 11:16:22 -08:00
Guillermo Rauch 86507c2cde Update README.md 2016-12-17 11:04:44 -08:00
Guillermo Rauch 6a4fbd8e50 Update README.md 2016-12-17 11:03:53 -08:00
Ives van Hoorne 5ab7463b93 Exploration of different config + expose webpack config (#222)
* Use next.config.js instead of package.json

* Remove irrelevant comment

* Integrate with custom webpack config

* Include hotReload option

* Remove async/await for getConfig

* Read package.json, show warning when webpack in config is defined

* Prepend warning message with WARNING

* Update log statements

* Documentation

* Restart server on change of config

* Fix process handling and cases where there is no config

* Also restart server when config file gets deleted

* Changed second parameter of webpack to config

* Support for returning Promise

* Update documentation, fix bug with webpack config

* Remove package.json, cdn and hotReload from config
2016-12-17 10:38:11 -08: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
nkzawa 59d514e071 stop watching files after running tests 2016-12-17 13:04:40 +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
Guillermo Rauch 289feeda43 Update README.md 2016-12-16 12:23:32 -08:00
Guillermo Rauch 8abcb81ec3 warn about master README 2016-12-16 12:22:55 -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 43b0e6f514 Remove console.logs (#402) 2016-12-16 11:43:46 +09:00
Arunoda Susiripala aa6870a4e6 Fix #204 (#401)
React addons require React in a special way.
That causes Webpack to push React into the app's bundle.
This fix adds new externals entries to prevent that.
2016-12-15 17:45:58 -08:00
Dmitry Poddubniy 45e36fdff7 fixed bug #362, also set chunks names (#363)
* fixed bug #362, also set chunks names

* set simple solution for minChunks

* revert in favor of #310
2016-12-16 03:59:59 +05:30
Matthew Mueller ab14770318 Remove trailing comma to fix lint (#398) 2016-12-16 03:52:04 +05:30
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
Matthew Mueller 422c631832 remove react-dom/lib/HTMLDOMPropertyConfig for better interop (#392) 2016-12-15 15:05:20 +09:00
Matthew Mueller a8f58be450 fix link for environments without synthetic events (like preact/the browser) (#393) 2016-12-15 10:03:02 +05:30
Chris 204d335273 update example with correct syntax (#383)
- was using `]` instead of `}`
2016-12-13 14:36:20 +09:00
Benjamin E. Coe 0f2979b02b chore: switch from ava to jest (#381) 2016-12-12 21:31:49 +09:00
Stephen Sauceda 694c8c56c7 update default page generated by next init (#376)
* use next logo on 'init' start page

* use github cdn for logo
2016-12-11 12:01:39 -08:00
nkzawa b4ccb126d9 ignore .babelrc on babel-loader 2016-12-11 18:09:54 +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