@done-coding/cli 0.3.1 → 0.4.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.
package/README.md CHANGED
File without changes
package/es/cli.mjs CHANGED
File without changes
package/es/index.mjs CHANGED
@@ -1,15 +1,21 @@
1
1
  #!/usr/bin/env node
2
- import { command as m, handler as n } from "@done-coding/cli-inject";
3
- import { command as o, handler as d } from "create-done-coding";
4
- import { command as l, handler as t } from "@done-coding/cli-publish";
5
- import { command as c, handler as h } from "@done-coding/cli-template";
2
+ import { command as m, handler as o } from "@done-coding/cli-init";
3
+ import { command as r, handler as d } from "@done-coding/cli-inject";
4
+ import { command as l, handler as t } from "create-done-coding";
5
+ import { command as c, handler as i } from "@done-coding/cli-publish";
6
+ import { command as f, handler as x } from "@done-coding/cli-template";
7
+ import { command as H, handler as b } from "@done-coding/cli-component";
6
8
  export {
7
- o as browserCommand,
8
- d as browserHandler,
9
- m as injectCommand,
10
- n as injectHandler,
11
- l as publishCommand,
12
- t as publishHandler,
13
- c as templateCommand,
14
- h as templateHandler
9
+ l as browserCommand,
10
+ t as browserHandler,
11
+ H as componentCommand,
12
+ b as componentHandler,
13
+ m as initCommand,
14
+ o as initHandler,
15
+ r as injectCommand,
16
+ d as injectHandler,
17
+ c as publishCommand,
18
+ i as publishHandler,
19
+ f as templateCommand,
20
+ x as templateHandler
15
21
  };
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  const n = {
3
3
  name: "@done-coding/cli",
4
- version: "0.3.1",
4
+ version: "0.4.2",
5
5
  description: "done-coding命令行工具"
6
6
  };
7
7
  export {
package/es/main.mjs CHANGED
@@ -1,18 +1,20 @@
1
1
  #!/usr/bin/env node
2
- import a from "yargs";
3
- import { hideBin as n } from "yargs/helpers";
4
- import r from "chalk";
2
+ import n from "yargs";
3
+ import { hideBin as r } from "yargs/helpers";
4
+ import a from "chalk";
5
+ import { command as c } from "@done-coding/cli-init";
5
6
  import { command as e } from "@done-coding/cli-inject";
6
- import { command as c } from "create-done-coding";
7
- import { command as i } from "@done-coding/cli-publish";
8
- import { command as s } from "@done-coding/cli-template";
9
- import d from "./injectInfo.json.mjs";
10
- const t = (o, m) => {
11
- console.log(o ? r.red(o) : r.red(m.message)), process.exit(1);
12
- }, x = () => {
13
- const o = n(process.argv);
14
- return a(o).strict().usage("Usage: $0 <command> [options]").demandCommand(1).help("help").version(d.version).alias("h", "help").alias("v", "version").command(c).command(e).command(i).command(s).fail(t).argv;
7
+ import { command as i } from "create-done-coding";
8
+ import { command as s } from "@done-coding/cli-publish";
9
+ import { command as d } from "@done-coding/cli-template";
10
+ import { command as t } from "@done-coding/cli-component";
11
+ import l from "./injectInfo.json.mjs";
12
+ const p = (m, o) => {
13
+ console.log(m ? a.red(m) : a.red(o.message)), process.exit(1);
14
+ }, k = () => {
15
+ const m = r(process.argv);
16
+ return n(m).strict().usage("Usage: $0 <command> [options]").demandCommand(1).help("help").version(l.version).alias("h", "help").alias("v", "version").command(i).command(c).command(e).command(s).command(d).command(t).fail(p).argv;
15
17
  };
16
18
  export {
17
- x as createCli
19
+ k as createCli
18
20
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@done-coding/cli",
3
- "version": "0.3.1",
3
+ "version": "0.4.2",
4
4
  "description": "done-coding命令行工具",
5
5
  "private": false,
6
6
  "module": "es/cli.mjs",
@@ -32,7 +32,8 @@
32
32
  "directory": "packages/cli"
33
33
  },
34
34
  "publishConfig": {
35
- "access": "public"
35
+ "access": "public",
36
+ "registry": "https://registry.npmjs.org/"
36
37
  },
37
38
  "author": "JustSoSu",
38
39
  "license": "MIT",
@@ -50,13 +51,15 @@
50
51
  "node": ">=16.0.0"
51
52
  },
52
53
  "dependencies": {
53
- "@done-coding/cli-inject": "^0.2.0",
54
- "@done-coding/cli-publish": "^0.3.0",
55
- "@done-coding/cli-template": "^0.1.1",
54
+ "@done-coding/cli-component": "^0.1.2",
55
+ "@done-coding/cli-init": "^0.0.2",
56
+ "@done-coding/cli-inject": "^0.2.2",
57
+ "@done-coding/cli-publish": "^0.3.2",
58
+ "@done-coding/cli-template": "^0.2.1",
56
59
  "chalk": "^5.3.0",
57
- "create-done-coding": "^0.4.3",
60
+ "create-done-coding": "^0.4.5",
58
61
  "prompts": "^2.4.2",
59
62
  "yargs": "^17.7.2"
60
63
  },
61
- "gitHead": "7e240c03ff26b536711d9c4820647628876c145f"
64
+ "gitHead": "4fd613ca2bbdf655edd94895996129dcbd8ebb41"
62
65
  }
package/types/cli.d.ts CHANGED
File without changes
package/types/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
+ export { command as initCommand, handler as initHandler, } from "@done-coding/cli-init";
1
2
  export { command as injectCommand, handler as injectHandler, } from "@done-coding/cli-inject";
2
3
  export { command as browserCommand, handler as browserHandler, } from "create-done-coding";
3
4
  export { command as publishCommand, handler as publishHandler, } from "@done-coding/cli-publish";
4
5
  export { command as templateCommand, handler as templateHandler, } from "@done-coding/cli-template";
6
+ export { command as componentCommand, handler as componentHandler, } from "@done-coding/cli-component";
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  "name": "@done-coding/cli",
3
- "version": "0.3.1",
3
+ "version": "0.4.2",
4
4
  "description": "done-coding命令行工具"
5
5
  };
6
6
 
package/types/main.d.ts CHANGED
File without changes