2022-02-20 19:51:55 +08:00
|
|
|
{
|
|
|
|
"name": "think",
|
|
|
|
"private": true,
|
|
|
|
"author": "fantasticit",
|
|
|
|
"scripts": {
|
2022-05-01 20:33:58 +08:00
|
|
|
"clean": "npx rimraf ./node_modules ./packages/**/node_modules",
|
2022-05-02 00:15:13 +08:00
|
|
|
"dev": "concurrently 'pnpm:dev:*'",
|
2022-02-20 19:51:55 +08:00
|
|
|
"dev:server": "pnpm run --dir packages/server dev",
|
|
|
|
"dev:client": "pnpm run --dir packages/client dev",
|
2022-03-11 13:57:55 +08:00
|
|
|
"build": "pnpm build:server && pnpm build:client",
|
|
|
|
"build:dep": "pnpm build:constants && pnpm build:domains && pnpm build:config",
|
|
|
|
"build:constants": "pnpm run --dir packages/constants build",
|
|
|
|
"build:domains": "pnpm run --dir packages/domains build",
|
2022-02-20 19:51:55 +08:00
|
|
|
"build:config": "pnpm run --dir packages/config build",
|
|
|
|
"build:server": "pnpm run --dir packages/server build",
|
|
|
|
"build:client": "pnpm run --dir packages/client build",
|
2022-05-02 00:15:13 +08:00
|
|
|
"start": "concurrently 'pnpm:start:*'",
|
2022-02-20 19:51:55 +08:00
|
|
|
"start:server": "pnpm run --dir packages/server start",
|
|
|
|
"start:client": "pnpm run --dir packages/client start",
|
2022-03-24 13:34:06 +08:00
|
|
|
"pm2": "pnpm run pm2:server && pnpm run pm2:client",
|
2022-02-20 19:51:55 +08:00
|
|
|
"pm2:server": "pnpm run --dir packages/server pm2",
|
2022-03-12 10:31:03 +08:00
|
|
|
"pm2:client": "pnpm run --dir packages/client pm2",
|
2022-05-02 00:15:13 +08:00
|
|
|
"lint": "concurrently 'pnpm:lint:*'",
|
2022-05-01 22:07:22 +08:00
|
|
|
"lint:client": "eslint --fix './packages/client/**/*.{ts,tsx,js,jsx}' -c '.eslintrc.client.js'",
|
|
|
|
"lint:server": "eslint --fix './packages/server/src/*.{ts,js}' -c '.eslintrc.server.js'",
|
2022-05-02 00:15:13 +08:00
|
|
|
"format": "concurrently 'pnpm:format:*'",
|
|
|
|
"format:ts": "prettier --write --parser typescript 'packages/**/*.{ts,tsx,js,jsx}'",
|
|
|
|
"format:css": "stylelint --fix --formatter verbose --allow-empty-input 'packages/**/*.{css,scss,sass}'",
|
2022-05-01 20:28:21 +08:00
|
|
|
"prepare": "husky install",
|
|
|
|
"precommit": "lint-staged"
|
2022-02-20 19:51:55 +08:00
|
|
|
},
|
|
|
|
"dependencies": {
|
|
|
|
"concurrently": "^7.0.0",
|
|
|
|
"cross-env": "^7.0.3",
|
|
|
|
"fs-extra": "^10.0.0",
|
|
|
|
"rimraf": "^3.0.2"
|
|
|
|
},
|
|
|
|
"engines": {
|
|
|
|
"node": ">=16.5.0"
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
2022-05-01 22:07:22 +08:00
|
|
|
"@typescript-eslint/eslint-plugin": "^5.21.0",
|
|
|
|
"@typescript-eslint/parser": "^5.21.0",
|
|
|
|
"eslint": "^8.14.0",
|
|
|
|
"eslint-config-prettier": "^8.5.0",
|
|
|
|
"eslint-plugin-import": "^2.26.0",
|
|
|
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
|
|
"eslint-plugin-prettier": "^4.0.0",
|
|
|
|
"eslint-plugin-react": "^7.29.4",
|
|
|
|
"eslint-plugin-react-hooks": "^4.5.0",
|
|
|
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
2022-05-01 20:28:21 +08:00
|
|
|
"husky": "^7.0.4",
|
2022-05-01 20:14:51 +08:00
|
|
|
"lint-staged": "^12.4.1",
|
2022-03-12 10:31:03 +08:00
|
|
|
"prettier": "^2.3.2",
|
2022-03-27 15:43:06 +08:00
|
|
|
"stylelint": "^14.6.1",
|
|
|
|
"stylelint-config-css-modules": "^4.1.0",
|
|
|
|
"stylelint-config-prettier": "^9.0.3",
|
|
|
|
"stylelint-config-standard": "^25.0.0",
|
|
|
|
"stylelint-config-standard-scss": "^3.0.0",
|
|
|
|
"stylelint-order": "^5.0.0",
|
|
|
|
"stylelint-prettier": "^2.0.0",
|
2022-02-20 19:51:55 +08:00
|
|
|
"typescript": "^4.5.5"
|
2022-04-24 21:23:36 +08:00
|
|
|
},
|
2022-05-01 20:14:51 +08:00
|
|
|
"lint-staged": {
|
|
|
|
"*.{ts,tsx,js,jsx}": "prettier --write",
|
2022-05-02 00:15:13 +08:00
|
|
|
"./packages/client/**/*.{ts,tsx,js,jsx}": [
|
|
|
|
"eslint --fix -c '.eslintrc.client.js'"
|
|
|
|
],
|
|
|
|
"./packages/server/src/*.{ts,js}": [
|
|
|
|
"eslint --fix -c '.eslintrc.server.js'"
|
|
|
|
],
|
2022-05-01 20:14:51 +08:00
|
|
|
"*.{css,scss,sass}": " stylelint --fix --formatter verbose --allow-empty-input"
|
|
|
|
}
|
2022-03-12 11:27:56 +08:00
|
|
|
}
|