-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpackage.json
123 lines (123 loc) · 3.46 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
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
{
"name": "mock-config-server",
"version": "4.0.1",
"description": "Tool that easily and quickly imitates server operation, create full fake api in few steps",
"author": {
"name": "SIBERIA CAN CODE 🧊",
"url": "https://github.com/siberiacancode"
},
"contributors": [
{
"name": "Dmitry Babin",
"url": "https://github.com/debabin"
},
{
"name": "Nursultan Zianurov",
"url": "https://github.com/MiaInturi"
},
{
"name": "Sergey Kryavkin",
"url": "https://github.com/RiceWithMeat"
},
{
"name": "Alexander Vasilchuk",
"url": "https://github.com/anv296"
},
{
"name": "Daria Bortsova",
"url": "https://github.com/kvelian"
}
],
"license": "MIT",
"homepage": "https://github.com/siberiacancode/mock-config-server",
"repository": {
"type": "git",
"url": "https://github.com/siberiacancode/mock-config-server.git"
},
"keywords": [
"server",
"fake",
"REST",
"rest",
"API",
"api",
"mock",
"mocking",
"config",
"data"
],
"main": "dist/index.js",
"types": "./dist/index.d.ts",
"bin": {
"mock-config-server": "dist/bin/bin.js",
"mcs": "dist/bin/bin.js"
},
"files": [
"dist"
],
"engines": {
"node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0"
},
"scripts": {
"prepublishOnly": "git diff --exit-code",
"prepare": "husky && yarn build",
"build:types": "tsc -p tsconfig.production.json && tsc-alias -p tsconfig.production.json",
"build:swc": "swc bin src index.ts -d dist --extensions .ts --copy-files --ignore **/*.test.ts --ignore bin/templates",
"build:copy-templates": "shx mkdir -p dist/bin/templates/ts && shx cp -r bin/templates/ts dist/bin/templates && shx mkdir -p dist/bin/templates/js && shx cp -r bin/templates/js dist/bin/templates",
"build": "shx rm -rf dist && yarn build:types && yarn build:swc && yarn build:copy-templates",
"start": "yarn build && node ./dist/bin/bin.js",
"dev": "nodemon --watch src --watch bin --watch mock-server.config.* -e js,ts --exec \"yarn start\"",
"type": "tsc --noEmit",
"unit-test": "vitest",
"lint": "eslint . --fix",
"lint-inspector": "npx @eslint/config-inspector",
"stylelint": "stylelint \"src/static/**/*.css\" --fix",
"format": "prettier --write \"**/*.(ts|js)\"",
"pretty": "yarn format && yarn lint"
},
"dependencies": {
"@types/body-parser": "^1.19.5",
"@types/express": "^4.17.21",
"@types/flat": "^5.0.5",
"@types/prompts": "^2.4.9",
"@types/yargs": "^17.0.33",
"ansi-colors": "^4.1.3",
"body-parser": "^2.0.2",
"esbuild": "^0.24.2",
"express": "^4.21.2",
"express-urlrewrite": "^2.0.3",
"flat": "^5.0.2",
"graphql": "^16.10.0",
"please-upgrade-node": "^3.2.0",
"prompts": "^2.4.2",
"yargs": "^17.7.2",
"zod": "^3.24.1"
},
"devDependencies": {
"@siberiacancode/eslint": "^2.6.0",
"@siberiacancode/prettier": "^1.1.1",
"@siberiacancode/vitest": "^1.2.4",
"@swc/cli": "^0.6.0",
"@swc/core": "^1.10.7",
"@types/supertest": "^6.0.2",
"husky": "^9.1.7",
"lint-staged": "^15.3.0",
"nodemon": "^3.1.9",
"shx": "^0.3.4",
"supertest": "^7.0.0",
"tsc-alias": "^1.8.10",
"typescript": "^5.7.3"
},
"lint-staged": {
"*.css": [
"stylelint --fix"
],
"*.js": [
"prettier --write"
],
"*.ts": [
"prettier --write",
"eslint --no-error-on-unmatched-pattern --fix"
]
}
}