Skip to content

Commit e22b87d

Browse files
authored
feat: separate legacy example projects (#1977)
* chore: wip cleanup * chore: install and build step * chore: add sass * chore: update deps * chore: add deps * chore: cleanup * chore: include packages/experimental-app-router * chore: update changesets * chore: update gettting-started postcss dependency * chore: update dev npm command
1 parent de32574 commit e22b87d

File tree

30 files changed

+16772
-28921
lines changed

30 files changed

+16772
-28921
lines changed

.changeset/config.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"changelog": "@changesets/cli/changelog",
44
"commit": false,
55
"linked": [
6-
["@faustjs/core", "@faustjs/next", "@faustjs/react"],
76
["@faustwp/core", "@faustwp/cli"]
87
],
98
"privatePackages": {
@@ -14,10 +13,7 @@
1413
"baseBranch": "canary",
1514
"updateInternalDependencies": "patch",
1615
"ignore": [
17-
"@faustjs/next-headless-getting-started",
18-
"@faustwp/getting-started-example",
19-
"@faustwp/app-router-example",
20-
"@faustwp/block-support-example"
16+
"@faustwp/getting-started-example"
2117
],
2218
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
2319
"onlyUpdatePeerDependentsWhenOutOfRange": true

.changeset/dirty-guests-kneel.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@faustwp/experimental-app-router': minor
3+
'@faustwp/cli': patch
4+
---
5+
6+
**@faustwp/cli**: Migrates `glob-promise` dependency to Promise support.
7+
8+
**@faustwp/experimental-app-router**: Update peer dependency of `@apollo/experimental-nextjs-app-support >=0.11.5`.

.eslintrc.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ module.exports = {
3131
// e.g. "@typescript-eslint/explicit-function-return-type": "off",
3232
'@typescript-eslint/unbound-method': 0,
3333
'@typescript-eslint/no-explicit-any': 0,
34+
'@typescript-eslint/no-unsafe-call': 0,
35+
'@typescript-eslint/no-unsafe-return': 0,
36+
'@typescript-eslint/no-unsafe-argument': 0,
37+
'@typescript-eslint/restrict-template-expressions': 0,
3438
'no-void': 0,
3539
'import/named': 0,
3640
'import/no-extraneous-dependencies': [

.github/workflows/e2e-next-example.yml

Lines changed: 0 additions & 73 deletions
This file was deleted.

.github/workflows/e2e-test-plugin.yml

Lines changed: 0 additions & 65 deletions
This file was deleted.

examples/next/faustwp-getting-started/components/Header/Header.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default function Header({
1919
<Container>
2020
<div className={cx('navbar')}>
2121
<div className={cx('brand')}>
22-
<Link href="/">
22+
<Link legacyBehavior href="/">
2323
<a className={cx('title')}>{title}</a>
2424
</Link>
2525
{description && <p className={cx('description')}>{description}</p>}

examples/next/faustwp-getting-started/components/Post/Post.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default function Post({
1414
return (
1515
<article className={styles.component}>
1616
{featuredImage && (
17-
<Link href={uri}>
17+
<Link legacyBehavior href={uri}>
1818
<a>
1919
<FeaturedImage
2020
image={featuredImage}
@@ -25,7 +25,7 @@ export default function Post({
2525
</Link>
2626
)}
2727

28-
<Link href={uri}>
28+
<Link legacyBehavior href={uri}>
2929
<a>
3030
<h2>{title}</h2>
3131
</a>

examples/next/faustwp-getting-started/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
"@apollo/client": "^3.10.4",
1414
"@faustwp/cli": "^3.1.0",
1515
"@faustwp/core": "^3.1.0",
16-
"@wordpress/base-styles": "^4.49.0",
17-
"@wordpress/block-library": "^7.19.0",
16+
"@wordpress/base-styles": "^5.10.0",
17+
"@wordpress/block-library": "^9.10.0",
1818
"classnames": "^2.5.1",
1919
"graphql": "^16.8.1",
20-
"next": "^12.3.4",
21-
"react": "^17.0.2",
22-
"react-dom": "^17.0.2",
20+
"next": "^14.2.15",
21+
"react": "^18.2.0",
22+
"react-dom": "^18.2.0",
2323
"sass": "^1.77.3"
2424
},
2525
"devDependencies": {

examples/next/getting-started/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,8 @@
3535
"eslint-config-next": "^12.0.7",
3636
"rimraf": "^3.0.2",
3737
"typescript": "^4.5.2"
38+
},
39+
"overrides": {
40+
"postcss": "^8.4.31"
3841
}
3942
}

0 commit comments

Comments
 (0)