Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update all CMS examples dependencies. #33580

Merged
merged 5 commits into from
Feb 4, 2022
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/blog-starter/lib/markdownToHtml.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import remark from 'remark'
import { remark } from 'remark'
import html from 'remark-html'

export default async function markdownToHtml(markdown) {
Expand Down
10 changes: 5 additions & 5 deletions examples/blog-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"start": "next start"
},
"dependencies": {
"classnames": "2.2.6",
"date-fns": "2.16.1",
"gray-matter": "4.0.2",
"classnames": "2.3.1",
"date-fns": "2.28.0",
"gray-matter": "4.0.3",
"next": "latest",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"remark": "13.0.0",
"remark-html": "13.0.2"
"remark": "14.0.2",
"remark-html": "15.0.1"
},
"devDependencies": {
"autoprefixer": "^10.4.0",
Expand Down
7 changes: 6 additions & 1 deletion examples/blog-starter/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// If you want to use other PostCSS plugins, see the following:
// https://tailwindcss.com/docs/using-with-preprocessors
module.exports = {
plugins: ['tailwindcss', 'autoprefixer'],
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
12 changes: 5 additions & 7 deletions examples/cms-agilitycms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,17 @@
"dependencies": {
"@agility/content-fetch": "^0.8.1",
"classnames": "2.3.1",
"date-fns": "2.22.1",
"date-fns": "2.28.0",
"isomorphic-unfetch": "3.0.0",
"next": "latest",
"react": "^17.0.2",
"react-datocms": "1.1.0",
"react-dom": "^17.0.2",
"react-intersection-observer": "^8.26.1",
"remark": "11.0.2",
leerob marked this conversation as resolved.
Show resolved Hide resolved
"remark-html": "10.0.0"
"react-intersection-observer": "^8.26.1"
},
"devDependencies": {
"autoprefixer": "10.2.6",
"postcss": "8.3.5",
"tailwindcss": "^2.2.4"
"autoprefixer": "10.4.2",
"postcss": "8.4.5",
"tailwindcss": "^3.0.15"
}
}
10 changes: 4 additions & 6 deletions examples/cms-agilitycms/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
module.exports = {
mode: 'jit',
purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
darkMode: false, // or 'media' or 'class'
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
],
theme: {
extend: {
colors: {
Expand Down Expand Up @@ -32,8 +33,5 @@ module.exports = {
},
},
},
variants: {
extend: {},
},
plugins: [],
}
2 changes: 1 addition & 1 deletion examples/cms-builder-io/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"@builder.io/react": "^1.1.47",
"@builder.io/widgets": "^1.2.21",
"classnames": "2.3.1",
"date-fns": "2.22.1",
"date-fns": "2.28.0",
"next": "latest",
"react": "^17.0.2",
"react-dom": "^17.0.2"
Expand Down
10 changes: 5 additions & 5 deletions examples/cms-buttercms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
"start": "next start"
},
"dependencies": {
"buttercms": "1.2.7",
"buttercms": "1.2.8",
"classnames": "2.3.1",
"date-fns": "2.22.1",
"date-fns": "2.28.0",
"next": "latest",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"autoprefixer": "10.2.6",
"postcss": "8.3.5",
"tailwindcss": "^2.2.4"
"autoprefixer": "10.4.2",
"postcss": "8.4.5",
"tailwindcss": "^3.0.15"
}
}
10 changes: 4 additions & 6 deletions examples/cms-buttercms/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
module.exports = {
mode: 'jit',
purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
darkMode: false, // or 'media' or 'class'
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
],
theme: {
extend: {
colors: {
Expand Down Expand Up @@ -32,8 +33,5 @@ module.exports = {
},
},
},
variants: {
extend: {},
},
plugins: [],
}
2 changes: 1 addition & 1 deletion examples/cms-contentful/components/hero-post.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function HeroPost({
<div className="md:grid md:grid-cols-2 md:col-gap-16 lg:col-gap-8 mb-20 md:mb-28">
<div>
<h3 className="mb-4 text-4xl lg:text-6xl leading-tight">
<Link as={`/posts/${slug}`} href="/posts/[slug]">
<Link href={`/posts/${slug}`}>
<a className="hover:underline">{title}</a>
</Link>
</h3>
Expand Down
6 changes: 3 additions & 3 deletions examples/cms-contentful/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"react-dom": "^17.0.2"
},
"devDependencies": {
"autoprefixer": "10.2.6",
"autoprefixer": "10.4.2",
"contentful-import": "^7.8.7",
"postcss": "8.3.5",
"tailwindcss": "^2.2.4"
"postcss": "8.4.5",
"tailwindcss": "^3.0.15"
}
}
10 changes: 4 additions & 6 deletions examples/cms-contentful/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
module.exports = {
mode: 'jit',
purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
darkMode: false, // or 'media' or 'class'
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
],
theme: {
extend: {
colors: {
Expand Down Expand Up @@ -32,8 +33,5 @@ module.exports = {
},
},
},
variants: {
extend: {},
},
plugins: [],
}
2 changes: 1 addition & 1 deletion examples/cms-cosmic/lib/markdownToHtml.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import remark from 'remark'
import { remark } from 'remark'
import html from 'remark-html'

