Skip to content

Commit 77bd0eb

Browse files
▲ next 13 (#26)
* update license year. * ignore mac files. * use legacy peer deps. * bump version. * minor updates. * major updates. * major updates. * updates. * remove react-hooks library. * add types back to index page. * remove ts build info. * remove vercel script. --------- Co-authored-by: Brad Garropy <bgarropy@atlassian.com>
1 parent c506fea commit 77bd0eb

File tree

8 files changed

+6012
-5218
lines changed

8 files changed

+6012
-5218
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
registry-url: https://registry.npmjs.org/
2121
- name: "📦 install"
2222
run: npm ci
23+
- name: "🟦 types"
24+
run: npm run typecheck
2325
- name: "🧪 test"
2426
run: npm run test
2527
- name: "☂️ coverage"

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ coverage
1515

1616
# secrets
1717
.env*
18+
19+
# os
20+
.DS_Store

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
legacy-peer-deps=true

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const config = {
1818
},
1919
],
2020
},
21-
transformIgnorePatterns: [],
21+
transformIgnorePatterns: ["node_modules"],
2222
}
2323

2424
module.exports = config

license

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 Brad Garropy
3+
Copyright (c) 2023 Brad Garropy
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

package-lock.json

Lines changed: 5983 additions & 5199 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "next-starter",
3-
"version": "2.10.1",
3+
"version": "3.0.0",
44
"description": "⏭ next.js starter",
55
"keywords": [
66
"typescript",
@@ -30,24 +30,24 @@
3030
"scripts": {
3131
"start": "next",
3232
"build": "next build",
33-
"vercel": "npm run test && npm run build",
3433
"lint": "eslint .",
3534
"lint:fix": "eslint . --fix",
3635
"format": "prettier --check .",
3736
"format:fix": "prettier --write .",
37+
"typecheck": "tsc",
3838
"test": "jest --passWithNoTests",
3939
"test:watch": "npm run test -- --watch",
4040
"contributors": "all-contributors generate",
4141
"new": "plop"
4242
},
4343
"dependencies": {
4444
"@bradgarropy/next-google-analytics": "^1.0.2",
45-
"@bradgarropy/next-link": "^1.0.2",
45+
"@bradgarropy/next-link": "^1.1.0",
4646
"@bradgarropy/next-seo": "^1.1.0",
47-
"@heroicons/react": "^1.0.6",
47+
"@heroicons/react": "^2.0.16",
4848
"classnames": "^2.3.1",
49-
"next": "^12.0.4",
50-
"react-dom": "^17.0.1"
49+
"next": "^13.2.2",
50+
"react-dom": "^18.2.0"
5151
},
5252
"devDependencies": {
5353
"@bradgarropy/eslint-config": "^1.1.0",
@@ -57,27 +57,27 @@
5757
"@bradgarropy/plop-generator-react-context": "^1.0.0",
5858
"@bradgarropy/plop-generator-react-hook": "^1.0.0",
5959
"@testing-library/jest-dom": "^5.11.6",
60-
"@testing-library/react": "^12.0.0",
61-
"@testing-library/react-hooks": "^7.0.1",
62-
"@testing-library/user-event": "^13.2.1",
63-
"@types/jest": "^27.0.1",
64-
"@types/react": "^17.0.19",
60+
"@testing-library/react": "^14.0.0",
61+
"@testing-library/user-event": "^14.4.3",
62+
"@types/jest": "^29.4.0",
63+
"@types/react": "^18.0.28",
6564
"@typescript-eslint/eslint-plugin": "^5.4.0",
6665
"@typescript-eslint/parser": "^5.4.0",
6766
"all-contributors-cli": "^6.20.0",
6867
"babel-eslint": "^10.1.0",
6968
"eslint": "^8.2.0",
70-
"eslint-config-next": "^12.0.4",
69+
"eslint-config-next": "^13.2.2",
7170
"eslint-config-prettier": "^8.3.0",
7271
"eslint-plugin-jsx-a11y": "^6.4.1",
7372
"eslint-plugin-react": "^7.21.5",
7473
"eslint-plugin-react-hooks": "^4.2.0",
75-
"eslint-plugin-simple-import-sort": "^7.0.0",
74+
"eslint-plugin-simple-import-sort": "^10.0.0",
7675
"identity-obj-proxy": "^3.0.0",
77-
"jest": "^27.0.6",
76+
"jest": "^29.4.3",
77+
"jest-environment-jsdom": "^29.4.3",
7878
"plop": "^2.7.4",
7979
"prettier": "^2.3.2",
80-
"react": "^17.0.1",
80+
"react": "^18.2.0",
8181
"regenerator-runtime": "^0.13.9",
8282
"typescript": "^4.3.5"
8383
}

src/components/Layout/Layout.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
import Footer from "components/Footer"
22
import Header from "components/Header"
3-
import {FC} from "react"
3+
import {FC, ReactNode} from "react"
44

55
import styles from "./Layout.module.css"
66

7-
const Layout: FC = ({children}) => {
7+
type LayoutProps = {
8+
children: ReactNode
9+
}
10+
11+
const Layout: FC<LayoutProps> = ({children}) => {
812
return (
913
<div className={styles.layout}>
1014
<Header />

0 commit comments

Comments
 (0)