Skip to content

Commit 836127b

Browse files
committed
chore: integrate project to one
1 parent e3cb0e2 commit 836127b

Some content is hidden

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

58 files changed

+6724
-6409
lines changed

Diff for: .gitignore

+37-7
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,46 @@
1-
# Logs
2-
logs
3-
*.log
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
.yarn/install-state.gz
8+
9+
# testing
10+
/coverage
11+
12+
# next.js
13+
/.next/
14+
/out/
15+
16+
# production
17+
/build
18+
19+
# misc
20+
.DS_Store
21+
*.pem
22+
23+
# debug
424
npm-debug.log*
525
yarn-debug.log*
626
yarn-error.log*
727
pnpm-debug.log*
828
lerna-debug.log*
929

10-
node_modules
11-
dist
12-
dist-ssr
13-
*.local
30+
# local env files
31+
.env*.local
32+
33+
# vercel
34+
.vercel
35+
36+
# typescript
37+
*.tsbuildinfo
38+
next-env.d.ts
39+
40+
## Panda
41+
styled-system
42+
styled-system-studio
43+
*storybook.log
1444

1545
# Editor directories and files
1646
.vscode/*

Diff for: .storybook/main.ts

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import path from 'path';
2+
import type { StorybookConfig } from '@storybook/nextjs';
3+
4+
const config: StorybookConfig = {
5+
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
6+
addons: [
7+
'@storybook/addon-essentials',
8+
'@chromatic-com/storybook',
9+
'@storybook/addon-interactions',
10+
'@storybook/addon-a11y',
11+
],
12+
framework: {
13+
name: '@storybook/nextjs',
14+
options: {},
15+
},
16+
staticDirs: ['../public'],
17+
// Add path aliases
18+
webpackFinal: async (config: any) => {
19+
config.resolve.alias['@'] = path.resolve(__dirname, '../src');
20+
config.resolve.alias['@styled-system'] = path.resolve(
21+
__dirname,
22+
'../styled-system'
23+
);
24+
25+
return config;
26+
},
27+
};
28+
export default config;

Diff for: test-playground/.storybook/preview.ts renamed to .storybook/preview.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import type { Preview } from '@storybook/react';
1+
import '../src/app/index.css';
22

3-
import '../src/reset.css';
3+
import type { Preview } from '@storybook/react';
44

55
const preview: Preview = {
66
parameters: {

Diff for: eslint.config.mjs

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { FlatCompat } from '@eslint/eslintrc';
2+
3+
const compat = new FlatCompat({
4+
// import.meta.dirname is available after Node.js v20.11.0
5+
baseDirectory: import.meta.dirname,
6+
});
7+
8+
const eslintConfig = [
9+
...compat.config({
10+
extends: ['next/core-web-vitals'],
11+
}),
12+
];
13+
14+
export default eslintConfig;
File renamed without changes.

Diff for: package.json

+53-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,57 @@
11
{
2-
"name": "frontend-test",
3-
"version": "1.0.0",
4-
"license": "ISC",
2+
"name": "turing-frontend-test",
3+
"version": "0.1.0",
4+
"private": true,
5+
"type": "module",
6+
"scripts": {
7+
"prepare": "panda codegen",
8+
"dev": "next dev",
9+
"build": "next build",
10+
"start": "next start",
11+
"lint": "next lint",
12+
"typecheck": "tsc --noEmit",
13+
"format": "biome format --write src/**/*",
14+
"test": "vitest",
15+
"test:ui": "vitest --browser.headless false",
16+
"test:coverage": "vitest run --coverage.enabled true",
17+
"storybook": "storybook dev -p 6006",
18+
"build-storybook": "storybook build"
19+
},
20+
"dependencies": {
21+
"next": "15.1.4",
22+
"react": "^19.0.0",
23+
"react-dom": "^19.0.0"
24+
},
525
"devDependencies": {
6-
"@biomejs/biome": "^1.9.4"
26+
"@biomejs/biome": "^1.9.4",
27+
"@chromatic-com/storybook": "^3.2.3",
28+
"@eslint/eslintrc": "^3.2.0",
29+
"@pandacss/dev": "^0.51.1",
30+
"@storybook/addon-a11y": "^8.4.7",
31+
"@storybook/addon-essentials": "^8.4.7",
32+
"@storybook/addon-interactions": "^8.4.7",
33+
"@storybook/blocks": "^8.4.7",
34+
"@storybook/nextjs": "^8.4.7",
35+
"@storybook/react": "^8.4.7",
36+
"@storybook/test": "^8.4.7",
37+
"@testing-library/dom": "^10.4.0",
38+
"@testing-library/jest-dom": "^6.6.3",
39+
"@testing-library/react": "^16.1.0",
40+
"@testing-library/user-event": "^14.5.2",
41+
"@types/eslint__eslintrc": "^2.1.2",
42+
"@types/node": "^22.10.5",
43+
"@types/react": "^19.0.4",
44+
"@types/react-dom": "^19.0.2",
45+
"@vitejs/plugin-react": "^4.3.4",
46+
"@vitest/browser": "^2.1.8",
47+
"@vitest/coverage-istanbul": "2.1.8",
48+
"eslint": "^9.17.0",
49+
"eslint-config-next": "15.1.4",
50+
"eslint-plugin-storybook": "^0.11.2",
51+
"playwright": "^1.49.1",
52+
"storybook": "^8.4.7",
53+
"typescript": "^5.7.3",
54+
"vite-tsconfig-paths": "^5.1.4",
55+
"vitest": "^2.1.8"
756
}
857
}
File renamed without changes.

0 commit comments

Comments
 (0)