2022-09-22 10:39:53 +03:00
|
|
|
{
|
2022-12-30 16:40:15 +03:00
|
|
|
"name": "AFFiNE",
|
|
|
|
"version": "0.3.0",
|
2022-10-14 14:29:36 +03:00
|
|
|
"private": true,
|
2022-12-30 16:40:15 +03:00
|
|
|
"author": "toeverything",
|
|
|
|
"license": "MPL-2.0",
|
2023-01-09 06:18:47 +03:00
|
|
|
"type": "module",
|
2022-10-14 14:29:36 +03:00
|
|
|
"scripts": {
|
2022-12-30 16:40:15 +03:00
|
|
|
"dev": "pnpm --filter=!@affine/app build && pnpm --filter @affine/app dev",
|
2023-01-07 12:01:10 +03:00
|
|
|
"dev:ac": "pnpm --filter=!@affine/app build && NODE_API_SERVER=ac pnpm --filter @affine/app dev",
|
|
|
|
"dev:local": "pnpm --filter=!@affine/app build && NODE_API_SERVER=local pnpm --filter @affine/app dev",
|
2022-12-29 09:55:41 +03:00
|
|
|
"build": " pnpm --filter=!@affine/app build && pnpm --filter!=@affine/datacenter -r build",
|
2022-12-30 16:40:15 +03:00
|
|
|
"export": "pnpm --filter @affine/app export",
|
|
|
|
"start": "pnpm --filter @affine/app start",
|
|
|
|
"lint": "pnpm --filter @affine/app lint",
|
|
|
|
"test": "playwright test",
|
2022-12-29 09:55:41 +03:00
|
|
|
"test:dc": "pnpm --filter @affine/datacenter test",
|
2022-12-30 16:40:15 +03:00
|
|
|
"test:e2e:codegen": "npx playwright codegen http://localhost:8080",
|
2023-01-09 06:18:47 +03:00
|
|
|
"test:unit": "playwright test --config=playwright.config.unit.ts",
|
2022-12-30 16:40:15 +03:00
|
|
|
"postinstall": "husky install",
|
2022-12-30 20:59:07 +03:00
|
|
|
"notify": "node --experimental-modules scripts/notify.mjs",
|
|
|
|
"check:ci": "pnpm lint & pnpm test"
|
2022-10-14 14:29:36 +03:00
|
|
|
},
|
2022-12-30 16:40:15 +03:00
|
|
|
"lint-staged": {
|
|
|
|
"*": "prettier --write --ignore-unknown",
|
|
|
|
"*.{ts,tsx,js,jsx}": "npx eslint --cache --fix"
|
|
|
|
},
|
2022-10-14 14:29:36 +03:00
|
|
|
"devDependencies": {
|
2023-01-08 19:48:54 +03:00
|
|
|
"@changesets/cli": "^2.26.0",
|
2022-12-30 16:40:15 +03:00
|
|
|
"@playwright/test": "^1.29.1",
|
|
|
|
"@types/eslint": "^8.4.10",
|
|
|
|
"@types/node": "^18.11.17",
|
2023-01-08 19:48:54 +03:00
|
|
|
"@typescript-eslint/eslint-plugin": "^5.47.0",
|
|
|
|
"@typescript-eslint/parser": "^5.47.0",
|
2022-12-30 16:40:15 +03:00
|
|
|
"eslint": "^8.30.0",
|
2022-10-14 14:29:36 +03:00
|
|
|
"eslint-config-next": "12.3.1",
|
|
|
|
"eslint-config-prettier": "^8.5.0",
|
2022-11-10 15:51:06 +03:00
|
|
|
"eslint-plugin-prettier": "^4.2.1",
|
2023-01-08 19:48:54 +03:00
|
|
|
"fake-indexeddb": "4.0.1",
|
2022-12-17 19:59:53 +03:00
|
|
|
"got": "^12.5.3",
|
2023-01-08 19:48:54 +03:00
|
|
|
"husky": "^8.0.2",
|
|
|
|
"lint-staged": "^13.1.0",
|
2022-11-29 21:15:43 +03:00
|
|
|
"prettier": "^2.7.1",
|
2023-01-09 06:49:37 +03:00
|
|
|
"typescript": "^4.9.3"
|
2022-12-30 16:40:15 +03:00
|
|
|
},
|
|
|
|
"eslintConfig": {
|
|
|
|
"root": true,
|
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
|
|
|
"plugin:prettier/recommended"
|
|
|
|
],
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"parserOptions": {
|
|
|
|
"project": [
|
|
|
|
"./tsconfig.json"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"plugins": [
|
|
|
|
"@typescript-eslint"
|
|
|
|
],
|
|
|
|
"rules": {
|
|
|
|
"prettier/prettier": "warn"
|
|
|
|
},
|
|
|
|
"reportUnusedDisableDirectives": true,
|
|
|
|
"ignorePatterns": [
|
|
|
|
"src/**/*.test.ts",
|
2023-01-07 16:44:10 +03:00
|
|
|
"package/**/dist/*",
|
|
|
|
"package/**/sync.js"
|
2022-12-30 16:40:15 +03:00
|
|
|
]
|
2022-09-22 10:39:53 +03:00
|
|
|
}
|
2022-10-14 14:29:36 +03:00
|
|
|
}
|