a57c93d35b
* chore: upgrade vitest to v0.34.3 * feat: setup NocoBase * chore: preparing test env * test: add a test of rigster * refactor: rename test dir to testUtils * chore: add tests * chore: add ci for e2e * chore: fix ci * chore: avoid error in CI * chore: add some utils for test * chore: make more stable * chore: should not close server in CI * chore: add comments * chore: change output dir * fix: should use current branch to run tests * chore: should request systemSettings by api in e2e * chore: should build first in e2e CI * chore: remove key * chore: use execa to replace execSync * refactor: extract test suite * chore: add gotoPage * chore: update uid of pageSchema * chore: update collection name * chore: use faker.js to generate data * refactor: extract page config * chore: ignore for association fields in faker * chore: add testid * chore: optimize action designer * chore: associationFilter.Item designer * chore: AssiciationFilter & BlockItem * Revert "chore: AssiciationFilter & BlockItem" This reverts commit b418df650e106fd0c8e23035d2f75acf60dcafe4. * Revert "chore: associationFilter.Item designer" This reverts commit 7aa4d35c1af7f3a780b370d8b1b44aac01697be3. * Revert "chore: optimize action designer" This reverts commit ff717b972ffd64f7968d565a3a84ad617ff889e2. * chore: optimize Designer * chore: compat with older browsers * chore: use describe to avoid hooks is not run * chore: add no-floating-promises to eslint rules * chore: support argv * chore: demo * chore: better testId * chore: change .e2e.ts to .test.ts * fix(SchemaInitializer): avoid error * refactor: move e2eUtils.ts to @nocobase/test * fix: move e2eUtils to client * chore: remove uselesscode * refactor: add .env.e2e.example * chore: optimize log * refactor: use mockPage to replace gotoPage * chore: update env.e2e * chore: add APP_BASE_URL * chore: gitigore * test: add test related of menu * chore: add SOCKET_PATH in env * fix(vscode): load env when using vscode plugin
105 lines
2.9 KiB
JSON
105 lines
2.9 KiB
JSON
{
|
|
"name": "nocobase",
|
|
"private": true,
|
|
"workspaces": [
|
|
"packages/*/*",
|
|
"packages/*/*/*"
|
|
],
|
|
"license": "Apache-2.0",
|
|
"engines": {
|
|
"node": ">=16.0.0"
|
|
},
|
|
"licenses": [
|
|
{
|
|
"type": "Apache-2.0",
|
|
"url": "https://www.apache.org/licenses/LICENSE-2.0"
|
|
}
|
|
],
|
|
"scripts": {
|
|
"nocobase": "nocobase",
|
|
"pm": "nocobase pm",
|
|
"dev": "nocobase dev",
|
|
"dev-server": "nocobase dev --server",
|
|
"start": "nocobase start",
|
|
"build": "nocobase build",
|
|
"tar": "nocobase tar",
|
|
"test": "nocobase test",
|
|
"test:client": "vitest",
|
|
"test:e2e": "ts-node-dev ./scripts/runE2e.setup.ts",
|
|
"test:codegen": "ts-node-dev ./scripts/codegen.setup.ts",
|
|
"test:server": "ts-node-dev ./scripts/nocobase.setup.ts",
|
|
"tc": "yarn test:client",
|
|
"doc": "nocobase doc",
|
|
"postinstall": "nocobase postinstall",
|
|
"lint": "eslint .",
|
|
"clean": "nocobase clean",
|
|
"changelog": "auto-changelog -p -t keepachangelog",
|
|
"version:alpha": "lerna version prerelease --preid alpha --force-publish=* --no-git-tag-version -m \"chore(versions): publish packages %s\"",
|
|
"release:force": "lerna publish from-package --yes",
|
|
"release": "lerna publish",
|
|
"run:example": "ts-node-dev -r dotenv/config -r tsconfig-paths/register ./examples/index.ts"
|
|
},
|
|
"resolutions": {
|
|
"@types/react": "^17.0.0",
|
|
"@types/react-dom": "^17.0.0",
|
|
"@typescript-eslint/parser": "^6.2.0",
|
|
"react-router-dom": "^6.11.2",
|
|
"react-router": "^6.11.2",
|
|
"react": "^18.0.0",
|
|
"react-dom": "^18.0.0",
|
|
"antd": "5.8.6"
|
|
},
|
|
"config": {
|
|
"ghooks": {
|
|
"pre-commit": "yarn lint-staged",
|
|
"commit-msg": "commitlint --edit"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,json}": [
|
|
"prettier --write"
|
|
],
|
|
"*.ts?(x)": [
|
|
"eslint --fix"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@commitlint/cli": "^16.1.0",
|
|
"@commitlint/config-conventional": "^16.0.0",
|
|
"@commitlint/prompt-cli": "^16.1.0",
|
|
"@faker-js/faker": "8.1.0",
|
|
"@playwright/test": "^1.37.1",
|
|
"@testing-library/jest-dom": "^5.17.0",
|
|
"@testing-library/react": "^14.0.0",
|
|
"@testing-library/user-event": "^14.4.3",
|
|
"@types/react": "^17.0.0",
|
|
"@types/react-dom": "^17.0.0",
|
|
"@vitejs/plugin-react": "^4.0.0",
|
|
"auto-changelog": "^2.4.0",
|
|
"commander": "^9.2.0",
|
|
"dumi": "^2.2.0",
|
|
"dumi-theme-nocobase": "^0.2.14",
|
|
"eslint-plugin-jest-dom": "^5.0.1",
|
|
"eslint-plugin-testing-library": "^5.11.0",
|
|
"execa": "^5.1.1",
|
|
"ghooks": "^2.0.4",
|
|
"jest": "^29.6.2",
|
|
"jest-cli": "^29.6.2",
|
|
"jsdom-worker": "^0.3.0",
|
|
"lint-staged": "^13.2.3",
|
|
"pretty-format": "^24.0.0",
|
|
"pretty-quick": "^3.1.0",
|
|
"react": "^18.0.0",
|
|
"react-dom": "^18.0.0",
|
|
"ts-jest": "^29.1.1",
|
|
"typescript": "5.1.3",
|
|
"vite": "^4.4.9",
|
|
"vitest": "^0.34.3"
|
|
},
|
|
"volta": {
|
|
"node": "18.14.2",
|
|
"yarn": "1.22.19"
|
|
},
|
|
"dependencies": {}
|
|
}
|