export default async function markdownToHtml(markdown) {
Expand Down
12 changes: 6 additions & 6 deletions examples/cms-cosmic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
"dependencies": {
"classnames": "2.3.1",
"cosmicjs": "^3.2.43",
"date-fns": "2.22.1",
"date-fns": "2.28.0",
"lazysizes": "^5.2.1-rc2",
"next": "latest",
"react": "^17.0.2",
"react-datocms": "1.6.3",
"react-dom": "^17.0.2",
"react-imgix": "^9.0.2",
"remark": "12.0.0",
"remark-html": "11.0.2"
"remark": "14.0.2",
"remark-html": "15.0.1"
},
"devDependencies": {
"autoprefixer": "10.2.6",
"postcss": "8.3.5",
"tailwindcss": "^2.2.4"
"autoprefixer": "10.4.2",
"postcss": "8.4.5",
"tailwindcss": "^3.0.15"
}
}
10 changes: 4 additions & 6 deletions examples/cms-cosmic/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
module.exports = {
mode: 'jit',
purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
darkMode: false, // or 'media' or 'class'
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
],
theme: {
extend: {
colors: {
Expand Down Expand Up @@ -32,8 +33,5 @@ module.exports = {
},
},
},
variants: {
extend: {},
},
plugins: [],
}
2 changes: 1 addition & 1 deletion examples/cms-datocms/lib/markdownToHtml.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import remark from 'remark'
import { remark } from 'remark'
import html from 'remark-html'

export default async function markdownToHtml(markdown) {
Expand Down
12 changes: 6 additions & 6 deletions examples/cms-datocms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
},
"dependencies": {
"classnames": "2.3.1",
"date-fns": "2.22.1",
"date-fns": "2.28.0",
"next": "latest",
"react": "^17.0.2",
"react-datocms": "1.6.3",
"react-dom": "^17.0.2",
"remark": "12.0.0",
"remark-html": "11.0.2"
"remark": "14.0.2",
"remark-html": "15.0.1"
},
"devDependencies": {
"autoprefixer": "10.2.6",
"postcss": "8.3.5",
"tailwindcss": "^2.2.4"
"autoprefixer": "10.4.2",
"postcss": "8.4.5",
"tailwindcss": "^3.0.15"
}
}
10 changes: 4 additions & 6 deletions examples/cms-datocms/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
module.exports = {
mode: 'jit',
purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
darkMode: false, // or 'media' or 'class'
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
],
theme: {
extend: {
colors: {
Expand Down Expand Up @@ -32,8 +33,5 @@ module.exports = {
},
},
},
variants: {
extend: {},
},
plugins: [],
}
8 changes: 4 additions & 4 deletions examples/cms-drupal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
},
"dependencies": {
"classnames": "2.3.1",
"date-fns": "2.22.1",
"date-fns": "2.28.0",
"next": "latest",
"next-drupal": "latest",
"react": "17.0.2",
"react-dom": "17.0.2"
},
"devDependencies": {
"autoprefixer": "10.2.6",
"postcss": "8.3.5",
"tailwindcss": "^2.2.4"
"autoprefixer": "10.4.2",
"postcss": "8.4.5",
"tailwindcss": "^3.0.15"
}
}
10 changes: 4 additions & 6 deletions examples/cms-drupal/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
module.exports = {
mode: 'jit',
purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
darkMode: false, // or 'media' or 'class'
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
],
theme: {
extend: {
colors: {
Expand Down Expand Up @@ -32,8 +33,5 @@ module.exports = {
},
},
},
variants: {
extend: {},
},
plugins: [],
}
8 changes: 4 additions & 4 deletions examples/cms-ghost/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
"dependencies": {
"@tryghost/content-api": "^1.4.13",
"classnames": "2.3.1",
"date-fns": "2.22.1",
"date-fns": "2.28.0",
"lazysizes": "^5.3.0",
"next": "latest",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"autoprefixer": "10.2.6",
"postcss": "8.3.5",
"tailwindcss": "^2.2.4"
"autoprefixer": "10.4.2",
"postcss": "8.4.5",
"tailwindcss": "^3.0.15"
}
}
10 changes: 4 additions & 6 deletions examples/cms-ghost/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
module.exports = {
mode: 'jit',
purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
darkMode: false, // or 'media' or 'class'
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
],
theme: {
extend: {
colors: {
Expand Down Expand Up @@ -32,8 +33,5 @@ module.exports = {
},
},
},
variants: {
extend: {},
},
plugins: [],
}
2 changes: 1 addition & 1 deletion examples/cms-graphcms/components/cover-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function CoverImage({ title, url, slug }) {
return (
<div className="sm:mx-0">
{slug ? (
<Link as={`/posts/${slug}`} href="/posts/[slug]">
<Link href={`/posts/${slug}`}>
<a aria-label={title}>{image}</a>
</Link>
) : (
Expand Down
8 changes: 4 additions & 4 deletions examples/cms-graphcms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
},
"dependencies": {
"classnames": "2.3.1",
"date-fns": "2.22.1",
"date-fns": "2.28.0",
"next": "latest",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"autoprefixer": "10.2.6",
"postcss": "8.3.5",
"tailwindcss": "^2.2.4"
"autoprefixer": "10.4.2",
"postcss": "8.4.5",
"tailwindcss": "^3.0.15"
}
}
Loading