forked from Chainlit/chainlit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
34 lines (34 loc) · 1.61 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "^4.2.0",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"cypress": "12.9.0",
"dotenv": "^16.3.1",
"eslint": "^8.48.0",
"husky": "^8.0.3",
"kill-port": "^2.0.1",
"lint-staged": "^13.3.0",
"prettier": "^2.8.8",
"shell-exec": "^1.1.2",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
},
"scripts": {
"preinstall": "npx only-allow pnpm",
"test": "pnpm exec ts-node ./cypress/support/e2e.ts",
"test:react-components": "cd libs/react-components && pnpm test",
"prepare": "husky install",
"lintUi": "cd frontend && pnpm run lint",
"formatUi": "cd frontend && pnpm run format",
"lint:react-components": "cd libs/react-components && pnpm run lint",
"format:react-components": "cd libs/react-components && pnpm run format",
"lintPython": "cd backend && poetry run mypy chainlit/",
"formatPython": "black `git ls-files | grep '.py$'` && isort --profile=black .",
"buildUi": "cd libs/react-client && pnpm run build && cd ../react-components && pnpm run build && cd ../copilot && pnpm run build && cd ../../frontend && pnpm run build",
"build:react-components": "cd libs/react-client && pnpm build && cd ../react-components && pnpm build",
"build": "pnpm run buildUi && (mkdir -p backend/chainlit/frontend && cp -R frontend/dist backend/chainlit/frontend) && (mkdir -p backend/chainlit/copilot && cp -R libs/copilot/dist backend/chainlit/copilot) && (cd backend && poetry build)"
}
}