-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
172 lines (172 loc) · 10.6 KB
/
Copy pathpackage.json
File metadata and controls
172 lines (172 loc) · 10.6 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
{
"name": "ernie",
"version": "1.0.0",
"private": true,
"type": "module",
"packageManager": "npm@12.0.2",
"engines": {
"node": ">=26.8.1",
"npm": ">=12.0.2"
},
"scripts": {
"build": "vite build",
"build:ssr": "vite build && vite build --ssr",
"dev": "vite",
"docker:dev:up": "docker compose --env-file .env.docker -f docker-compose.dev.yml up --build",
"docker:dev:up:d": "docker compose --env-file .env.docker -f docker-compose.dev.yml up --build -d",
"docker:dev:assessment": "docker compose --env-file .env.docker -f docker-compose.dev.yml --profile assessment up --build",
"docker:dev:parity": "docker compose --env-file .env.docker -f docker-compose.dev.yml --profile parity up --build",
"docker:dev:backend:d": "docker compose --env-file .env.docker -f docker-compose.dev.yml up -d --wait db redis app",
"docker:dev:down": "docker compose --env-file .env.docker -f docker-compose.dev.yml down",
"docker:dev:reset": "docker compose --env-file .env.docker -f docker-compose.dev.yml down -v",
"artisan": "docker compose --env-file .env.docker -f docker-compose.dev.yml exec -T app php artisan",
"composer:app": "docker compose --env-file .env.docker -f docker-compose.dev.yml exec -T app composer",
"db:dev:test:prepare": "npm run docker:dev:backend:d && docker compose --env-file .env.docker -f docker-compose.dev.yml exec -T db mysql -uroot -prootsecret -e \"CREATE DATABASE IF NOT EXISTS ernie_test; GRANT ALL PRIVILEGES ON ernie_test.* TO 'ernie'@'%'; FLUSH PRIVILEGES;\"",
"db:dev:test:reset": "docker compose --env-file .env.docker -f docker-compose.dev.yml exec -T db mysql -uroot -prootsecret -e \"DROP DATABASE IF EXISTS ernie_test; CREATE DATABASE ernie_test; GRANT ALL PRIVILEGES ON ernie_test.* TO 'ernie'@'%'; FLUSH PRIVILEGES;\"",
"format": "prettier --write resources/",
"format:check": "prettier --check resources/",
"lint": "eslint . --fix",
"lint:check": "eslint .",
"openapi:lint": "redocly lint resources/data/openapi.json",
"openapi:bundle": "redocly bundle resources/data/openapi.json --ext json --output storage/app/openapi.bundle.json",
"openapi:check": "npm run openapi:lint",
"phpstan:check": "npm run docker:dev:backend:d && docker compose --env-file .env.docker -f docker-compose.dev.yml exec -T app php -d memory_limit=2G ./vendor/bin/phpstan analyse --memory-limit=2G",
"test:php": "node ./scripts/run-pest.mjs",
"test:php:tia": "node ./scripts/run-pest.mjs --parallel --tia --locally --filtered",
"test:php:agent": "node ./scripts/run-pest.mjs --agent",
"test:php:type-coverage": "node ./scripts/run-pest.mjs --type-coverage --compact --min=92 --memory-limit=2G",
"test:php:mysql-sensitive:exec": "docker compose --env-file .env.docker -f docker-compose.dev.yml exec -T -e ERNIE_TEST_DB_CONNECTION=mysql -e ERNIE_TEST_DB_HOST=db -e ERNIE_TEST_DB_PORT=3306 -e ERNIE_TEST_DB_DATABASE=ernie_test -e ERNIE_TEST_DB_USERNAME=ernie -e ERNIE_TEST_DB_PASSWORD=secret app php -d memory_limit=2G ./vendor/bin/pest --no-coverage",
"test:php:mysql-sensitive": "npm run docker:dev:backend:d && npm run db:dev:test:reset && npm run test:php:mysql-sensitive:exec -- tests/pest/Feature/Database/DatabaseDumpDownloadsMigrationTest.php && npm run db:dev:test:reset && npm run test:php:mysql-sensitive:exec -- tests/pest/Feature/Database/CreateStatisticsTablesMigrationTest.php && npm run db:dev:test:reset && npm run test:php:mysql-sensitive:exec -- tests/pest/Feature/Database/WidenSizesUnitMigrationTest.php && npm run db:dev:test:reset && npm run test:php:mysql-sensitive:exec -- tests/pest/Feature/Database/WidenRelatedItemsEditionMigrationTest.php && npm run db:dev:test:reset && npm run test:php:mysql-sensitive:exec -- tests/pest/Feature/Database/WidenIgsnMetadataUserCodeMigrationTest.php && npm run db:dev:test:reset && npm run test:php:mysql-sensitive:exec -- tests/pest/Feature/Database/WidenFundingReferencesFunderNameMigrationTest.php && npm run db:dev:test:reset && npm run test:php:mysql-sensitive:exec -- tests/pest/Feature/IgsnImport/MedusaLegacyImportRegressionTest.php && npm run db:dev:test:reset && npm run test:php:mysql-sensitive:exec -- tests/pest/Feature/Database/AlterSizesNumericValuePrecisionMigrationTest.php && npm run db:dev:test:reset && npm run test:php:mysql-sensitive:exec -- tests/pest/Feature/Database/RepairResourceRightsRawFieldsSchemaMigrationTest.php && npm run db:dev:test:reset && npm run test:php:mysql-sensitive:exec -- tests/pest/Feature/Database/WidenSuggestedRelationsSourceTitleMigrationTest.php && npm run db:dev:test:reset && npm run test:php:mysql-sensitive:exec -- tests/pest/Feature/Database/ResourceListingProjectionSortIndexesTest.php && npm run db:dev:test:reset && npm run test:php:mysql-sensitive:exec -- tests/pest/Feature/Database/ResourceListingProjectionSpdxLicenseMigrationTest.php && npm run db:dev:test:reset && npm run test:php:mysql-sensitive:exec -- tests/pest/Feature/Database/IgsnPortalFacetIndexesTest.php",
"check:backend": "npm run test:php && npm run phpstan:check",
"check:frontend": "npm run lint:check && npm run openapi:check && npm run types && npm run test:run",
"check:parity": "docker compose --env-file .env.docker -f docker-compose.dev.yml --profile parity up --build -d --wait && npm run test:php:mysql-sensitive && npm run test:e2e:devstack",
"types": "npm run types:app && npm run types:test",
"types:app": "tsc -p tsconfig.json --noEmit --checkers 4",
"types:test": "tsc -p tests/vitest/tsconfig.json --noEmit --checkers 4",
"types:watch": "npm run types:watch:app",
"types:watch:app": "tsc -p tsconfig.json --noEmit --checkers 4 --watch",
"types:watch:test": "tsc -p tests/vitest/tsconfig.json --noEmit --checkers 4 --watch",
"shadcn": "npx shadcn@4.20.0",
"test": "node ./scripts/run-vitest.mjs",
"test:run": "node ./scripts/run-vitest.mjs run",
"test:coverage": "node ./scripts/run-vitest.mjs run --coverage",
"test:doctor": "node ./scripts/run-vitest.mjs doctor",
"test:php:deprecations": "node ./scripts/run-pest.mjs --display-deprecations --display-phpunit-deprecations",
"test:e2e": "start-server-and-test 'php artisan serve' http://127.0.0.1:8000 'playwright test'",
"test:e2e:changelog": "start-server-and-test 'php artisan serve' http://127.0.0.1:8000 'playwright test critical/changelog'",
"test:e2e:a11y": "start-server-and-test 'php artisan serve' http://127.0.0.1:8000 'playwright test accessibility'",
"test:e2e:ui": "start-server-and-test 'php artisan serve' http://127.0.0.1:8000 'playwright test --ui'",
"test:e2e:headed": "start-server-and-test 'php artisan serve' http://127.0.0.1:8000 'playwright test --headed'",
"test:e2e:docker": "playwright test --config=playwright.docker.config.ts",
"test:e2e:docker:headed": "playwright test --config=playwright.docker.config.ts --headed",
"test:e2e:docker:ui": "playwright test --config=playwright.docker.config.ts --ui",
"test:e2e:devstack": "playwright test --config=playwright.devstack.config.ts",
"test:e2e:devstack:headed": "playwright test --config=playwright.devstack.config.ts --headed",
"test:e2e:devstack:ui": "playwright test --config=playwright.devstack.config.ts --ui",
"test:e2e:stage": "playwright test --config=playwright.stage.config.ts",
"test:e2e:stage:headed": "playwright test --config=playwright.stage.config.ts --headed",
"test:e2e:stage:ui": "playwright test --config=playwright.stage.config.ts --ui"
},
"devDependencies": {
"@axe-core/playwright": "^4.13.0",
"@eslint/js": "^10.0.1",
"@laravel/vite-plugin-wayfinder": "^0.1.10",
"@playwright/test": "^1.62.1",
"@redocly/cli": "^2.51.0",
"@tanstack/react-query-devtools": "^5.102.8",
"@testing-library/dom": "^10.4.1",
"@testing-library/jest-dom": "^7.0.1",
"@testing-library/react": "^16.3.3",
"@testing-library/user-event": "^14.6.7",
"@types/d3": "^7.4.3",
"@types/leaflet": "^1.9.22",
"@types/node": "^26.4.1",
"@types/nprogress": "^0.2.3",
"@types/papaparse": "^5.5.2",
"@types/react": "^19.2.18",
"@types/react-dom": "^19.2.5",
"@types/yaireo__tagify": "^4.27.0",
"@vitejs/devtools": "^0.6.3",
"@vitejs/plugin-react": "^6.1.1",
"@vitest/browser": "^5.0.0",
"@vitest/browser-playwright": "^5.0.0",
"@vitest/coverage-v8": "^5.0.0",
"dotenv": "^17.4.2",
"eslint": "^10.9.1",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-simple-import-sort": "^14.0.0",
"globals": "^17.12.0",
"jsdom": "^30.0.1",
"msw": "^2.15.0",
"playwright": "^1.62.1",
"prettier": "^3.9.6",
"prettier-plugin-tailwindcss": "^0.8.1",
"start-server-and-test": "^3.0.12",
"typescript-eslint": "^8.69.0",
"vite": "^8.2.2",
"vitest": "^5.0.0"
},
"dependencies": {
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@hookform/resolvers": "^5.9.1",
"@inertiajs/react": "^3.7.0",
"@tailwindcss/vite": "^4.3.3",
"@tanstack/react-query": "^5.102.8",
"@tanstack/react-table": "^9.2.4",
"@types/leaflet.markercluster": "^1.5.6",
"@typescript/native": "npm:typescript@^7.0.2",
"@vis.gl/react-google-maps": "^1.9.0",
"@yaireo/tagify": "^4.38.0",
"axios": "^1.20.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
"concurrently": "^10.0.5",
"d3": "^7.9.0",
"date-fns": "^4.4.0",
"driver.js": "^1.8.0",
"framer-motion": "^13.1.1",
"laravel-vite-plugin": "^3.2.0",
"leaflet": "^1.9.4",
"leaflet.markercluster": "^1.5.3",
"lucide-react": "^1.39.0",
"nprogress": "^0.2.0",
"papaparse": "^5.7.0",
"qrcode.react": "^4.2.0",
"radix-ui": "^1.6.7",
"react": "^19.2.8",
"react-day-picker": "^10.0.1",
"react-dom": "^19.2.8",
"react-hook-form": "^7.87.0",
"react-leaflet": "^5.0.0",
"react-resizable-panels": "^4.12.3",
"recharts": "^3.10.1",
"sonner": "^2.0.8",
"swagger-ui-react": "^5.32.14",
"tailwind-merge": "^3.6.0",
"tailwindcss": "^4.3.3",
"tailwindcss-animate": "^1.0.7",
"typescript": "npm:@typescript/typescript6@^6.0.2",
"vaul": "^1.1.2",
"zod": "^4.5.4"
},
"optionalDependencies": {
"@tailwindcss/oxide-linux-x64-gnu": "^4.3.3",
"lightningcss-linux-x64-gnu": "^1.33.0"
},
"overrides": {
"js-yaml": "4.3.1"
},
"allowScripts": {
"core-js-pure@3.50.0": true,
"tree-sitter@0.21.1": true,
"tree-sitter@0.22.4": true,
"tree-sitter-json@0.24.8": true,
"@tree-sitter-grammars/tree-sitter-yaml@0.7.1": true,
"@scarf/scarf@1.4.0": false,
"msw@2.15.0": true
}
}