Steven
4466ba436b
chore(examples): use default prettier for examples/templates ( #60530 )
...
## Description
This PR ensures that the default prettier config is used for examples
and templates.
This config is compatible with `prettier@3` as well (upgrading prettier
is bigger change that can be a future PR).
## Changes
- Updated `.prettierrc.json` in root with `"trailingComma": "es5"` (will
be needed upgrading to prettier@3)
- Added `examples/.prettierrc.json` with default config (this will
change every example)
- Added `packages/create-next-app/templates/.prettierrc.json` with
default config (this will change every template)
## Related
- Fixes #54402
- Closes #54409
2024-01-11 16:01:44 -07:00
Tim Neutkens
ab42da0626
Run next/link codemod for Next.js 13 on examples ( #41913 )
2022-10-30 21:00:45 +01:00
Cody Olsen
6b37d6c39e
docs: update CMS examples to use the new tw grid gaps ( #34917 )
2022-03-01 07:47:28 -06:00
Lee Robinson
9f1d5d7fca
Update dependencies of all CMS examples. ( #27001 )
2021-07-09 14:43:56 +02:00
Todor Totev
b0d2a80a18
[Examples] Remove horizontal scroll in CMS examples ( #16295 )
2020-08-18 11:31:20 -04:00
Luis Alvarez D
c11ee1d857
[Examples] Remove horizontal scroll in CMS examples ( #15921 )
...
This is the same fix from https://github.com/vercel/next.js/pull/15729 - Adding it in a new PR as I can't update the current one.
Closes #15729
Fixes #15676
2020-08-05 22:39:44 +00:00
Joe Haddad
b7e17e09e5
Update references to zeit/next.js ( #13463 )
2020-05-27 17:51:11 -04:00
Greg Rickaby
58c7265ba0
Update DatoCMS Example ( #13008 )
...
👋🏻 This PR updates the Datocms example:
- [x] Next.js 9.4 absolute import and aliases support
- [x] Next.js 9.4 native `.env` support
- [x] Tailwind 1.4 native PurgeCSS support
- [x] Chore: bump other dependencies, like React, Remark, and DateFNS
I've tested this PR here:
- 💻 https://github.com/gregrickaby/datocms-next-js-blog-demo-2392
- 👀 https://datocms-next-js-blog-demo-2392.now.sh/
2020-05-19 23:13:35 +00:00
Joe Haddad
86160a5190
Upgrade to Prettier 2 ( #13061 )
2020-05-18 15:24:37 -04:00
Shu Uesugi
bf0ea49b02
DatoCMS Example ( #10891 )
...
* Copy cms-datocms
* Update package.json
* Desktop design
* Tablet support
* Mobile styles
* Update titles
* Add article page
* Minor tweaks
* Fix height issue
* Improve text colors
* Extract Alert and Footer components
* Extract avatar
* Add Date
* Extract container
* Fix capitalization
* Make it work with no backend
* Add paragraph styles
* Extract PostPreview
* Extract h2
* Extract more stories
* Refactor into more components
* Update tags
* Add missing key
* Add custom document for lang="" support
* Add dotenv
* Load data for the index page
* Limit posts
* Show post page
* Add markdown processing
* Forgot margin
* Add links
* Remove files and add fallback
* Add og:image
* Add favicon
* Add aria-label
* Fix prerender
* Learn more → read documentation
* Fix links and footer
* Desaturate using imgix
* Add preview secret
* Add preview support
* Fix preview code
* Exit preview mode
* Extract getAllPostsWithSlug
* Extract getAllPostsForHome
* Extract getPreviewPostBySlug
* Extract getPostAndMorePosts
* Extract constants
* Extract markdownToHtml
* Fix markdown styles
* Fix imgix for author
* Add README
* Add links to docs
2020-03-09 11:51:08 +01:00