mine-auto-cli 2.0.0 → 2.0.2

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.
Files changed (3) hide show
  1. package/README.md +20 -3
  2. package/index.js +4 -5
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -9,9 +9,27 @@
9
9
  <a href="https://github.com/biaov/mine-auto-cli/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-green?logo=Unlicense" /></a>
10
10
  </h2>
11
11
 
12
+ ## 全局安装
13
+
14
+ ```sh
15
+ npm i -g mine-auto-cli
16
+ ```
17
+
12
18
  ## 使用
13
19
 
14
- - 简化 Git 提交命令
20
+ ### 查看版本
21
+
22
+ ```sh
23
+ auto -v
24
+ ```
25
+
26
+ ### 查看所有命令
27
+
28
+ ```sh
29
+ auto -h
30
+ ```
31
+
32
+ ### 简化 Git 提交命令
15
33
 
16
34
  ```sh
17
35
  auto git [描述]
@@ -21,7 +39,7 @@ git commit -m [描述]
21
39
  git push
22
40
  ```
23
41
 
24
- - 简化打包提交命令
42
+ ### 简化打包提交命令
25
43
 
26
44
  ```sh
27
45
  auto build[:环境] [描述]
@@ -45,7 +63,6 @@ git push
45
63
  - `update-notifier`: 检查更新
46
64
  - `@types/node`: `node` 类型
47
65
  - `@types/update-notifier`: `update-notifier` 类型
48
- - `chokidar`: 监听文件更改
49
66
  - `prettier`: 格式化工具
50
67
  - `typescript`: 编程语言
51
68
  - `vite`: 项目构建工具
package/index.js CHANGED
@@ -4,7 +4,7 @@ import { program as i } from "commander";
4
4
  import y from "ora";
5
5
  import { execSync as v } from "child_process";
6
6
  import m from "log-symbols";
7
- const l = "mine-auto-cli", d = "2.0.0", $ = "./index.js", w = "./index.js", k = "module", j = {
7
+ const l = "mine-auto-cli", d = "2.0.2", $ = "./index.js", w = "./index.js", j = "module", k = {
8
8
  auto: "bin/mine-auto-cli.js"
9
9
  }, x = {
10
10
  name: "biaov",
@@ -12,7 +12,7 @@ const l = "mine-auto-cli", d = "2.0.0", $ = "./index.js", w = "./index.js", k =
12
12
  url: "https://biaov.cn"
13
13
  }, C = "一个将多个命令简化成一个命令的项目 😆", S = {
14
14
  start: "npm run dev",
15
- dev: "node scripts/dev",
15
+ dev: "vite build --watch && node scripts/build",
16
16
  build: "vite build && node scripts/build",
17
17
  prettier: "prettier --write '**/*.{js,ts,md,json}'",
18
18
  ncu: "ncu --configFileName .ncurc.json && npm i",
@@ -45,7 +45,6 @@ const l = "mine-auto-cli", d = "2.0.0", $ = "./index.js", w = "./index.js", k =
45
45
  }, F = {
46
46
  "@types/node": "^20.8.4",
47
47
  "@types/update-notifier": "^6.0.5",
48
- chokidar: "^3.5.3",
49
48
  prettier: "^3.0.3",
50
49
  typescript: "^5.2.2",
51
50
  vite: "^4.4.11"
@@ -55,8 +54,8 @@ const l = "mine-auto-cli", d = "2.0.0", $ = "./index.js", w = "./index.js", k =
55
54
  version: d,
56
55
  exports: $,
57
56
  main: w,
58
- type: k,
59
- bin: j,
57
+ type: j,
58
+ bin: k,
60
59
  author: x,
61
60
  description: C,
62
61
  scripts: S,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mine-auto-cli",
3
3
  "private": false,
4
- "version": "2.0.0",
4
+ "version": "2.0.2",
5
5
  "exports": "./index.js",
6
6
  "main": "./index.js",
7
7
  "type": "module",