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

223 commits

Author SHA1 Message Date
Greenkeeper 2390c87cb4 chore(package): update husky to version 0.13.1 (#862) 2017-01-23 13:50:07 +01:00
Greenkeeper 13d6c04acf chore(package): update husky to version 0.13.0 (#853) 2017-01-21 16:16:06 -08:00
Guillermo Rauch cec8f9dd58 Release 2.0.0-beta.18 2017-01-20 18:45:23 -08:00
Guillermo Rauch 3765b14993 bump styled-jsx 2017-01-20 18:26:27 -08:00
Greenkeeper f085a6d9a0 chore(package): update styled-jsx to version 0.4.5 (#847) 2017-01-20 23:15:58 +01:00
Greenkeeper 318f110a8e chore(package): update babel-generator to version 6.22.0 (#833) 2017-01-20 08:16:02 +01:00
Greenkeeper a05a5d2004 chore(package): update babel-plugin-transform-async-to-generator to version 6.22.0 (#834) 2017-01-20 08:15:31 +01:00
Greenkeeper 865f806058 chore(package): update babel-plugin-transform-class-properties to version 6.22.0 (#835) 2017-01-20 08:15:05 +01:00
Greenkeeper 118055516c chore(package): update babel-plugin-transform-object-rest-spread to version 6.22.0 (#836) 2017-01-20 08:14:44 +01:00
Greenkeeper 2aed328eee chore(package): update babel-plugin-transform-runtime to version 6.22.0 (#837) 2017-01-20 08:14:10 +01:00
Greenkeeper 279fc99e31 chore(package): update babel-preset-es2015 to version 6.22.0 (#838) 2017-01-20 08:13:37 +01:00
Greenkeeper 901ab5f5d7 chore(package): update babel-preset-react to version 6.22.0 (#839) 2017-01-20 08:12:55 +01:00
Greenkeeper 21a22b9791 chore(package): update babel-runtime to version 6.22.0 (#840) 2017-01-20 07:41:22 +01:00
Greenkeeper cfb1c0fbd5 chore(package): update babel-core to version 6.22.1 (#842) 2017-01-20 07:41:11 +01:00
Greenkeeper 011914906b chore(package): update styled-jsx to version 0.4.4 (#817) 2017-01-18 19:56:23 +01:00
Greenkeeper c1f2b92a27 chore(package): update source-map-support to version 0.4.10 (#809) 2017-01-18 00:25:40 +09:00
Greenkeeper 0627378bc2 chore(package): update glamor to version 2.20.22 (#804) 2017-01-17 08:20:43 +01:00
Greenkeeper 807d4be9ff chore(package): update styled-jsx to version 0.4.3 (#792) 2017-01-17 00:23:03 +09:00
nkzawa da8395883c bump webpack 2017-01-16 19:17:01 +09:00
Greenkeeper 782807bb8b chore(package): update friendly-errors-webpack-plugin to version 1.1.3 (#783) 2017-01-15 19:59:02 -08:00
Greenkeeper 876716569c chore(package): update styled-jsx to version 0.4.2 (#784) 2017-01-15 17:55:11 -08:00
Greenkeeper 6fd5cfd87d chore(package): update source-map-support to version 0.4.9 (#777) 2017-01-15 23:50:20 +09:00
Greenkeeper cebed46014 chore(package): update mime-types to version 2.1.14 (#772) 2017-01-15 00:19:36 -08:00
Guillermo Rauch 0b2b56f174 Release 2.0.0-beta.17 2017-01-12 08:36:29 -08:00
Naoyuki Kanezawa dbecc2a701 Use dynamic entry feature of webpack (#750)
* update webpack version and use dynamic entry feature of it

* fix typo
2017-01-12 07:39:04 -08:00
Arunoda Susiripala 1dc52dbc6c New test setup (#640)
* Use jest-cli instead of gulp plugin.

* Use jest-cli instead of gulp plugin.

* Move fixtures into the examples dir.

* Move test code of example app to the basic example.

* Add isolated tests for server/resolve

* Allow tests to use cheerio.

* Use portfinder to get a unique port.

* Move back integration tests into the example dir.

* Introduce next-test-utils.

* Remove gulp-jest

* Add coveralls support.

* Use transpiled version of code in dist.
This is to make sure same file gets covered
by both unit/isolated tests and integration tests.

* Add support for source maps.

* Use code from dist always.

* Use nyc to stop instrument.

* Add integration test suite for production usage.

* Use jest-cli.

* Add support for running e2e tests.

* Check gzipPath with fs.stat before serving
Otherwise, serve package might throw issues other than ENOENT

* Install chromedriver with npm install.

* Install chrome on travis-ci.

* Add --forceExit to Jest.

* Run tests only on Node v6.
That's because selenium-webdriver only supports
Node 6 LTS.

* Use chromedriver NPM module to install chromedriver.

* Use wd as the webdriver client.

* Run chromedriver before tests.

* Run travis for both node 4 and 6

* Remove unwanted npm install script.

* Move some common text utilities to next-test-utils

* Add lint checks and testing in npm prepublish hook.

* Use npm on travis-ci.
We are having some caching issues with yarn and chromedriver.

* Make tests work on windows.\n But chromedriver doesn't work.

* Clean up dependencies.

* Run chromedriver in background without any tools.

* Fix a typo in the code.

* Use ES6 features used in node4 inside the gulpfile.

* Add some comments.

* Add support for running in windows.

* Stop chromedriver properly on windows.

* Fix typos.
2017-01-12 13:14:49 +09:00
Arunoda Susiripala b7e57f9347 Implement "Immutable build artifacts" feature (#745)
* Write BUILD_ID when building.
It's a random id (uuid.v4())

* Add buildId to the core JS files.

* Add immutable cache-control header.
Only if the buildId is matched.

* Set '-' as the dev buildId always.

* Add buildId handling for JSON pages.
2017-01-11 12:16:18 -08:00
Greenkeeper ab5c69ba9d chore(package): update babel-preset-env to version 1.1.8 (#726) 2017-01-10 11:42:24 -08:00
Arunoda Susiripala 88e4adfc2a Add case sensitive checks for imports and JSON page resolver (#697)
* Add case-sensitive-paths-webpack-plugin plugin.

* Add case-sensitive check for server/resolve.
2017-01-08 18:12:29 -08:00
Arunoda Susiripala 042ffa1175 Add correct content-type header for gzipped version. (#705) 2017-01-08 18:12:10 -08:00
Greenkeeper 9163da459e chore(package): update styled-jsx to version 0.4.1 (#700) 2017-01-08 12:30:55 -08:00
Greenkeeper c6842629ba chore(package): update react-dom to version 15.4.2 (#682) 2017-01-07 09:20:05 +09:00
Greenkeeper 9cf109a456 chore(package): update react to version 15.4.2 (#683) 2017-01-07 09:19:43 +09:00
Greenkeeper 9b8b3290c7 chore(package): update babel-preset-env to version 1.1.6 (#685) 2017-01-07 09:19:30 +09:00
Guillermo Rauch 7ebfec088f Release 2.0.0-beta.16 2017-01-06 07:25:05 -08:00
Guillermo Rauch 221a5eadf2 Release 2.0.0-beta.15 2017-01-05 17:20:53 -08:00
Guillermo Rauch d387c52179 bump styled-jsx 2017-01-05 17:20:33 -08:00
Guillermo Rauch 05cbcb46af Release 2.0.0-beta.14 2017-01-05 13:03:52 -08:00
Greenkeeper b78ab40c9c chore(package): update gulp-jest to version 1.0.0 (#653) 2017-01-05 13:34:26 +09:00
Greenkeeper ef25cf698d chore(package): update webpack-hot-middleware to version 2.15.0 (#654) 2017-01-05 13:34:14 +09:00
Greenkeeper c01e306022 chore(package): update babel-preset-env to version 1.1.5 (#660) 2017-01-05 13:31:55 +09:00
Guillermo Rauch 45bc4fe465 Release 2.0.0-beta.13 2017-01-03 11:09:24 -08:00
Greenkeeper 0cce0962d2 chore(package): update ansi-html to version 0.0.7 (#612) 2017-01-01 21:20:57 -08:00
Guillermo Rauch 43e2707e5d Release 2.0.0-beta.12 2017-01-01 11:41:28 -08:00
Guillermo Rauch 81a67581ed Release 2.0.0-beta.11 2016-12-31 21:57:58 -08:00
Guillermo Rauch f2483cfe1c Release 2.0.0-beta.10 2016-12-31 20:26:59 -08:00
Guillermo Rauch 697010f9ae Release 2.0.0-beta.9 2016-12-31 12:37:31 -08:00
Guillermo Rauch ec895a13a3 Release 2.0.0-beta.8 2016-12-31 11:43:05 -08:00
nkzawa 629051db2c package.json: set publishConfig.tag 2016-12-31 23:01:20 +09:00
nkzawa 72b910a117 Release 2.0.0-beta.7 2016-12-31 22:19:57 +09:00
Guillermo Rauch 56ca84bae2 Release 2.0.0-beta.6 2016-12-30 18:39:08 -08:00
Greenkeeper 6d8079a261 chore(package): update glamor to version 2.20.20 (#578) 2016-12-30 12:56:45 -08:00
nkzawa 98db4b51c6 bump styled-jsx 2016-12-30 16:18:32 +09:00
Greenkeeper 84fc6781bb chore(package): update glamor to version 2.20.19 (#567) 2016-12-29 14:37:46 -08:00
Greenkeeper 892da7eb73 chore(package): update glamor to version 2.20.18 (#551) 2016-12-28 12:23:31 -08:00
Naoyuki Kanezawa ff117b7ed6 Webpack 2 (#449)
* upgrade webpack

* fix WatchRemoveEventPlugin for webpack2

* use webpack2 for building for files

* bump webpack

* bump webpack

* monkeypatch watchpack
2016-12-28 10:16:52 -08:00
Greenkeeper 4fdfaa5ada chore(package): update glamor to version 2.20.17 (#548) 2016-12-28 17:39:26 +09:00
nkzawa ae102f96f0 Release 2.0.0-beta.5 2016-12-28 14:40:28 +09:00
Guillermo Rauch 58ce55f305 Release 2.0.0-beta.4 2016-12-27 15:34:54 -08:00
Naoyuki Kanezawa 798fd3c1e8 Fix custom document compilation (#534)
* compile _document using webpack

* don't emit the bundle file of _document.js

* exclude _document.js from minChunks of CommonsChunkPlugin

* handle creation/removal of pages/_document.js

* improve path handlings
2016-12-27 15:28:19 -08:00
Greenkeeper 65e7ab0227 chore(package): update glamor to version 2.20.15 (#542) 2016-12-27 15:27:35 -08:00
Greenkeeper 9c7da4ead9 chore(package): update glamor to version 2.20.14 (#539) 2016-12-27 23:30:59 +09:00
Greenkeeper 9e69ba7b49 chore(package): update glamor to version 2.20.13 (#535) 2016-12-27 17:34:37 +05:30
Guillermo Rauch 1456af8fd6 Release 2.0.0-beta.3 2016-12-26 14:17:09 -08:00
Greenkeeper df997faeb0 chore(package): update styled-jsx to version 0.3.0 (#529) 2016-12-26 11:47:31 -08:00
Arunoda Susiripala 157d9aebf7 Remove strict-mode from the eval-script. (#520)
* Remove strict-mode from the eval-script.

* Use exact version for babel-plugin-transform-remove-strict-mode

* Use babelrc=false
2016-12-26 12:29:53 +09:00
Greenkeeper 499a4f111a chore(package): update styled-jsx to version 0.2.4 (#519) 2016-12-25 16:29:23 -08:00
Greenkeeper 78e21d0f74 chore(package): update source-map-support to version 0.4.8 (#514) 2016-12-25 23:04:49 +09:00
Greenkeeper 87e136501f chore(package): update benchmark to version 2.1.3 (#509) 2016-12-24 09:27:50 -08:00
nkzawa b9f875318e Release 2.0.0-beta.2 2016-12-24 11:05:22 +09:00
nkzawa aeeb531dff bump styled-jsx 2016-12-24 11:04:21 +09:00
Greenkeeper 44c73b9970 chore(package): update webpack-hot-middleware to version 2.14.0 (#498) 2016-12-23 11:20:09 -08:00
Greenkeeper 9e204a39ac chore(package): update source-map-support to version 0.4.7 (#476) 2016-12-22 20:42:10 +09:00
nkzawa eb9a61e9e7 Release 2.0.0-beta.1 2016-12-22 16:11:55 +09:00
Arunoda Susiripala c60b818de4 Add missing main files to NPM. (#464) 2016-12-21 17:40:26 -08:00
Benjamin E. Coe 9ac79ed1ae fix: expose babel presets for upstream libraries (#463) 2016-12-21 11:26:55 -08:00
nkzawa 95eb20e6a2 Release 2.0.0-beta.0 2016-12-21 14:11:00 +09:00
Greenkeeper 8c54820d5c chore(package): update styled-jsx to version 0.2.2 (#447) 2016-12-20 19:07:10 -08:00
Arunoda Susiripala e839a0f6d5 Make the linting process faster. (#446) 2016-12-20 17:13:11 -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
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