-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
68 lines (68 loc) · 2.78 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
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
{
"name": "globalping-dash-directus",
"version": "1.0.0",
"license": "OSL-3.0",
"description": "Globalping dashboard directus",
"private": true,
"type": "module",
"dependencies": {
"config": "^3.3.12",
"config-mapper-env": "^2.0.0",
"knex": "^3.1.0",
"lodash": "^4.17.21",
"mysql": "^2.18.1"
},
"devDependencies": {
"@martin-kolarik/eslint-config": "^7.3.2",
"@playwright/test": "^1.48.2",
"@types/bluebird": "^3.5.42",
"@types/config": "^3.3.4",
"@types/eslint": "^8.56.11",
"@types/lodash": "^4.17.7",
"@types/mocha": "^10.0.7",
"@types/node": "^22.8.6",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"cross-env": "^7.0.3",
"dotenv": "^16.4.5",
"dotenv-cli": "^7.4.2",
"eslint": "^8.57.0",
"eslint-plugin-chai-expect": "^3.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsonc": "^2.16.0",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-promise": "^6.6.0",
"eslint-plugin-vue": "^9.27.0",
"execa": "^9.5.1",
"husky": "^8.0.3",
"pm2": "^5.4.2",
"relative-day-utc": "^1.3.0",
"typescript": "~5.2.2"
},
"scripts": {
"lint": "eslint --cache .",
"lint:fix": "pnpm lint --fix",
"init:dev": "./scripts/init.sh development",
"init:e2e": "./scripts/init.sh e2e",
"docker:ls:update": "node ./scripts/docker-ls.js",
"migrate": "rm -rf ./extensions/migrations/* && mkdir -p ./extensions/migrations/ && cp -rp ./src/extensions/migrations/* ./extensions/migrations/ && cp -p ./src/extensions/migration-utils.js ./extensions/ && dotenv -- npx directus@11.1.1 database migrate:latest",
"seed": "NODE_ENV=development dotenv -- knex seed:run",
"schema:apply": "npx directus@11.1.1 schema apply --yes snapshots/collections-schema.yml",
"schema:snapshot": "npx directus@11.1.1 schema snapshot --yes snapshots/collections-schema.yml",
"prepare": "husky install || echo 'Failed to install husky'; rm -f .eslintcache",
"test:e2e": "npm run test:e2e:build:directus && npm run test:e2e:build:dash && npm 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": "git clone https://github.com/jsdelivr/globalping-dash.git test/e2e/globalping-dash; cd test/e2e/globalping-dash && git reset --hard origin/master && git pull --force && pnpm install --ignore-workspace && dotenv -e ../../../.env -- pnpm build; cd ../../../;",
"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": "20"
}
}