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

1832 commits

Author SHA1 Message Date
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
Tibor Vukovic e8f39ad74c Update hapi example to support hapi@17 (#3357) 2017-12-05 10:42:57 -08:00
Arunoda Susiripala 03507501cd Release 4.2.0 2017-12-04 15:30:14 -08:00
Arunoda Susiripala 820e3ff716
Always load pages with ".js" extension (#3393)
* Always fetch pages with '.js' extention from client side.

* Load error page always from _error.js rather _error/index.js

* Load pages from page.js instead of page/index.js from the client for static exports.

* Update index.js

* Simplify the path re-write logic in the webpack pages-plugin.
2017-12-05 04:49:53 +05:30
Tim Neutkens c1cefad2fd Update yarn.lock 2017-12-04 11:42:38 -08:00
Tim Neutkens 713dd816ad Merge branch 'master' of github.com:zeit/next.js into canary
# Conflicts:
#	examples/with-mobx-state-tree/components/Page.js
#	examples/with-mobx-state-tree/pages/index.js
#	examples/with-mobx-state-tree/pages/other.js
#	examples/with-mobx-state-tree/store.js
#	server/document.js
2017-12-04 11:16:39 -08:00
Giuseppe 5daafa4f87 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
2017-12-04 08:15:30 -08:00
Kanjie Lu cab6341545 fix typo in readme.md (#3385) 2017-12-04 08:14:19 -08:00
brandon 64c69866fe 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.
2017-12-03 15:01:48 -08:00
dsantic 3a651971e1 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
2017-12-03 14:58:46 -08:00
Fouad Matin 2528779394 examples: add create-next-app (#3377)
* examples: add create-next-app

* fix with-typescript readme
2017-12-02 20:30:17 -08:00
Arunoda Susiripala f6bd1df6aa
Fix canary tests on CIs (travis, appveyor) (#3375)
* Dump address.

* Use zero as the port.

* Limit test cases.

* throw address.

* Fail a specific error.

* Set a port manually.

* Make sure jest is working properly.

* Set the jest timeout time to 5 min.

* Run the actual test

* Run all production tests on Travis.

* Set the Jest default timeout to 5 min for all integration tests.

* Remove production only testing.

* Remove unwanted console.log

* Remove the addition number from test case

* Set the static export test jest timeout to 5 min.

* Run tests again if they failed once.
2017-12-03 08:12:12 +05:30
Gregoor 6ad54704da Update relay example dependencies & .gitignore (#3365) 2017-12-02 18:07:42 -08:00
Sergio Xalambrí cd0e13df01 Add example of Nodemon on a custom server (#3374) 2017-12-02 15:44:38 -08:00
Tim Neutkens 36f6179a52 Check if tmpdir is writeable. Not full path 2017-12-02 09:52:34 -08:00
Tim Neutkens 8cd6bd3fc3
Add check for writeable directory (#3370)
* Add check for writeable directory

Followup of https://github.com/zeit/now-cli/issues/175

* Add link to docs
2017-12-02 18:13:39 +01:00
Benjamin Atkin 57c6f80d72 use underscore in node_modules in travis config (#3369)
The cached directory for node_modules has a dash. AFAIK node uses an underscore, not a dash, for node_modules.

Alternatively, remove it from cached directories if the typo isn't causing any problems.
2017-12-02 18:12:57 +01:00
Tim Neutkens df4974eac8
Add runtime environment example (#3371) 2017-12-02 18:08:53 +01:00