This repository has been archived by the owner on Jan 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
80 lines (80 loc) · 3.3 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
69
70
71
72
73
74
75
76
77
78
79
80
{
"name": "nightlife",
"version": "1.0.0",
"description": "",
"main": "index.js",
"type": "module",
"engines": {
"node": ">=20.9.0"
},
"scripts": {
"start:mysql": "docker-compose up -d mysql8",
"stop:mysql": "docker-compose down mysql8",
"start:mysql:test": "docker compose up -d mysql8-test",
"stop:mysql:test": "docker compose down mysql8-test",
"start:dev": "npm run scss:build && npm run alias-build && altv-server.exe",
"scss:start": "sass resources/roleplay/client/assets/scss:resources/roleplay/client/assets/css --update",
"scss:build": "npm run scss:start --quiet --stop-on-error",
"scss:watch": "npm run scss:start -- --watch",
"scss:lint": "stylelint resources/roleplay/client/assets/scss --config .tools/stylelint/stylelintrc.json --cache --cache-location .tools/stylelint/.cache/ --ignore-path .tools/stylelint/.stylelintignore",
"code:eslint": "eslint --ext .js,.html ./ --c .tools/eslint/.eslintrc.cjs --cache --cache-location .tools/eslint/.cache/",
"code:lint": "npm run code:eslint && npm run scss:lint",
"code:format": "npm run code:eslint -- --fix && npm run scss:lint -- --fix",
"alias-build": "link-module-alias",
"husky:install": "husky install",
"postinstall": "npm run husky:install && npm run alias-build",
"test": "node -e \"console.log(require('os').platform())\" | xargs -I {} sh -c 'if [ \"{}\" = \"win32\" ]; then npm run migrate:test:windows; else npm run migrate:test:linux; fi' && npm run jest:test",
"test:local": "npm run start:mysql:test && npm run test && npm run stop:mysql:test",
"test:ci": "npm run test",
"jest:test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --forceExit --testPathPattern=tests/",
"migrate:test:windows": "SET NODE_ENV=test node .tools/jest/database.setup.js",
"migrate:test:linux": "NODE_ENV=test node .tools/jest/database.setup.js"
},
"jest": {
"setupFiles": [
"<rootDir>/.tools/jest/jest.setup.js"
],
"moduleNameMapper": {
"^~client(.*)$": "<rootDir>/resources/roleplay/client$1",
"^~server(.*)$": "<rootDir>/resources/roleplay/server$1",
"^~shared(.*)$": "<rootDir>/resources/roleplay/shared$1",
"^~assets(.*)$": "<rootDir>/resources/roleplay/client/assets$1"
}
},
"author": "",
"license": "GPL-3.0",
"dependencies": {
"@sentry/node": "^7.74.1",
"axios": "^1.6.1",
"bcryptjs": "^2.4.3",
"bootstrap": "^5.3.2",
"dotenv": "^16.3.1",
"link-module-alias": "^1.2.0",
"mariadb": "^3.2.2",
"mysql2": "^3.6.2",
"sass": "^1.69.4",
"sequelize": "^6.33.0"
},
"devDependencies": {
"@altv/types-client": "^15.0.7",
"@altv/types-natives": "^15.0.7",
"@altv/types-server": "^15.0.7",
"@altv/types-shared": "^15.0.7",
"@altv/types-webview": "^15.0.7",
"@html-eslint/eslint-plugin": "^0.22.0",
"@html-eslint/parser": "^0.22.0",
"eslint": "^8.51.0",
"husky": "^8.0.3",
"jest": "^29.7.0",
"stylelint": "^15.11.0",
"stylelint-config-standard": "^34.0.0",
"stylelint-config-standard-scss": "^11.0.0",
"stylelint-scss": "^5.2.1"
},
"_moduleAliases": {
"~client": "./resources/roleplay/client",
"~server": "./resources/roleplay/server",
"~shared": "./resources/roleplay/shared",
"~assets": "./resources/roleplay/client/assets"
}
}