meocli 0.1.8 → 0.1.9

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 CHANGED
@@ -116,7 +116,7 @@ $ npm install -g meocli
116
116
  $ me COMMAND
117
117
  running command...
118
118
  $ me (--version)
119
- meocli/0.1.8 win32-x64 node-v24.18.0
119
+ meocli/0.1.9 win32-x64 node-v24.18.0
120
120
  $ me --help [COMMAND]
121
121
  USAGE
122
122
  $ me COMMAND
@@ -179,7 +179,7 @@ EXAMPLES
179
179
  me env .env
180
180
  ```
181
181
 
182
- _See code: [src/commands/env/index.ts](https://github.com/meme2046/meocli/blob/v0.1.8/src/commands/env/index.ts)_
182
+ _See code: [src/commands/env/index.ts](https://github.com/meme2046/meocli/blob/v0.1.9/src/commands/env/index.ts)_
183
183
 
184
184
  ## `me env apifox [FILEPATH]`
185
185
 
@@ -202,7 +202,7 @@ EXAMPLES
202
202
  me env apifox .env
203
203
  ```
204
204
 
205
- _See code: [src/commands/env/apifox.ts](https://github.com/meme2046/meocli/blob/v0.1.8/src/commands/env/apifox.ts)_
205
+ _See code: [src/commands/env/apifox.ts](https://github.com/meme2046/meocli/blob/v0.1.9/src/commands/env/apifox.ts)_
206
206
 
207
207
  ## `me hello PERSON`
208
208
 
@@ -226,7 +226,7 @@ EXAMPLES
226
226
  hello friend --from oclif (./src/commands/hello/index.ts)
227
227
  ```
228
228
 
229
- _See code: [src/commands/hello/index.ts](https://github.com/meme2046/meocli/blob/v0.1.8/src/commands/hello/index.ts)_
229
+ _See code: [src/commands/hello/index.ts](https://github.com/meme2046/meocli/blob/v0.1.9/src/commands/hello/index.ts)_
230
230
 
231
231
  ## `me hello world`
232
232
 
@@ -244,7 +244,7 @@ EXAMPLES
244
244
  hello world! (./src/commands/hello/world.ts)
245
245
  ```
246
246
 
247
- _See code: [src/commands/hello/world.ts](https://github.com/meme2046/meocli/blob/v0.1.8/src/commands/hello/world.ts)_
247
+ _See code: [src/commands/hello/world.ts](https://github.com/meme2046/meocli/blob/v0.1.9/src/commands/hello/world.ts)_
248
248
 
249
249
  ## `me help [COMMAND]`
250
250
 
@@ -288,7 +288,7 @@ EXAMPLES
288
288
  $ me js clash ./test.js ./template.json
289
289
  ```
290
290
 
291
- _See code: [src/commands/js/clash.ts](https://github.com/meme2046/meocli/blob/v0.1.8/src/commands/js/clash.ts)_
291
+ _See code: [src/commands/js/clash.ts](https://github.com/meme2046/meocli/blob/v0.1.9/src/commands/js/clash.ts)_
292
292
 
293
293
  ## `me plugins`
294
294
 
@@ -582,7 +582,7 @@ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/
582
582
 
583
583
  ## `me prettier FILEPATH`
584
584
 
585
- Use Prettier to format file,集成:『@prettier/plugin-xml、prettier-plugin-toml、prettier-plugin-sh』、prettier-plugin-nginx
585
+ Use Prettier to format file,集成:『@prettier/plugin-xml、prettier-plugin-toml、prettier-plugin-shprettier-plugin-nginx、prettier-plugin-ini』
586
586
 
587
587
  ```
588
588
  USAGE
@@ -599,8 +599,8 @@ FLAGS
599
599
  -v, --verbose Show verbose output
600
600
 
601
601
  DESCRIPTION
602
- Use Prettier to format
603
- file,集成:『@prettier/plugin-xml、prettier-plugin-toml、prettier-plugin-sh』、prettier-plugin-nginx
602
+ Use Prettier to format file,集成:『@prettier/plugin-xml、prettier-plugin-toml、prettier-plugin-sh、prettier-plugin-ngi
603
+ nx、prettier-plugin-ini』
604
604
 
605
605
  EXAMPLES
606
606
  $ me prettier ./tests/test.svg
@@ -608,7 +608,7 @@ EXAMPLES
608
608
  $ me prettier ./src/file.ts --config ./.prettierrc.yaml
609
609
  ```
610
610
 
611
- _See code: [src/commands/prettier/index.ts](https://github.com/meme2046/meocli/blob/v0.1.8/src/commands/prettier/index.ts)_
611
+ _See code: [src/commands/prettier/index.ts](https://github.com/meme2046/meocli/blob/v0.1.9/src/commands/prettier/index.ts)_
612
612
 
613
613
  ## `me prettier reset`
614
614
 
@@ -628,7 +628,7 @@ EXAMPLES
628
628
  $ me prettier reset --verbose
629
629
  ```
630
630
 
631
- _See code: [src/commands/prettier/reset.ts](https://github.com/meme2046/meocli/blob/v0.1.8/src/commands/prettier/reset.ts)_
631
+ _See code: [src/commands/prettier/reset.ts](https://github.com/meme2046/meocli/blob/v0.1.9/src/commands/prettier/reset.ts)_
632
632
  <!-- commandsstop -->
633
633
  * [`me env [FILEPATH]`](#me-env-filepath)
634
634
  * [`me env apifox [FILEPATH]`](#me-env-apifox-filepath)
@@ -14,7 +14,7 @@ export default class Prettier extends Command {
14
14
  required: true,
15
15
  }),
16
16
  };
17
- static description = "Use Prettier to format file,集成:『@prettier/plugin-xml、prettier-plugin-toml、prettier-plugin-sh』、prettier-plugin-nginx";
17
+ static description = "Use Prettier to format file,集成:『@prettier/plugin-xml、prettier-plugin-toml、prettier-plugin-shprettier-plugin-nginx、prettier-plugin-ini』";
18
18
  static examples = [
19
19
  "<%= config.bin %> <%= command.id %> ./tests/test.svg",
20
20
  "<%= config.bin %> <%= command.id %> ./src/file.ts --config ./.prettierrc.yaml",
@@ -10,6 +10,7 @@ export declare const DEFAULT_CONFIG: {
10
10
  experimentalTernaries: boolean;
11
11
  htmlWhitespaceSensitivity: string;
12
12
  indentEntries: boolean;
13
+ iniSpaceAroundEquals: boolean;
13
14
  insertPragma: boolean;
14
15
  jsxSingleQuote: boolean;
15
16
  objectWrap: string;
@@ -38,15 +38,9 @@ export const DEFAULT_ARGS = [
38
38
  "false",
39
39
  "--embedded-language-formatting",
40
40
  "auto",
41
- // plugins
42
- // '--plugin',
43
- // '@prettier/plugin-xml',
44
- // '--plugin',
45
- // 'prettier-plugin-toml',
46
- // '--plugin',
47
- // 'prettier-plugin-sh',
48
- // '--plugin',
49
- // 'prettier-plugin-nginx',
41
+ // prettier-plugin-ini
42
+ "--ini-space-around-equals",
43
+ "true",
50
44
  // xml
51
45
  "--xml-whitespace-sensitivity",
52
46
  "strict",
@@ -76,6 +70,7 @@ export const DEFAULT_CONFIG = {
76
70
  experimentalTernaries: false,
77
71
  htmlWhitespaceSensitivity: "css",
78
72
  indentEntries: true, // toml
73
+ iniSpaceAroundEquals: true, // prettier-plugin-ini
79
74
  insertPragma: false,
80
75
  jsxSingleQuote: false,
81
76
  objectWrap: "preserve",
@@ -88,6 +83,7 @@ export const DEFAULT_CONFIG = {
88
83
  "prettier-plugin-toml",
89
84
  "prettier-plugin-sh",
90
85
  "prettier-plugin-nginx",
86
+ "prettier-plugin-ini",
91
87
  ],
92
88
  printWidth: 80,
93
89
  proseWrap: "preserve",
@@ -112,6 +108,7 @@ export const DEFAULT_PLUGINS = [
112
108
  { main: "lib/index.cjs", name: "prettier-plugin-toml" },
113
109
  { main: "lib/index.cjs", name: "prettier-plugin-sh" },
114
110
  { main: "dist/index.js", name: "prettier-plugin-nginx" },
111
+ { main: "src/plugin.js", name: "prettier-plugin-ini" },
115
112
  ];
116
113
  // 默认的忽略模式
117
114
  export const DEFAULT_IGNORE_PATTERNS = [
@@ -143,49 +143,6 @@
143
143
  "world.js"
144
144
  ]
145
145
  },
146
- "js:clash": {
147
- "aliases": [],
148
- "args": {
149
- "filePath": {
150
- "description": "目标js文件路径",
151
- "name": "filePath",
152
- "required": true
153
- },
154
- "templatePath": {
155
- "description": "template.json配置文件路径",
156
- "name": "templatePath",
157
- "required": true
158
- }
159
- },
160
- "description": "修改Clash脚本",
161
- "examples": [
162
- "<%= config.bin %> <%= command.id %> ./test.js ./template.json"
163
- ],
164
- "flags": {
165
- "verbose": {
166
- "char": "v",
167
- "description": "Show verbose output",
168
- "name": "verbose",
169
- "allowNo": false,
170
- "type": "boolean"
171
- }
172
- },
173
- "hasDynamicHelp": false,
174
- "hiddenAliases": [],
175
- "id": "js:clash",
176
- "pluginAlias": "meocli",
177
- "pluginName": "meocli",
178
- "pluginType": "core",
179
- "strict": true,
180
- "enableJsonFlag": false,
181
- "isESM": true,
182
- "relativePath": [
183
- "dist",
184
- "commands",
185
- "js",
186
- "clash.js"
187
- ]
188
- },
189
146
  "prettier": {
190
147
  "aliases": [],
191
148
  "args": {
@@ -195,7 +152,7 @@
195
152
  "required": true
196
153
  }
197
154
  },
198
- "description": "Use Prettier to format file,集成:『@prettier/plugin-xml、prettier-plugin-toml、prettier-plugin-sh』、prettier-plugin-nginx",
155
+ "description": "Use Prettier to format file,集成:『@prettier/plugin-xml、prettier-plugin-toml、prettier-plugin-shprettier-plugin-nginx、prettier-plugin-ini』",
199
156
  "examples": [
200
157
  "<%= config.bin %> <%= command.id %> ./tests/test.svg",
201
158
  "<%= config.bin %> <%= command.id %> ./src/file.ts --config ./.prettierrc.yaml"
@@ -276,7 +233,50 @@
276
233
  "prettier",
277
234
  "reset.js"
278
235
  ]
236
+ },
237
+ "js:clash": {
238
+ "aliases": [],
239
+ "args": {
240
+ "filePath": {
241
+ "description": "目标js文件路径",
242
+ "name": "filePath",
243
+ "required": true
244
+ },
245
+ "templatePath": {
246
+ "description": "template.json配置文件路径",
247
+ "name": "templatePath",
248
+ "required": true
249
+ }
250
+ },
251
+ "description": "修改Clash脚本",
252
+ "examples": [
253
+ "<%= config.bin %> <%= command.id %> ./test.js ./template.json"
254
+ ],
255
+ "flags": {
256
+ "verbose": {
257
+ "char": "v",
258
+ "description": "Show verbose output",
259
+ "name": "verbose",
260
+ "allowNo": false,
261
+ "type": "boolean"
262
+ }
263
+ },
264
+ "hasDynamicHelp": false,
265
+ "hiddenAliases": [],
266
+ "id": "js:clash",
267
+ "pluginAlias": "meocli",
268
+ "pluginName": "meocli",
269
+ "pluginType": "core",
270
+ "strict": true,
271
+ "enableJsonFlag": false,
272
+ "isESM": true,
273
+ "relativePath": [
274
+ "dist",
275
+ "commands",
276
+ "js",
277
+ "clash.js"
278
+ ]
279
279
  }
280
280
  },
281
- "version": "0.1.8"
281
+ "version": "0.1.9"
282
282
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "meocli",
3
3
  "description": "Node CLI generated with oclif, Integrate Prettier",
4
- "version": "0.1.8",
4
+ "version": "0.1.9",
5
5
  "author": "meme2046",
6
6
  "bin": {
7
7
  "me": "./bin/run.js"
@@ -24,6 +24,7 @@
24
24
  "js-yaml": "^4.3.0",
25
25
  "lodash": "^4.18.1",
26
26
  "prettier": "^3.9.4",
27
+ "prettier-plugin-ini": "^1.3.0",
27
28
  "prettier-plugin-nginx": "^1.0.3",
28
29
  "prettier-plugin-sh": "^0.18.1",
29
30
  "prettier-plugin-toml": "^2.0.6",