-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgleam
80 lines (80 loc) · 2.7 KB
/
gleam
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
need a review of this list
---- gleam ---- ✓ ✔ ✗ ✘ 🌠 ✵ ☆ ✦ ✧ ✭
- easy use
- should with reservation
- ✔ how to tell a response is from a fake service or the real server
- less overhead
+ e.g. no need to write shell?
+ ✘ plug into vue-cli-service? react-cli?
- add a script in package.json?
- edit README
+ how to use it is not complete.
- test
- show error message in developing
- implicit query match all
- try best to remove .mockingLocation file when stoped
- compliant with windows
- comment util
+ delete any '#' start line and text after '#'
- config-change-effect-immediately area as large as possible
+ e.g. proxy404
- proxy404 file should be parsed line-by-line
- multiple spaces should be regarded as a single space
- allow to response non-json
- response content-type
- want see mock-api error logs?
+ log file fake-services/.log ? name by timestamp
- standalone usage
+ maybe a custom 'fake-services' folder name should be enabled
- some log may be useful
+ such as I want to know why mock is not working while I have
write config files: log the off
- prepublishOnly
- lint some file in root
- validate response format?
- check homepage and git repo url on npm page
- language
- allow specify a port to test from
+ command and config file
- when required as a module, return mockingLocation
- config
+ require and run arguments
+ command line arguments
+ immutable config in fake-services folder
- every change need doc
- need change_log doc
- should has debug log, make log level configurable
- map file format
- proxy404 advance config?
- 🌠 websocket
+ interval auto response (multiple, cancelable)
+ match rule to a message response
+ close
+ every thing in ws-response.js?
+ return a promise
+ what arguments should be passed to js script
+ proxy, off the fake-services
- 🌠 mock anything of http
+ ✔ status code
+ ✔ delay
+ ✘ http2
+ ✘ certificate
- allow view help information by tap `mock help-map`
- docs
- examples
- think: how to test with different node versions
- file premission check
- better notice the warning/error map line config
- can we limit send rate when response a big file? this may help
simulating big file download progress
- off only current
- review http method, CONNECT for example
- todo: able config to not console.log, this is useful when `npx mock | sleep 0.5 & node start.js`
- on (off)
- timeout shoule can be led to proxy404
- config file format should not use json, cause it's too annoying to comment out
maybe the dedicated config format is fine
- edit github page: about, tags
- check header overriding of express and custom
- binary data of http
- optimize ./response file recognition