chore: setup project config, add dependencies
This commit is contained in:
parent
30c1a2ad4b
commit
c405cb009e
4
.husky/commit-msg
Executable file
4
.husky/commit-msg
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
yarn commitlint --edit $1
|
||||
116
package.json
116
package.json
|
|
@ -4,25 +4,40 @@
|
|||
"scripts": {
|
||||
"build": "remix build",
|
||||
"dev": "remix dev",
|
||||
"prepare": "is-ci || husky install",
|
||||
"setup": "prisma generate && prisma migrate deploy && prisma db seed",
|
||||
"start": "remix-serve build",
|
||||
"typecheck": "tsc"
|
||||
},
|
||||
"dependencies": {
|
||||
"@emotion/react": "11.10.5",
|
||||
"@emotion/server": "11.10.0",
|
||||
"@mantine/core": "5.10.3",
|
||||
"@mantine/dates": "5.10.3",
|
||||
"@mantine/form": "5.10.3",
|
||||
"@mantine/hooks": "5.10.3",
|
||||
"@mantine/notifications": "5.10.3",
|
||||
"@mantine/nprogress": "5.10.3",
|
||||
"@mantine/remix": "5.10.3",
|
||||
"@prisma/client": "4.10.1",
|
||||
"@remix-run/node": "^1.12.0",
|
||||
"@remix-run/react": "^1.12.0",
|
||||
"@remix-run/serve": "^1.12.0",
|
||||
"bcryptjs": "^2.4.3",
|
||||
"cross-env": "^7.0.3",
|
||||
"dayjs": "1.11.7",
|
||||
"isbot": "^3.6.5",
|
||||
"nprogress": "0.2.0",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-feather": "2.0.10",
|
||||
"tiny-invariant": "^1.3.1",
|
||||
"zod": "3.20.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "17.4.2",
|
||||
"@commitlint/config-conventional": "17.4.2",
|
||||
"@release-it/conventional-changelog": "5.1.1",
|
||||
"@remix-run/dev": "^1.12.0",
|
||||
"@remix-run/eslint-config": "^1.12.0",
|
||||
"@types/bcryptjs": "^2.4.2",
|
||||
|
|
@ -31,7 +46,16 @@
|
|||
"@types/react": "^18.0.25",
|
||||
"@types/react-dom": "^18.0.8",
|
||||
"eslint": "^8.27.0",
|
||||
"eslint-config-prettier": "8.6.0",
|
||||
"eslint-plugin-jest": "27.2.1",
|
||||
"eslint-plugin-jsx-a11y": "6.7.1",
|
||||
"eslint-plugin-prettier": "4.2.1",
|
||||
"eslint-plugin-react": "7.32.2",
|
||||
"husky": "8.0.3",
|
||||
"is-ci": "3.0.1",
|
||||
"prettier": "2.8.4",
|
||||
"prisma": "^4.9.0",
|
||||
"release-it": "15.6.0",
|
||||
"ts-node": "10.9.1",
|
||||
"typescript": "^4.8.4"
|
||||
},
|
||||
|
|
@ -40,5 +64,97 @@
|
|||
},
|
||||
"prisma": {
|
||||
"seed": "ts-node --require tsconfig-paths/register prisma/seed.ts"
|
||||
},
|
||||
"prettier": {
|
||||
"singleQuote": true,
|
||||
"trailingComma": "none",
|
||||
"overrides": [
|
||||
{
|
||||
"files": "*.scss",
|
||||
"options": {
|
||||
"tabWidth": 4,
|
||||
"printWidth": 120
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": "*.json",
|
||||
"options": {
|
||||
"printWidth": 200
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"eslintIgnore": [
|
||||
"/node_modules",
|
||||
"/build",
|
||||
"/public/build"
|
||||
],
|
||||
"eslintConfig": {
|
||||
"extends": [
|
||||
"@remix-run/eslint-config",
|
||||
"@remix-run/eslint-config/node",
|
||||
"@remix-run/eslint-config/jest",
|
||||
"prettier",
|
||||
"plugin:prettier/recommended"
|
||||
],
|
||||
"plugins": [
|
||||
"jest",
|
||||
"jsx-a11y"
|
||||
],
|
||||
"settings": {
|
||||
"jest": {
|
||||
"version": 27
|
||||
}
|
||||
},
|
||||
"rules": {
|
||||
"prettier/prettier": [
|
||||
"warn",
|
||||
{
|
||||
"singleQuote": true,
|
||||
"trailingComma": "none"
|
||||
}
|
||||
],
|
||||
"react/jsx-uses-react": "off",
|
||||
"react/react-in-jsx-scope": "off"
|
||||
}
|
||||
},
|
||||
"release-it": {
|
||||
"git": {
|
||||
"tagName": "v${version}",
|
||||
"commitMessage": "chore: release v${version}"
|
||||
},
|
||||
"npm": {
|
||||
"publish": true
|
||||
},
|
||||
"github": {
|
||||
"release": true,
|
||||
"releaseName": "${version}"
|
||||
},
|
||||
"plugins": {
|
||||
"@release-it/conventional-changelog": {
|
||||
"infile": "CHANGELOG.md",
|
||||
"preset": {
|
||||
"name": "conventionalcommits",
|
||||
"types": [
|
||||
{
|
||||
"type": "feat",
|
||||
"section": "Features"
|
||||
},
|
||||
{
|
||||
"type": "fix",
|
||||
"section": "Bug Fixes"
|
||||
},
|
||||
{
|
||||
"type": "refactor",
|
||||
"section": "Changes"
|
||||
},
|
||||
{
|
||||
"type": "chore",
|
||||
"section": "Maintenance"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue