Skip to content

Commit

Permalink
test: added storybook, playwright and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
niebag committed Apr 16, 2024
1 parent da5bd0d commit dc604a0
Show file tree
Hide file tree
Showing 9 changed files with 17,931 additions and 13,255 deletions.
12 changes: 6 additions & 6 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap" rel="stylesheet" />
<style>
body {
font-family: "Inter", sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
</style>
body {
font-family: 'Inter', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
</style>
6 changes: 2 additions & 4 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"recommendations": [
"ms-playwright.playwright"
]
}
"recommendations": ["ms-playwright.playwright"]
}
2 changes: 1 addition & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful
* for Docker builds.
*/
await import("./src/env.js");
await import('./src/env.js');

/** @type {import('next').NextConfig} */
const config = {};
Expand Down
148 changes: 74 additions & 74 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,76 +1,76 @@
{
"name": "nextjs-app-boilerplate",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"build": "next build",
"dev": "next dev --turbo",
"format": "prettier --write .",
"lint": "next lint",
"prepare": "husky install",
"start": "next start",
"storybook": "storybook dev -p 6006",
"storybook:build": "storybook build",
"storybook:test": "test-storybook --browsers chromium firefox webkit",
"test": "playwright test",
"test:codegen": "playwright codegen",
"test:debug": "playwright test --debug",
"test:interactive": "playwright test --ui"
},
"dependencies": {
"@highlight-run/next": "~7.4",
"@t3-oss/env-nextjs": "~0.9",
"class-variance-authority": "~0.7",
"clsx": "~2.1",
"next": "~14.2",
"react": "~18.2",
"react-dom": "~18.2",
"tailwind-merge": "~2.2",
"zod": "~3.22"
},
"devDependencies": {
"@chromatic-com/storybook": "~1.3",
"@commitlint/cli": "~19.2",
"@commitlint/config-conventional": "~19.1",
"@commitlint/types": "~19.0",
"@playwright/test": "~1.43",
"@storybook/addon-essentials": "~8.0",
"@storybook/addon-interactions": "~8.0",
"@storybook/addon-links": "~8.0",
"@storybook/addon-onboarding": "~8.0",
"@storybook/blocks": "~8.0",
"@storybook/nextjs": "~8.0",
"@storybook/react": "~8.0",
"@storybook/test": "~8.0",
"@storybook/test-runner": "^0.17.0",
"@types/eslint": "~8.56",
"@types/lint-staged": "~13.3",
"@types/node": "~20.12",
"@types/react": "~18.2",
"@types/react-dom": "~18.2",
"@typescript-eslint/eslint-plugin": "~7.6",
"@typescript-eslint/parser": "~7.6",
"autoprefixer": "~10.4",
"eslint": "~8.57",
"eslint-config-next": "~14.2",
"eslint-plugin-storybook": "~0.8.0",
"husky": "~9.0",
"lint-staged": "~15.2",
"postcss": "~8.4",
"prettier": "~3.2",
"prettier-plugin-organize-imports": "~3.2",
"prettier-plugin-tailwindcss": "~0.5",
"storybook": "~8.0",
"storybook-addon-pseudo-states": "^3.0.1",
"tailwindcss": "~3.4",
"typescript": "~5.4"
},
"engines": {
"bun": "Please use pnpm",
"node": "20.*.*",
"npm": "Please use pnpm",
"pnpm": "8.*.*",
"yarn": "Please use pnpm"
}
"name": "nextjs-app-boilerplate",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"build": "next build",
"dev": "next dev --turbo",
"format": "prettier --write .",
"lint": "next lint",
"prepare": "husky install",
"start": "next start",
"storybook": "storybook dev -p 6006",
"storybook:build": "storybook build",
"storybook:test": "test-storybook --browsers chromium firefox webkit",
"test": "playwright test",
"test:codegen": "playwright codegen",
"test:debug": "playwright test --debug",
"test:interactive": "playwright test --ui"
},
"dependencies": {
"@highlight-run/next": "~7.4",
"@t3-oss/env-nextjs": "~0.9",
"class-variance-authority": "~0.7",
"clsx": "~2.1",
"next": "~14.2",
"react": "~18.2",
"react-dom": "~18.2",
"tailwind-merge": "~2.2",
"zod": "~3.22"
},
"devDependencies": {
"@chromatic-com/storybook": "~1.3",
"@commitlint/cli": "~19.2",
"@commitlint/config-conventional": "~19.1",
"@commitlint/types": "~19.0",
"@playwright/test": "~1.43",
"@storybook/addon-essentials": "~8.0",
"@storybook/addon-interactions": "~8.0",
"@storybook/addon-links": "~8.0",
"@storybook/addon-onboarding": "~8.0",
"@storybook/blocks": "~8.0",
"@storybook/nextjs": "~8.0",
"@storybook/react": "~8.0",
"@storybook/test": "~8.0",
"@storybook/test-runner": "^0.17.0",
"@types/eslint": "~8.56",
"@types/lint-staged": "~13.3",
"@types/node": "~20.12",
"@types/react": "~18.2",
"@types/react-dom": "~18.2",
"@typescript-eslint/eslint-plugin": "~7.6",
"@typescript-eslint/parser": "~7.6",
"autoprefixer": "~10.4",
"eslint": "~8.57",
"eslint-config-next": "~14.2",
"eslint-plugin-storybook": "~0.8.0",
"husky": "~9.0",
"lint-staged": "~15.2",
"postcss": "~8.4",
"prettier": "~3.2",
"prettier-plugin-organize-imports": "~3.2",
"prettier-plugin-tailwindcss": "~0.5",
"storybook": "~8.0",
"storybook-addon-pseudo-states": "^3.0.1",
"tailwindcss": "~3.4",
"typescript": "~5.4"
},
"engines": {
"bun": "Please use pnpm",
"node": "20.*.*",
"npm": "Please use pnpm",
"pnpm": "8.*.*",
"yarn": "Please use pnpm"
}
}
Loading

0 comments on commit dc604a0

Please sign in to comment.