mock-service-cli 4.3.2 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -4
- package/dist/api-overview.html +1 -0
- package/dist/edition.json +1 -0
- package/dist/favicon-api-overview.svg +8 -0
- package/dist/favicon-file-explorer-login.svg +8 -0
- package/dist/favicon-file-explorer.svg +6 -0
- package/dist/favicon-static-server.svg +6 -0
- package/dist/file-explorer-login.html +60 -0
- package/dist/file-explorer.html +438 -46
- package/dist/meta.json +9991 -0
- package/dist/runtime.js +26 -23
- package/docs/static-server.config.example.json +28 -0
- package/package.json +15 -75
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"open": false,
|
|
3
|
+
"browser": "default",
|
|
4
|
+
"watch": {
|
|
5
|
+
"ignore": ["**/node_modules/**", "**/.git/**"],
|
|
6
|
+
"delay": 100,
|
|
7
|
+
"fullReload": false
|
|
8
|
+
},
|
|
9
|
+
"injectTag": "body",
|
|
10
|
+
"spaFallback": "/index.html",
|
|
11
|
+
"mounts": [
|
|
12
|
+
{
|
|
13
|
+
"path": "/vendor",
|
|
14
|
+
"directory": "../node_modules"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"proxy": {
|
|
18
|
+
"/api": "http://127.0.0.1:3000"
|
|
19
|
+
},
|
|
20
|
+
"cors": false,
|
|
21
|
+
"headers": {
|
|
22
|
+
"Cache-Control": "no-store"
|
|
23
|
+
},
|
|
24
|
+
"https": {
|
|
25
|
+
"cert": "./certs/local-cert.pem",
|
|
26
|
+
"key": "./certs/local-key.pem"
|
|
27
|
+
}
|
|
28
|
+
}
|
package/package.json
CHANGED
|
@@ -1,38 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mock-service-cli",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.0",
|
|
4
4
|
"description": "🦅 Local Mock/Static/SPA server, Http?s request proxy, API overview page, File explorer",
|
|
5
5
|
"main": "./dist/mockServer.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"mock-service-cli": "bin/mock-service-cli"
|
|
8
8
|
},
|
|
9
|
-
"scripts": {
|
|
10
|
-
"build": "node ./scripts/build.js",
|
|
11
|
-
"prepack": "npm run build",
|
|
12
|
-
"prestart": "npm run build",
|
|
13
|
-
"start": "node ./bin/mock-service-cli",
|
|
14
|
-
"start:src": "node ./src/bin/mock-service-cli",
|
|
15
|
-
"pretest": "npm run build",
|
|
16
|
-
"test:src": "npm run build --if-present && node ./scripts/run-tests.js smoke",
|
|
17
|
-
"test:unit": "node ./scripts/run-tests.js unit",
|
|
18
|
-
"test": "node ./scripts/run-tests.js unit",
|
|
19
|
-
"test-watch": "tap --reporter=spec --watch test/*.test.js",
|
|
20
|
-
"fix": "eslint --ext .js,.vue,.css --fix",
|
|
21
|
-
"prettier": "prettier -c --write \"**/*.{ts,js,jsx,css,less,scss,json}\"",
|
|
22
|
-
"coverage": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls -v",
|
|
23
|
-
"release:prerelease": "standard-version --prerelease",
|
|
24
|
-
"release:prefix": "standard-version --prerelease alpha",
|
|
25
|
-
"release:patch": "standard-version --release-as patch && git push --follow-tags origin master",
|
|
26
|
-
"release:minor": "standard-version --release-as minor && git push --follow-tags origin master",
|
|
27
|
-
"release:major": "standard-version --release-as major && git push --follow-tags origin master"
|
|
28
|
-
},
|
|
29
9
|
"files": [
|
|
30
10
|
"bin",
|
|
31
|
-
"dist
|
|
32
|
-
"
|
|
11
|
+
"dist",
|
|
12
|
+
"docs/static-server.config.example.json",
|
|
13
|
+
"README.md",
|
|
14
|
+
"LICENSE"
|
|
33
15
|
],
|
|
34
16
|
"engines": {
|
|
35
|
-
"node": ">=18"
|
|
17
|
+
"node": ">=18.18"
|
|
36
18
|
},
|
|
37
19
|
"author": "chendq <deqiaochen@gmail.com>",
|
|
38
20
|
"keywords": [
|
|
@@ -55,59 +37,17 @@
|
|
|
55
37
|
},
|
|
56
38
|
"license": "MIT",
|
|
57
39
|
"homepage": "https://github.com/chandq/mock-service-cli#readme",
|
|
58
|
-
"dependencies": {
|
|
59
|
-
"nodemon": "^3.1.14"
|
|
60
|
-
},
|
|
61
|
-
"devDependencies": {
|
|
62
|
-
"@commitlint/cli": "^8.3.5",
|
|
63
|
-
"@commitlint/config-conventional": "^8.3.4",
|
|
64
|
-
"babel-eslint": "^10.1.0",
|
|
65
|
-
"colors": "^1.4.0",
|
|
66
|
-
"esbuild": "^0.28.1",
|
|
67
|
-
"eslint": "^7.0.0",
|
|
68
|
-
"eslint-config-populist": "^4.2.0",
|
|
69
|
-
"eslint-plugin-mocha": "^9.0.0",
|
|
70
|
-
"express": "^4.22.2",
|
|
71
|
-
"fs-extra": "^11.3.6",
|
|
72
|
-
"http-proxy-middleware": "^2.0.10",
|
|
73
|
-
"husky": "^4.3.8",
|
|
74
|
-
"lint-staged": "^10.2.2",
|
|
75
|
-
"lodash": "^4.18.1",
|
|
76
|
-
"minimist": "^1.2.6",
|
|
77
|
-
"mockjs": "^0.1.10",
|
|
78
|
-
"portfinder": "^1.0.38",
|
|
79
|
-
"socket.io": "^4.8.3",
|
|
80
|
-
"standard-version": "^8.0.0",
|
|
81
|
-
"tap": "^15.0.10"
|
|
82
|
-
},
|
|
83
|
-
"tap": {
|
|
84
|
-
"check-coverage": false,
|
|
85
|
-
"nyc-arg": [
|
|
86
|
-
"--include=src/**/*.js"
|
|
87
|
-
]
|
|
88
|
-
},
|
|
89
|
-
"husky": {
|
|
90
|
-
"hooks": {
|
|
91
|
-
"pre-commit": "lint-staged",
|
|
92
|
-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
"lint-staged": {
|
|
96
|
-
"*.{js,vue}": [
|
|
97
|
-
"eslint"
|
|
98
|
-
]
|
|
99
|
-
},
|
|
100
|
-
"commitlint": {
|
|
101
|
-
"extends": [
|
|
102
|
-
"@commitlint/config-conventional"
|
|
103
|
-
]
|
|
104
|
-
},
|
|
105
40
|
"bugs": {
|
|
106
41
|
"url": "https://github.com/chandq/mock-service-cli/issues"
|
|
107
42
|
},
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"archiver": "^7.0.1",
|
|
45
|
+
"chokidar": "^3.6.0",
|
|
46
|
+
"http-proxy-middleware": "^2.0.10",
|
|
47
|
+
"multer": "^2.2.0",
|
|
48
|
+
"nodemon": "^3.1.14",
|
|
49
|
+
"tar-stream": "^3.2.0",
|
|
50
|
+
"ua-parser-js": "^2.0.10",
|
|
51
|
+
"yauzl": "^2.10.0"
|
|
112
52
|
}
|
|
113
53
|
}
|