Skip to content

Commit 0051553

Browse files
authored
Maintenance and updates (#77)
* Update packages. * Fix local dev. * Migrate to TypeScript. * Update formatting options and run formatter.
1 parent 317e020 commit 0051553

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1797
-1267
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ node_modules
77
!/public/robots.txt
88
/public/og-images/*
99
!/src/public/og-images/.gitkeep
10+
tsconfig.tsbuildinfo

.prettierrc

-3
This file was deleted.

.prettierrc.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
plugins: ["@trivago/prettier-plugin-sort-imports", "prettier-plugin-tailwindcss"],
3+
pluginSearchDirs: false,
4+
printWidth: 100,
5+
tabWidth: 4,
6+
"importOrder": ["<THIRD_PARTY_MODULES>", "^[./]"],
7+
importOrderSeparation: false,
8+
importOrderSortSpecifiers: true,
9+
proseWrap: "always",
10+
};
11+

content/blog/2020/04/test-post.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
```json
22
{
3-
"template": "post",
4-
"title": "A Test Blog Post",
5-
"date": "2020-04-11"
3+
"template": "post",
4+
"title": "A Test Blog Post",
5+
"date": "2020-04-11"
66
}
77
```
88

package.json

+22-20
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,37 @@
22
"name": "jsonnull.com",
33
"private": true,
44
"scripts": {
5-
"format": "prettier --write 'src/**/*.js' './*.js'",
5+
"format": "prettier --write '**/*.{ts,tsx,md}'",
66
"screenshots": "ts-node scripts/screenshots.tsx",
7-
"dev": "next ./src",
7+
"dev": "next dev",
88
"build": "tailwindcss -i src/global.css -o .css/bundle.css && ts-node scripts/screenshots && next build",
99
"build:ci": "pnpm build"
1010
},
1111
"dependencies": {
12-
"@headlessui/react": "^1.5.0",
13-
"@popperjs/core": "^2.11.5",
14-
"clsx": "^1.1.1",
12+
"@headlessui/react": "^1.7.10",
13+
"@popperjs/core": "^2.11.6",
14+
"clsx": "^1.2.1",
1515
"gray-matter": "4.0.3",
16-
"markdown-to-jsx": "7.1.7",
17-
"next": "latest",
16+
"markdown-to-jsx": "7.1.9",
17+
"next": "^13.1.6",
1818
"react": "18.2.0",
1919
"react-dom": "18.2.0",
20-
"react-feather": "^2.0.9",
21-
"react-popper": "^2.2.5"
20+
"react-feather": "^2.0.10",
21+
"react-popper": "^2.3.0"
2222
},
2323
"devDependencies": {
24-
"@netlify/plugin-nextjs": "^4.3.1",
25-
"@resvg/resvg-js": "^2.1.0",
26-
"@types/node": "^18.11.4",
27-
"@types/react": "^18.0.9",
28-
"autoprefixer": "^10.4.4",
29-
"postcss": "^8.4.12",
30-
"prettier": "2.7.1",
31-
"satori": "^0.0.44",
32-
"tailwindcss": "3.2.3",
33-
"ts-node": "^10.7.0",
34-
"typescript": "^4.6.4"
24+
"@netlify/plugin-nextjs": "^4.30.4",
25+
"@resvg/resvg-js": "^2.4.0",
26+
"@trivago/prettier-plugin-sort-imports": "^4.0.0",
27+
"@types/node": "^18.13.0",
28+
"@types/react": "^18.0.28",
29+
"autoprefixer": "^10.4.13",
30+
"postcss": "^8.4.21",
31+
"prettier": "2.8.4",
32+
"prettier-plugin-tailwindcss": "^0.2.2",
33+
"satori": "^0.2.3",
34+
"tailwindcss": "3.2.6",
35+
"ts-node": "^10.9.1",
36+
"typescript": "^4.9.5"
3537
}
3638
}

0 commit comments

Comments
 (0)