Skip to content

Commit ac53f06

Browse files
authored
Merge pull request #54 from slvstr-dev/feature/add-updated-dependencies
Feature/add updated dependencies
2 parents 937b3be + fd2d0e6 commit ac53f06

34 files changed

+2298
-2327
lines changed

.eslintrc.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
{
2-
"extends": ["next/core-web-vitals", "plugin:storybook/recommended"]
2+
"extends": ["next/core-web-vitals", "plugin:storybook/recommended"],
3+
"plugins": ["unused-imports"],
4+
"rules": {
5+
"unused-imports/no-unused-imports": "error"
6+
}
37
}

.mise.toml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[tools]
2+
node = "lts"
3+
pnpm = "latest"

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
.next
2+
pnpm-lock.yaml
3+
next-env.d.ts
24
storybook-static

.prettierrc.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
"@2digits/prettier-config"
1+
{
2+
"printWidth": 100,
3+
"tabWidth": 2,
4+
"singleQuote": true,
5+
"bracketSameLine": true,
6+
"trailingComma": "all",
7+
"plugins": ["prettier-plugin-tailwindcss"]
8+
}

.storybook/main.ts

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import path from 'path';
12
import type { StorybookConfig } from '@storybook/nextjs';
23

34
const config: StorybookConfig = {
@@ -14,6 +15,15 @@ const config: StorybookConfig = {
1415
docs: {
1516
autodocs: 'tag',
1617
},
18+
webpackFinal: async (config) => {
19+
if (config.resolve) {
20+
config.resolve.alias = {
21+
...config.resolve.alias,
22+
'@': path.resolve(__dirname, '../src'),
23+
};
24+
}
25+
return config;
26+
},
1727
};
1828

1929
export default config;

.storybook/preview.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const preview: Preview = {
1717
},
1818
},
1919
layout: 'fullscreen',
20+
appDirectory: true,
2021
},
2122
decorators: [
2223
(Story) => (

README.md

-7
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,3 @@
33
Portfolio site created with Next.js, TypeScript, Tailwind & Storybook.
44

55
![Screenshot of project](https://raw.githubusercontent.com/slvstr-dev/portfolio/master/screenshot.png)
6-
7-
## Possible future improvements
8-
9-
- [ ] Fix Storybook
10-
- [ ] Replace static content with dynamic content (CMS/LinkedIn-api?)
11-
- [ ] Adjust project to support Turbopack
12-
- [ ] Upgrade Prettier to ^3.0.0

next.config.js next.config.mjs

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
const withNextIntl = require('next-intl/plugin')();
2-
3-
module.exports = withNextIntl({
1+
import createNextIntlPlugin from 'next-intl/plugin';
2+
3+
const withNextIntl = createNextIntlPlugin();
4+
5+
/** @type {import('next').NextConfig} */
6+
const nextConfig = {
47
images: {
58
remotePatterns: [
69
{
@@ -21,4 +24,6 @@ module.exports = withNextIntl({
2124
},
2225
],
2326
},
24-
});
27+
};
28+
29+
export default withNextIntl(nextConfig);

package.json

+31-30
Original file line numberDiff line numberDiff line change
@@ -22,46 +22,47 @@
2222
"upgrade:latest": "pnpm upgrade --interactive --latest"
2323
},
2424
"dependencies": {
25-
"@genql/cli": "^6.2.1",
26-
"@hookform/resolvers": "^3.3.1",
25+
"@genql/cli": "^6.3.1",
26+
"@hookform/resolvers": "^3.3.4",
2727
"@radix-ui/react-accordion": "^1.1.2",
2828
"@radix-ui/react-collapsible": "^1.0.3",
2929
"@radix-ui/react-dialog": "^1.0.5",
3030
"@radix-ui/react-form": "^0.0.3",
3131
"@radix-ui/react-navigation-menu": "^1.1.4",
32-
"@vercel/analytics": "^1.1.0",
33-
"framer-motion": "^10.16.4",
34-
"next": "14.0.2",
35-
"next-intl": "3.0.0-beta.9",
32+
"@vercel/analytics": "^1.1.2",
33+
"framer-motion": "^11.0.3",
34+
"next": "14.1.0",
35+
"next-intl": "3.5.4",
3636
"react": "18.2.0",
3737
"react-dom": "18.2.0",
38-
"react-hook-form": "^7.48.2",
38+
"react-hook-form": "^7.50.0",
3939
"zod": "3.22.4"
4040
},
4141
"devDependencies": {
42-
"@2digits/prettier-config": "^0.9.4",
43-
"@storybook/addon-essentials": "^7.5.3",
44-
"@storybook/addon-interactions": "^7.5.3",
45-
"@storybook/addon-links": "^7.5.3",
46-
"@storybook/blocks": "^7.5.3",
47-
"@storybook/nextjs": "^7.5.3",
48-
"@storybook/react": "^7.5.3",
42+
"@storybook/addon-essentials": "^7.6.12",
43+
"@storybook/addon-interactions": "^7.6.12",
44+
"@storybook/addon-links": "^7.6.12",
45+
"@storybook/blocks": "^7.6.12",
46+
"@storybook/nextjs": "^7.6.12",
47+
"@storybook/react": "^7.6.12",
4948
"@storybook/testing-library": "^0.2.2",
50-
"@types/node": "20.9.0",
51-
"@types/react": "18.2.37",
52-
"@types/react-dom": "18.2.15",
53-
"autoprefixer": "10.4.16",
54-
"clsx": "^2.0.0",
55-
"eslint": "8.53.0",
56-
"eslint-config-next": "14.0.2",
57-
"eslint-plugin-storybook": "^0.6.14",
58-
"postcss": "8.4.31",
59-
"prettier": "^2.8.8",
60-
"storybook": "^7.5.3",
61-
"tailwind-merge": "^2.0.0",
62-
"tailwind-variants": "^0.1.18",
63-
"tailwindcss": "3.3.5",
64-
"typescript": "5.2.2"
49+
"@types/node": "20.11.16",
50+
"@types/react": "18.2.51",
51+
"@types/react-dom": "18.2.18",
52+
"autoprefixer": "10.4.17",
53+
"clsx": "^2.1.0",
54+
"eslint": "8.56.0",
55+
"eslint-config-next": "14.1.0",
56+
"eslint-plugin-storybook": "^0.6.15",
57+
"eslint-plugin-unused-imports": "^3.0.0",
58+
"postcss": "8.4.33",
59+
"prettier": "^3.2.4",
60+
"prettier-plugin-tailwindcss": "^0.5.11",
61+
"storybook": "^7.6.12",
62+
"tailwind-merge": "^2.2.1",
63+
"tailwind-variants": "^0.1.20",
64+
"tailwindcss": "3.4.1",
65+
"typescript": "5.3.3"
6566
},
66-
"packageManager": "pnpm@8.10.2"
67+
"packageManager": "pnpm@8.15.1"
6768
}

0 commit comments

Comments
 (0)