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

355 commits

Author SHA1 Message Date
Simon Hänisch 7fe20ed285 update readme for using-preact example (#3062)
There was a missing "is" in one of the sentences.
2017-10-09 22:55:56 +02:00
Guilherme Diego ebfa08fdff Add details to with-scoped-external-css (#3055) 2017-10-08 16:55:17 +02:00
Tom MacWright 559c25253e Configurable opts for babel-preset-env + babel-plugin-transform-runtime (#2991)
* Configurable opts for babel-preset-env + babel-plugin-transform-runtime

This adds `preset-env` and `transform-runtime` options to the
`next/babel` Babel preset, which are then passed through to those
presets and transforms. This allows configuration to keep next.js
from the default 'maximum' transform, and instead use built-in
implementations of globals, classes, async, and other commonly-supported
features.

Fixes #2989

* Use spread notation instead of Object.assign
2017-10-07 08:38:59 +02:00
James Hegedus 594b214a23 Update with-firebase-hosting. (#3032)
Simplify scripts.
2017-10-05 08:28:46 +02:00
Ryan Ponce 97a6a62a6b Fix typo in README (#3038) 2017-10-03 22:13:07 +02:00
Theodore Vorillas de8ecbbe19 Added Fastify example (#3034) 2017-10-03 07:58:26 +02:00
Alain df5b96adec typo on line 7 (#3031)
bsb make world instead of nake world.
2017-10-02 16:12:52 +02:00
Nicholas Rakoto 016920e3e0 Example: Improve ReasonML example (#3021)
* Git ignore with-reasonml/lib folder

The lib folder contains code generated by BuckleScript, it shouldn't be
versioned.

* Fix, case sensitive paths

Next.js use case-sensitive-paths-webpack-plugin and BuckleScript tries
to maintain the filename case.

* Refactor, use a .babelrc file instead of a babel config in package.json

This is the official recommended way in Next.js

* Enable way, way, waaaay nicer error messages!

Adds `"bsc-flags": ["-bs-super-errors"]` to the bsconfig.json file.

https://reasonml.github.io/community/blog/#way-way-waaaay-nicer-error-messages

* Fix npm scripts & use concurrently to run bsb & next in parallel for dev

* Upgrade bs-platform

* Replace statefulComponent with new reducerComponent

https://github.com/reasonml/reason-react/blob/master/HISTORY.md#024

* Upgrade with-reasonml example to next.js 3
2017-09-30 22:02:45 +02:00
Tim Lucas bf1927436c Update the hash-statics example to support sub-dirs (#3015) 2017-09-30 09:00:23 +02:00
Jimmy Moon 846f734da3 Add webpack-bundle-size-analyzer example (#3013) 2017-09-28 22:03:59 +02:00
José Netto 362fcf917a Update with-dotenv example README.md to add troubleshooting information (#2995) 2017-09-26 23:06:29 +02:00
Christian Alfoni 094bb1f7b9 Add Cerebral example (#2976) 2017-09-23 16:30:22 +02:00
estrada9166 4bd30c8713 Example: Form handler with Redux and React-bootstrap (#2949)
* Example: Form handler with Redux and React-bootstrap

* inputChange refactoring

* Destructuring inputChange
2017-09-19 21:24:28 +02:00
Srigi d03ce5386d Example: with Freactal (#2955)
* Define dependencies & NPM stuff for the example

* Setup Babel preset

* Add sources of working version of example

* Indicate ajax loading state

* Add readme file

* Remove unneeded .babelrc
2017-09-17 23:16:19 +02:00
Shaleen Jain 093b091a5c Update styled components example (#2945)
* Update styled components example

Updates the styled-components example to pass HOC to renderPage() and fix SSR.

* fix lint errors
2017-09-14 14:17:18 +02:00
Márcio Vinícius Oliveira Sena 87d7ad2fc0 Example: Overwriting meta tag with react-helmet (#2942) 2017-09-12 14:55:40 +02:00
David Nguyen 3e8d2b37bb added with-noscript example (#2767) 2017-09-08 23:33:15 +02:00
Sergio Xalambrí 8b507a7943 Example: Add asset imports example (#2864) 2017-09-08 23:21:06 +02:00
Andrey Marchenko b66490835c Corrected dependencies for preact and inferno (#2583)
* Corrected dependencies for the preact example. Require react and react-dom

* Corrected dependencies for the inferno example. Require react and react-dom
2017-09-08 23:15:03 +02:00
starriv ace748dcfe More elegant application of antd (#2840)
* Update .babelrc

* Create index.js

* Update index.js

* Update index.js

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Fix linting errors
2017-09-08 23:13:52 +02:00
Tim Neutkens 6e88780419 Add missing variables (#2905) 2017-09-05 21:43:31 +02:00
Kent C. Dodds 32c3dd0476 docs(jest): add note about .babelrc (#2911)
Closes #2895
2017-09-05 18:27:17 +02:00
Sergio Xalambrí e13bb3f62f Example: hashed statics (#2891)
* Add hashed statics example

* Fix linting
2017-09-02 00:35:45 +02:00
Brikou CARRE 32d9b75d55 Use https to prevent mixed content when served over https (#2741) 2017-09-01 11:54:03 +05:30
Arunoda Susiripala 8f874f050c [WIP] Use buildId in chunk urls as well (#2873)
Use buildId in chunk urls as well
2017-08-31 05:47:06 +05:30
Sergio Xalambrí fd198d28a8 Example: with absolute imports (#2863)
* Add with-absolute-imports example

* Fix examples repo urls to point to master instead of v3-beta
2017-08-30 20:03:36 +02:00
Matteo Mazzarolo a142848ef5 Added side note about enabling gzip on Koa (#2867)
I'll share this small snippet here, it might be useful.
2017-08-30 17:45:28 +02:00
Arunoda Susiripala 56662b4d84 Add/with router (#2870)
* Add withRoute HOC

Rebased (squashed)
- removed routerToProps
- updated hoist-non-react-statics
- improved propTypes

* Expose the whole Router instead of the route.

* Make the example simple.

* Update examples and the readme.

* Add a test case.
2017-08-30 19:37:12 +05:30
Tim Neutkens eba9ebef5f Merge v3-beta into master (#2809)
* Add examples/with-redux-code-splitting. (#2721)

* #1757 Relay Modern Example (#2696)

* Add ReasonML example (#2640)

* Add ReasonML example

* Add a gitignore specifically for the reasonml example

* Allow custom className for <Main /> (#2802)

* 3.0.2

* Remove beta information from the README.

* 3.0.3

* Remove unnecessary lookup in example with emotion (#2731)

* Document SCSS/Less (#2742)

* Document SCSS/Less

* Add missing word

* Add docs for examples dir

* Add extra example

* uppercase J

* Add with pkg example (#2751)

* Add custom server micro example (#2750)

* Ease running multiple examples at the same time with process.env.PORT (#2753)

* Add line-height rule for error page h2 (#2761)

* Add support for fetching multiple translation files (#2743)

* Add support for fetching multiple translation files

* Cleanup

* Clear missed interval (#2611)

* clear missed interval

* remove trailing whitespace

* Relay Modern Example (#1757) (#2773)

* Simplification of Relay Modern Example (#1757) (#2776)

* Use deterministic names for dynamic import (#2788)

* Always use the same name for the same dynamic import.

* Add unit tests for the modulePath generation.

* Allow tests to run correctly on Windows.

* Make the chunk name a bit pretty.

* Fix tests to run on Windows.

* 3.0.4

* Revert "Make the chunk name a bit pretty." (#2792)

This reverts commit 0c9e8cf2271955e74ab9f752b5869b98c1dc60f9.

* 3.0.5

* Use _ as the divider for dynamic import name splitter. (#2793)

Using - gives us some weird webpack errors.

* 3.0.6

* next/dynamic Error Message Tweaks (#2798)

* Fixed issue (#2804)

https://github.com/zeit/next.js/issues/2800

* docs(material-ui): move the source code to Material-UI repository (#2808)
2017-08-27 22:13:35 +02:00
Julian Wilson b543795fc0 Clarify usage of connect in README.md (#2845)
Added a quick example of how to use `connect` in `react-redux` as there are no examples in this example.
2017-08-27 20:56:52 +02:00
Matija Marohnić 3c92524b06 Update example with emotion (#2837)
* Update example with emotion

Emotion is now split into separate packages using Lerna.

* Update Next.js in emotion example
2017-08-24 08:27:49 +02:00
Brikou CARRE c689bc9f8b Simplify condition in mobx example (#2812) 2017-08-19 18:02:40 +02:00
Leo Lamprecht 18e447afc5 Linked post about Next.js + Electron 2017-08-19 16:37:09 +02:00
Olivier Tassinari 232ba01f84 docs(material-ui): move the source code to Material-UI repository (#2808) 2017-08-18 22:42:45 +02:00
Penn Su ccc9ff2201 Fixed issue (#2804)
https://github.com/zeit/next.js/issues/2800
2017-08-18 18:46:30 +02:00
Petr Vlček ed0c144af9 Simplification of Relay Modern Example (#1757) (#2776) 2017-08-15 07:50:56 +02:00
Petr Vlček 708193d227 Relay Modern Example (#1757) (#2773) 2017-08-14 18:41:12 +02:00
Denis Lukov 726499ff14 Clear missed interval (#2611)
* clear missed interval

* remove trailing whitespace
2017-08-13 15:44:14 +02:00
whphhg 8acdae66d7 Add support for fetching multiple translation files (#2743)
* Add support for fetching multiple translation files

* Cleanup
2017-08-13 02:28:20 +02:00
Brikou CARRE ba65b07dff Ease running multiple examples at the same time with process.env.PORT (#2753) 2017-08-10 20:15:46 +02:00
Sergio Xalambrí d0b95d9bda Add custom server micro example (#2750) 2017-08-10 08:07:00 +02:00
Sergio Xalambrí cc5289a89f Add with pkg example (#2751) 2017-08-10 08:06:14 +02:00
Matija Marohnić 029bac4fd9 Remove unnecessary lookup in example with emotion (#2731) 2017-08-09 17:26:45 +02:00
Arunoda Susiripala 4fc545245a Merge with master. 2017-08-09 12:04:14 +05:30
Sergio Xalambrí 4b0467ed42 Add Electron example (#1430)
* Add Electron usage example

* Remove the deploy part

* Only allow GET request to our HTTP server

* Only allow request from an electron app (checking the user agent)

* Add warning about the local HTTP server

* Update package.json

* Update example to use Next.js v3

* Added required package.json fields with placeholders

* Use next:// file protocol to open internal built files

* Create next.config.js

* Update set-menu.js

* Update example to merge it with electron-next-skeleton ideas
2017-08-09 07:56:23 +02:00
Sergio Xalambrí fe4e53e5db With recompose (#2712) 2017-08-07 19:37:44 +02:00
Dmytro V. Dogadailo 256f9dc765 Add missed dev dependencies for examples/using-preact (#2714) 2017-08-06 19:22:01 +02:00
Alvin 65ff72aada renames misspelt placeholder.html (#2703) 2017-08-03 08:04:03 +02:00
SangWon Kim 37362c3e98 Fix typo (#2692) 2017-08-01 07:29:52 +05:30
Boris Berman f0779e95d6 Grammar fix (#2686)
pseedo -> pseudo
2017-07-31 17:36:28 +05:30