nkzawa
de7801df2d
example: fix npm script ( fix #526 )
2016-12-27 23:39:00 +09:00
Arunoda Susiripala
d580b8f0c9
Use ^2.0.0-beta as the version for with-prefetching example. ( #530 )
2016-12-26 12:37:03 -08:00
Arunoda Susiripala
ac2a71876d
Add support for using .babelrc in the app root. ( #493 )
...
* Add support for using .babelrc in the app root.
* Update the README about the .babelrc usage.
* Fix a typo.
* Remove additional example usage.
2016-12-26 10:13:45 -08:00
nkzawa
1888a251a8
fix npm script on examples
2016-12-26 12:59:09 +09:00
Ian Mitchell
355dbf8fdd
Fix SSR Cache Example ( #510 )
2016-12-25 00:38:35 +05:30
Dan Zajdband
01e1883f79
Added glamor example and pointing warning to css migration guide ( #500 )
2016-12-23 11:18:25 -08:00
Arunoda Susiripala
b9bee24787
Add an example with SSR caching. ( #497 )
...
* Add an example with SSR caching.
* Update server.js
* Update README.md
* Use app.renderError to display errors in SSR example.
2016-12-23 09:13:52 -08:00
Naoyuki Kanezawa
01da6f4761
Add styletron example ( #486 )
...
* add styletron example
* example: fix link
* example: improve README
* Added styletron example reference to readme and merge with master
2016-12-23 08:01:24 -05:00
Dan Zajdband
f6ece560e4
Add/data fetch example ( #485 )
...
* Added data fetch example
* Finished updating examples install instructions and added data-fetch example to main readme
2016-12-23 08:05:49 +09:00
nkzawa
414a22d38e
examples: fix README titles
2016-12-23 07:57:57 +09:00
nkzawa
cf727eb1e1
typo
2016-12-23 06:43:18 +09:00
Dan Zajdband
2b791a6653
Added missing readme and references in main readme. ( #483 )
...
* Added missing readme and references in main readme.
* Fixed wrong links
* Updated examples format
2016-12-22 13:04:32 -08:00
Arunoda Susiripala
362626d0d4
Update the next to the least supported version. ( #478 )
2016-12-22 20:41:50 +09:00
nkzawa
cae706d7b7
examples: use HTTPS URL
2016-12-22 18:14:12 +09:00
nkzawa
aa630279e6
examples: simplify download instruction
2016-12-22 18:07:54 +09:00
nkzawa
b8291abeac
improve the styled-component example
2016-12-22 17:16:33 +09:00
Dan Zajdband
c5d69f0585
Add/move examples ( #470 )
...
* Added redux and styled components (wip) examples.
* Updated examples readmes and package.json
* Fixed styled-components example
2016-12-21 21:10:54 -08:00
Arunoda Susiripala
1719738ed1
Allow to customize our babel configuration ( #466 )
...
* Add a way to customize babel configurations.
* Add babel configuration docs to README.
2016-12-21 17:36:00 -08:00
Arunoda Susiripala
f1c6ea3248
Fix Jest example app ( #458 )
...
* Add a working JEST example app.
* Add README.md
* Move react-test-renderer to devDeps.
* Add a newline to the .babelrc
2016-12-21 23:06:24 +09:00
Dan Zajdband
bacb42ead4
Updated README with new features and code fixes ( #444 )
...
* Updated README with new features and code fixes
* Removed staticMarkup option from docs.
* Fixed quiet parameter info.
2016-12-20 14:57:11 -08:00
Guillermo Rauch
b337433d14
Update index.js
2016-12-20 13:03:44 -08:00
Guillermo Rauch
1af5bc98bb
Update README.md
2016-12-20 12:45:27 -08:00
Guillermo Rauch
9056116c5b
Update Header.js
2016-12-20 12:44:23 -08:00
Guillermo Rauch
376661254d
Update index.js
2016-12-20 12:41:40 -08:00
Guillermo Rauch
a27f6b0af6
Update features.js
2016-12-20 12:41:26 -08:00
Guillermo Rauch
8129eea237
Update contact.js
2016-12-20 12:41:15 -08:00
Guillermo Rauch
36255e5c5d
Update about.js
2016-12-20 12:41:01 -08:00
Guillermo Rauch
2c2d7ad6d5
Update index.js
2016-12-20 12:40:26 -08:00
Guillermo Rauch
100c12b5fe
Update about.js
2016-12-20 12:39:34 -08:00
Guillermo Rauch
41c73a3aa7
Update Header.js
2016-12-20 12:39:15 -08:00
Guillermo Rauch
cded884581
Update post.js
2016-12-20 12:38:10 -08:00
Guillermo Rauch
587c976ef0
Update paragraph.js
2016-12-20 12:37:58 -08:00
Guillermo Rauch
b2c5d40b5f
Update about.js
2016-12-20 12:37:38 -08:00
Guillermo Rauch
e4d59c087d
Update README.md
2016-12-20 12:37:24 -08:00
Guillermo Rauch
35869daee5
Update Header.js
2016-12-20 12:36:30 -08:00
Guillermo Rauch
c4c63ab401
Update index.js
2016-12-20 12:36:03 -08:00
Guillermo Rauch
16cab95a57
Update index.js
2016-12-20 12:35:48 -08:00
Guillermo Rauch
f51696be08
Update blog.js
2016-12-20 12:35:34 -08:00
Guillermo Rauch
ff62d6f631
Update index.js
2016-12-20 12:35:11 -08:00
Guillermo Rauch
0754ac0790
Update about.js
2016-12-20 12:34:56 -08:00
Guillermo Rauch
dcf1187f58
Update index.js
2016-12-20 12:34:42 -08:00
Guillermo Rauch
7482ac6398
Update index.js
2016-12-20 12:34:27 -08:00
Guillermo Rauch
f4ccfd9e04
Update b.js
2016-12-20 12:34:15 -08:00
Guillermo Rauch
1b694bd8a8
Update a.js
2016-12-20 12:34:04 -08:00
Guillermo Rauch
280655da62
Update index.js
2016-12-20 12:33:47 -08:00
Arunoda Susiripala
141c045c68
Make next/router a client only API. ( #443 )
...
* Prevent using 'next/router' APIs inside 'getInitialProps'
* Remove incorrect documentation.
* Make next/router a client only API.
2016-12-20 09:27:43 -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
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
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
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
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
Arunoda Susiripala
fcd59adea1
Add support for webpack's CommonsChunkPlugin and remove next bundle ( #301 )
...
* Add example app which demonstrate the problem.
* Add the first working version.
* Fix lint issues.
* Add README.md
* Use /_next/main.js as the main file URI
* Add the support for loading the core next bundle.
* Optimize the output by removing Next modules from pages.
* Use the same package.json as master use.
* Change the example repo's README for simpler instructions.
* Change example projects package.json to support next build and start.
* Change main.js into commons.js.
* Add support for hot core reload and errors.
* Introduce require based on eval-script.
* Add error reporting support with hot reloading.
* Update README.md
2016-11-28 09:15:56 +09:00
nkzawa
4ea933725d
example: add missing dependencies and babel config
2016-10-29 22:20:29 +09:00
Tryggvi Gylfason
9ad0e57e6e
Update readme.md ( #128 )
2016-10-28 16:58:41 +09:00
nkzawa
9a78dd8d1c
fix jest example styles
2016-10-26 19:28:41 +09:00
Pavithra Kodmad
95719c956e
Adds jest configuration npm run test shows failed results ( #60 )
2016-10-26 19:17:02 +09:00
nkzawa
83400a8f38
fix usage of next/css
2016-10-25 17:16:54 +09:00
Dan Zajdband
e164074f8e
Added glamor css ( #38 )
...
* Added glamor css
* Using pseudoclasses instead of calling functions
* Updated readme using style instead of default import for css
2016-10-21 09:39:20 -07:00
Dan Zajdband
1477734211
Added linting using standard ( #27 )
...
* Added linting using standard
* Linting on test
2016-10-16 17:00:17 -07:00
Guillermo Rauch
89089f5546
add some basic examples
2016-10-15 23:31:05 -05:00