Skip to content

Commit

Permalink
init tailwindcss & pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
kangju2000 committed Aug 11, 2024
1 parent 46097de commit 443216c
Show file tree
Hide file tree
Showing 11 changed files with 5,883 additions and 6,163 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
pnpm lint-staged
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
"tabWidth": 2,
"endOfLine": "auto",
"printWidth": 120,
"arrowParens": "avoid"
"arrowParens": "avoid",
"plugins": ["prettier-plugin-tailwindcss"]
}
8 changes: 0 additions & 8 deletions jest.config.ts

This file was deleted.

42 changes: 23 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "rm -rf dist && tsc && vite build",
"test": "jest ./tests/unit",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"prepare": "husky install",
"lint": "eslint './src/**/*.{ts,tsx}' --fix",
"gen:theme-typings": "chakra-cli tokens ./src/constants/customTheme.ts",
"postinstall": "yarn gen:theme-typings"
"preinstall": "npx only-allow pnpm",
"prepare": "husky install"
},
"dependencies": {
"@chakra-ui/react": "^2.8.1",
Expand All @@ -30,33 +28,39 @@
"@chakra-ui/cli": "^2.4.1",
"@crxjs/vite-plugin": "^2.0.0-beta.25",
"@playwright/test": "^1.39.0",
"@thedutchcoder/postcss-rem-to-px": "^0.0.2",
"@types/chrome": "^0.0.268",
"@types/jest": "^29.5.6",
"@types/node": "^20.8.9",
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.14",
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
"@vitejs/plugin-react": "^4.1.0",
"eslint": "^8.52.0",
"eslint-config-prettier": "^9.0.0",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"@vitejs/plugin-react-swc": "^3.6.0",
"autoprefixer": "^10.4.20",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-prettier": "^5.0.1",
"framer-motion": "^10.16.4",
"husky": "^8.0.3",
"jest": "^29.7.0",
"lint-staged": "^15.0.2",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"postcss-prefix-selector": "^1.16.1",
"prettier": "^3.0.3",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typescript": "5.2.2",
"prettier-plugin-tailwindcss": "^0.6.6",
"tailwindcss": "^3.4.9",
"typescript": "^5.2.2",
"vite": "^5.3.5",
"vite-tsconfig-paths": "^4.2.1"
"vite-tsconfig-paths": "^4.3.2"
},
"lint-staged": {
"**/*.{ts,tsx}": [
"prettier --write",
"eslint --fix"
]
},
"packageManager": "pnpm@8.15.0",
"engines": {
"node": "20.x",
"pnpm": ">=8.15.0"
}
}
Loading

0 comments on commit 443216c

Please sign in to comment.