Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
86 lines (86 loc) · 3.79 KB
/
Copy pathpackage.json
File metadata and controls
86 lines (86 loc) · 3.79 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
{
"name": "globalping-dash-directus",
"version": "1.0.0",
"license": "OSL-3.0",
"description": "Globalping dashboard directus",
"private": true,
"type": "module",
"dependencies": {
"@scure/base": "^2.0.0",
"bluebird": "^3.7.2",
"config": "^4.1.1",
"config-mapper-env": "^3.0.1",
"countries-list": "^3.4.1",
"knex": "^3.1.0",
"lodash": "^4.17.21",
"mysql": "^2.18.1",
"wait-on": "^9.0.1"
},
"devDependencies": {
"@martin-kolarik/eslint-config": "^8.0.4",
"@playwright/test": "^1.56.0",
"@types/bluebird": "^3.5.42",
"@types/config": "^3.3.5",
"@types/eslint": "^9.6.1",
"@types/lodash": "^4.17.20",
"@types/mocha": "^10.0.10",
"@types/node": "^22.13.14",
"@types/wait-on": "^5.3.4",
"@typescript-eslint/eslint-plugin": "^8.46.0",
"axios": "^1.12.2",
"cross-env": "^10.1.0",
"dotenv": "^17.2.3",
"dotenv-cli": "^10.0.0",
"eslint": "^9.37.0",
"eslint-plugin-chai-expect": "^3.1.0",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-jsonc": "^2.21.0",
"eslint-plugin-n": "^17.23.1",
"eslint-plugin-promise": "^7.2.1",
"eslint-plugin-vue": "^10.5.0",
"execa": "^9.6.0",
"husky": "^9.1.7",
"pm2": "^6.0.13",
"relative-day-utc": "^1.3.0",
"typescript": "~5.8.3"
},
"scripts": {
"lint": "NODE_OPTIONS='--max-old-space-size=8192' eslint --cache .",
"lint:fix": "pnpm lint --fix",
"init:dev": "./scripts/init.sh development",
"init:e2e": "./scripts/init.sh e2e",
"auth:development": "./scripts/auth.sh",
"docker:ls:update": "node ./scripts/docker-ls.js",
"migrate:development": "dotenv -e .env.scripts.development -e .env.docker.development -- pnpm run migrate:internal",
"migrate:e2e": "dotenv -e .env.scripts.e2e -e .env.docker.e2e -- pnpm run migrate:internal",
"migrate:production": "dotenv -e .env.scripts.production -e .env.docker.production -- pnpm run migrate:internal",
"migrate:internal": "rm -rf ./extensions/migrations/* && mkdir -p ./extensions/migrations/ && mkdir -p ./extensions/migration-utils/ && cp -rp ./src/extensions/migrations/* ./extensions/migrations/ && cp -rp ./src/extensions/migration-utils/* ./extensions/migration-utils/ && npx directus@11.17.4 database migrate:latest",
"seed:development": "dotenv -e .env.scripts.development -- pnpm run seed:internal",
"seed:e2e": "dotenv -e .env.scripts.e2e -- pnpm run seed:internal",
"seed:internal": "NODE_ENV=development knex seed:run",
"schema:apply:development": "dotenv -e .env.scripts.development -- pnpm run schema:apply:internal",
"schema:apply:e2e": "dotenv -e .env.scripts.e2e -- pnpm run schema:apply:internal",
"schema:apply:production": "dotenv -e .env.scripts.production -- pnpm run schema:apply:internal",
"schema:apply:internal": "npx directus@11.17.4 schema apply --yes snapshots/collections-schema.yml",
"schema:snapshot:development": "dotenv -e .env.scripts.development -- pnpm run schema:snapshot:internal",
"schema:snapshot:internal": "npx directus@11.17.4 schema snapshot --yes snapshots/collections-schema.yml",
"prepare": "husky install || echo 'Failed to install husky'; rm -f .eslintcache",
"test": "pnpm -r test",
"test:e2e": "pnpm run test:e2e:build:directus && pnpm run test:e2e:build:dash && pnpm run test:e2e:run",
"test:e2e:build:directus": "docker compose -f docker-compose.e2e.yml up --build -d && pnpm run init:e2e && docker compose -f docker-compose.e2e.yml stop",
"test:e2e:build:dash": "./scripts/build-dash.sh",
"test:e2e:run": "pnpm exec playwright test --grep-invert='.*generate-test\\.spec\\.ts'",
"test:e2e:generate": "pnpm exec playwright test test/e2e/generate-test.spec.ts --headed"
},
"repository": {
"type": "git",
"url": "git@github.com:jsdelivr/globalping-dash-directus.git"
},
"bugs": {
"url": "https://github.com/jsdelivr/globalping-dash-directus/issues"
},
"engines": {
"node": "22"
},
"packageManager": "pnpm@11.2.2"
}