Commit fa68b5c
refactor: remove bin directory and CLI script, update build process t… (#46)
* refactor: remove bin directory and CLI script, update build process to use dist/index.js directly
- Deleted the `bin/cli.js` file and removed references to the `bin` directory.
- Updated `package.json` to point the `bin` entry to `dist/index.js`.
- Modified build script to reflect changes in file structure and ensure executable permissions are set correctly.
- Adjusted command examples in the build output to use the new entry point.
* feat: add --no-rule option to command line arguments and update related functionality
- Introduced a new command line argument `--no-rule` to allow users to disable rules.
- Updated the `parserArgs` function to parse the new `noRule` argument.
- Modified debug output to include the status of the `noRule` option.
- Adjusted the `createHttpUtil` function to return an empty rules array when `noRule` is enabled.
* docs: update README and README.zh-CN to include new command line options and environment variable configurations
- Added `--no-rule` option to command line usage in both English and Chinese documentation.
- Included instructions for using environment variables as an alternative to command line arguments.
- Enhanced sections on command line options and local development for clarity and completeness.
---------
Co-authored-by: sean0824 <[email protected]>1 parent 82a968a commit fa68b5c
File tree
13 files changed
+401
-373
lines changed- bin
- src
- tools
- utils
13 files changed
+401
-373
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| 20 | + | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
| 28 | + | |
24 | 29 | | |
25 | | - | |
| 30 | + | |
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
32 | 38 | | |
| 39 | + | |
33 | 40 | | |
34 | 41 | | |
| 42 | + | |
35 | 43 | | |
36 | 44 | | |
37 | 45 | | |
38 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
39 | 55 | | |
40 | 56 | | |
41 | 57 | | |
| |||
45 | 61 | | |
46 | 62 | | |
47 | 63 | | |
| 64 | + | |
48 | 65 | | |
49 | 66 | | |
50 | 67 | | |
| |||
66 | 83 | | |
67 | 84 | | |
68 | 85 | | |
| 86 | + | |
69 | 87 | | |
70 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
71 | 93 | | |
72 | 94 | | |
73 | 95 | | |
| |||
85 | 107 | | |
86 | 108 | | |
87 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
88 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
89 | 131 | | |
90 | 132 | | |
91 | 133 | | |
| |||
103 | 145 | | |
104 | 146 | | |
105 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
106 | 165 | | |
| 166 | + | |
107 | 167 | | |
| 168 | + | |
108 | 169 | | |
109 | 170 | | |
110 | 171 | | |
111 | 172 | | |
112 | 173 | | |
113 | 174 | | |
114 | 175 | | |
| 176 | + | |
115 | 177 | | |
116 | 178 | | |
117 | 179 | | |
| |||
121 | 183 | | |
122 | 184 | | |
123 | 185 | | |
| 186 | + | |
124 | 187 | | |
125 | 188 | | |
126 | 189 | | |
127 | 190 | | |
128 | 191 | | |
129 | 192 | | |
| 193 | + | |
130 | 194 | | |
131 | 195 | | |
132 | 196 | | |
| |||
143 | 207 | | |
144 | 208 | | |
145 | 209 | | |
| 210 | + | |
146 | 211 | | |
147 | 212 | | |
148 | 213 | | |
149 | 214 | | |
150 | 215 | | |
151 | 216 | | |
152 | 217 | | |
| 218 | + | |
153 | 219 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
46 | 55 | | |
47 | 56 | | |
48 | 57 | | |
| |||
69 | 78 | | |
70 | 79 | | |
71 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
72 | 85 | | |
73 | 86 | | |
74 | 87 | | |
| |||
86 | 99 | | |
87 | 100 | | |
88 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
89 | 119 | | |
90 | 120 | | |
| 121 | + | |
| 122 | + | |
91 | 123 | | |
92 | 124 | | |
93 | 125 | | |
| |||
105 | 137 | | |
106 | 138 | | |
107 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
108 | 157 | | |
109 | 158 | | |
110 | 159 | | |
| |||
This file was deleted.
0 commit comments