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

1799 commits

Author SHA1 Message Date
Arunoda Susiripala 44de0f15c9 Release 4.2.3 2018-01-13 10:41:49 +05:30
Arunoda Susiripala b89b05bc76 Release 4.2.2 2018-01-13 10:38:32 +05:30
Arunoda Susiripala 0b6575b470 Use our static file rendering machanism to serve pages.
This should work well since the file path for a page is predictable.
2018-01-13 10:36:50 +05:30
Leo Lamprecht 96f6de2cd5
Removed triangles and linked company name 2018-01-12 10:30:48 +01:00
Tim Neutkens e179c98aa8
Revert "remove relative path to babel-runtime (#3119)" (#3547)
This reverts commit 8eb8034236.

# Conflicts:
#	server/build/webpack.js
2018-01-08 16:44:52 +01:00
Wei Zhu 9263ad13f7 Update Ant Design example (#3485) 2018-01-06 17:14:22 +01:00
Cory House b5739d5361 Grammar fixes (#3531) 2018-01-03 14:06:45 +01:00
Tim Neutkens 57a0fc432c
Clean up webpack config, increase build speed (#3487)
* Speed up next build

* Document webpack config

* Speed up next build

* Remove comment

* Add comment

* Clean up rules

* Add comments

* Run in parallel

* Push plugins seperately

* Create a new chunk for react

* Don’t uglify react since it’s already uglified. Move react to commons in development

* Use the minified version directly

* Re-add globpattern

* Move loaders into a separate variable

* Add comment linking to Dan’s explanation

* Remove dot
2018-01-03 13:43:48 +01:00
Daniel Bayerlein ffe48048de Update license year (#3522) 2018-01-01 11:31:21 +01:00
Tim Neutkens a34f034021
Document serialization of data (#3516)
* Document serialization of data

* Add date
2017-12-29 21:33:49 +01:00
credifiable e80d9b4696 Updated material-ui-next URI (#3509) 2017-12-28 16:25:11 +01:00
Wiktor Tkaczyński 9d059f6007 Add support for Fragments in Head (#3502)
* Add support for Fragments in Head.

* Add test cases

* Check if Component has custom key

* Upgrade to React 16.2.0
2017-12-28 07:12:27 +05:30
Arunoda Susiripala 337fb6a9aa Remove buildId from dynamic import URLs (#3498)
* Use without .js for the filename.

* Modify the chunk filename to add .js via webpack

* Add import chunk's hash to the filename via webpack.

* Remove buildId from dynamic import urls.

* Make sure next-export work with dynamic imports
2017-12-27 19:59:17 +01:00
Jerome Fitzgerald 46b57a6eff [refactor] with-apollo-and-redux: 2.0.0 (#3484)
* [refactor] with-apollo-and-redux: 2.0.0

- This ports over `with-apollo` (w/ recent `withRouter` fix and addition
for Post) along with implementing `apollo-cache-redux` #3463
- The `redux` side of things is lacking (it is the *same* as the
original example)
- Created a `routes.js` for use on Server and Client Side (to expand the
PostList functionality)
- SSR is maintained
- Redid the "PostVote" a bit... sorry. 😬️

Possible todo(s):
- Add in API and Clock Examples from `with-redux` to show Apollo and
Redux working together a bit more
- redux-saga (I personally use this, may be too opinionated for the base
example though)

Packages updated:
- apollo-cache-redux
- apollo-client-preset
- graphql
- graphql-anywhere
- graphql-tag
- isomorphic-unfetch
- next-routes
- prop-types
- react
- react-apollo
- react-dom
- redux

* [refactor] fix linting issues

When I run `yarn lint` explicitly these were caught, but not doing a
build proper. Apologies on that!

* [chore] 📦️ package.json: like other examples

* [refactor] +apollo-cache-inmemory, -apollo-cache-redux

Separation of Apollo and Redux. 😄️
We could stand to use a few actual examples of Redux, though this is a
good starting block.
Some other code cleanup as well.
2017-12-27 19:57:57 +01:00
zollero e4acd7db59 Add the closed parenthesis. (#3506) 2017-12-27 10:40:41 +01:00
Sergio Xalambrí ffdf4e3228 Add with-data-prefetch example (#3420)
* Add with-data-prefetch example

* Fix typos

* Improve example code
2017-12-26 21:46:46 +01:00
Tim Neutkens 29c4035eb5 Remove config from bin/next since it's unused (#3496)
* No need to get the config here

* Remove unused functions
2017-12-24 10:05:23 -08:00
Tim Neutkens c23046dc79
Rewrite combine-asset-plugin using correct event (#3486)
* Speed up next build

* Remove comment

* Add comment

* Add comments
2017-12-22 10:25:35 +01:00
Ricardo Pierre-Louis f2989c5739 Examples/with reflux (#3476)
* Update withData.js (#3458)

#3234

* Begun with-reflux example

* Built with-reflux example

* Built with-reflux example
2017-12-19 10:33:01 +01:00
Brice BERNARD 5bb710a0d2 [with-jest] Upgrade to jest 22 and so remove raf deps (#3477) 2017-12-19 10:29:29 +01:00
Petr Huřťák 9bc681bea1 Fix glamorous example (#3462)
It used old version 1 and when I run npm run dev it returned 500.
Once I updated to 4, everything works as expected.
2017-12-18 11:28:57 +01:00
Abdulhalim Kara 69aa647535 Update withData.js (#3458)
#3234
2017-12-18 11:27:16 +01:00
Brice BERNARD 35ffad968c [with-apollo] Fix missing rootContext (#3468) 2017-12-18 11:25:06 +01:00
Maciej Kasprzyk 4a3aa261d6 fix: page-loader load script path (#3455) 2017-12-14 14:01:54 -08:00
Maciej Kasprzyk a3aa870b74 feat: error when exported path has no backslash (#3456) 2017-12-14 13:22:04 -08:00
Tyll Weiß 702dd5d3f4 Resolve the next.config.js up the tree to avoid it not being loaded when a source dir was specified via the CLI - solves #3379 (#3380) 2017-12-13 18:49:26 -08:00
Nishant 9c88ea8c58 fix grammatical error in readme file (#3443) 2017-12-13 01:49:44 -08:00
Harri Hälikkä 1135075513 Update glob-promise to latest 3.3.0 (#3447)
v3.2.0 pulls in 20+ MB worth of devDeps of which some are
deprecated, and these are shown as warnings to the users
of Next.js. Dropping these devDeps is the only change
between 3.2.0 and 3.3.0 (see
https://github.com/ahmadnassri/glob-promise/releases)

Related glob-promise issue:

- https://github.com/ahmadnassri/glob-promise/pull/52
2017-12-13 01:46:37 -08:00
Sergio Xalambrí 5040de3b3f Fix SVG component example dependencies (#3448) 2017-12-13 01:44:11 -08:00
Matt Greer e0980f7a45 readme: fix next() api documentation (#3435) 2017-12-11 13:37:36 -08:00
Adam Stankiewicz 6f55d3a5ad Mention on demand entries are development-only (#3433)
Fixes #3430
2017-12-10 12:18:17 -08:00
Bertrand Marron c8d2da68cf Use "preset-env" option to configure env preset in with-jest example (#3424) 2017-12-08 20:01:05 -08:00
Thierry Charbonnel 4cab5228a0 Github gh-pages Example (#3383)
* gh-page-exemple

* add babelrc for gh-page exemple

* Fix example (exemple in fr)

* example fix typo

* lint fix
2017-12-08 18:17:04 -08:00
Tim Neutkens 2cbc53f6a1 Release 4.3.0-canary.1 2017-12-08 15:17:23 -08:00
Tim Neutkens 52ccc14059 Merge branch 'canary'
# Conflicts:
#	examples/with-markdown/readme.md
#	lib/page-loader.js
#	package.json
#	server/build/plugins/pages-plugin.js
2017-12-08 15:11:37 -08:00
Tim Neutkens 67643e255a Release 4.2.1 2017-12-08 14:58:21 -08:00
Tim Neutkens 66e3a6c5ea Remove webpack-stats.json 2017-12-08 14:42:39 -08:00
Ramin B 5a5b3b6702 Downgrade strip-ansi to support IE11/Google Fetch (#3403)
A few discussions:
https://github.com/zeit/next.js/issues/2747
https://github.com/zeit/next.js/issues/3126
# Conflicts:
#	package.json
2017-12-08 14:40:17 -08:00
Ramin B 2a6557d6cd Downgrade strip-ansi to support IE11/Google Fetch (#3403)
A few discussions:
https://github.com/zeit/next.js/issues/2747
https://github.com/zeit/next.js/issues/3126
2017-12-08 14:38:28 -08:00
PrudviGali bd20deb9ba dynamic imports fix for non-webpack environments. (#3414)
* Added condition to check whether method exists or not

* Conditional loop based on feature detection

* Added code comments as requested by the author
2017-12-07 17:50:38 -08:00
Cory Simmons 5ce05c2d22 Update readme.md (#3417)
Migrating this to env since that's what's built into next already (and the recommendation of Babel team).
2017-12-07 15:42:17 -08:00
Tim Neutkens 51f120ec70 Add markdown-in-js example (#3410) 2017-12-06 18:20:38 -08:00
Tim Neutkens 24c1ac6ca9
Use canary for all example downloads (#3411) 2017-12-06 18:12:42 -08:00
Tim Neutkens b64365b550 Add markdown-in-js example (#3410) 2017-12-06 16:59:32 -08:00
Thomas Greco 278f58b54b pushing updated emotion example (#3344)
* pushing updated emotion example

* Fix linting
2017-12-05 16:46:06 -08:00
Patryk 732696e840 Add a charset to the default Content-Type (#3333) 2017-12-05 16:00:58 -08:00
Tim Neutkens e2bcb039cf
Add .jsx extension support (#3376)
* Add .jsx extension

* examples: add create-next-app (#3377)

* examples: add create-next-app

* fix with-typescript readme

* Upgrading with-flow example to the latest flow-bin ver. 0.59.0 (#3337)

For upgrading I used flow-upgrade module by https://yarnpkg.com/en/package/flow-upgrade

* doc'd fs-routing option & added note on `passHref` (#3384)

2 changes:

`passHref` - just added a cautionary note on the importance of `passHref`. We had a few days of no-href links on our site b/c we used a custom component instead of a raw `<a>` tag,  and Google bot wasn't crawling our links (confirmed in Google cache). Hurt our SEO a bit, so I thought it was worth noting.


`useFileSystemPublicRoutes` - this is mentioned in https://github.com/zeit/next.js/pull/914 , but it doesn't appear any doc was actually added. We use `next-routes`, and we were serving all the files in `/pages/` in addition to their route patterns (ie duplicate content), which can be a pain w/ SEO and duplicate content.

* fix typo in readme.md (#3385)

* Upgrade styled-jsx to v2.2.1 (#3358)

* Pulled encoding to top of head (#3214)

* Remove next.d.ts to use @types/next (#3297)

* Add with-mobx-state-tree example (#3179)

* Adapt with-mobx example for with-mobx-state-tree

* Remove unnecessary lastUpdate parameter to show off snapshot

* update readme

* make other.js more closely mimic index.js

* Upgrade styled-jsx to v2.2.1

Includes some bug fixes.

* Fix linting

* Make sure import that doesn’t end in .jsx works

* Move tests

* Show error when .js and .jsx both exist

* Remove .jsx when importing from ‘path.jsx’

* Fixes

* Get .jsx resolver back

* Revert "Get .jsx resolver back"

This reverts commit 6f76712caa400e6f41a6a32ff80189a95b194cce.

* Revert "Revert "Get .jsx resolver back""

This reverts commit 69e592e86e53f28d0e1f78009196b76f2f831866.

* Add remove .jsx to preset

* Remove jsx resolver

* Revert "Remove jsx resolver"

This reverts commit 5e3ef1aca134de47657d91485809cd801e13329f.

* Revert "Revert "Remove jsx resolver""

This reverts commit 8248e5066cff1c7e33dac2e5a88ffe6856e3fc4e.

* Revert "Revert "Revert "Remove jsx resolver"""

This reverts commit 2a6d418a227ea4e59874b0374628ef497e527c52.

* Make 1 component not use .jsx
2017-12-05 15:46:06 -08:00
Tim Neutkens 4be6a521ed
Make sure we show a nice message when there is no default export (#3400) 2017-12-05 15:35:30 -08:00
Brice BERNARD 48ed89f93d [with-apollo] Fix warning about missing _allPostsMeta and more (#3397)
* Fix coding style

* Fix className type

* Upgrade deps

* Fix coding style of lib/

* Simplify onSubmit handler

* Fix missing missing _allPostsMeta warning

* Follow lint rules
2017-12-05 10:50:45 -08:00
Brice BERNARD 25005d158b [with-jest] Fix tests (#3395)
* Fix tests

* Follow linting rules
2017-12-05 10:43:30 -08:00