@done-coding/cli 0.9.0 → 0.10.0-alpha.0

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
@@ -1,3 +1,25 @@
1
1
  #!/usr/bin/env node
2
- import { createCli as e } from "./main.mjs";
3
- e();
2
+ import a from "yargs";
3
+ import { hideBin as c } from "yargs/helpers";
4
+ import n from "chalk";
5
+ import { command as e } from "@done-coding/cli-init";
6
+ import { command as r } from "@done-coding/cli-inject";
7
+ import { command as i } from "create-done-coding";
8
+ import { command as d } from "@done-coding/cli-publish";
9
+ import { command as s } from "@done-coding/cli-template";
10
+ import { command as t } from "@done-coding/cli-component";
11
+ const l = {
12
+ version: "0.10.0-alpha.0",
13
+ name: "@done-coding/cli",
14
+ description: "done-coding命令行工具",
15
+ cliConfig: {
16
+ namespaceDir: ".done-coding",
17
+ moduleName: "dc"
18
+ }
19
+ }, p = (o, m) => {
20
+ console.log(o ? n.red(o) : n.red(m.message)), process.exit(1);
21
+ }, f = () => {
22
+ const o = c(process.argv);
23
+ return a(o).strict().usage("Usage: $0 <command> [options]").demandCommand(1).help("help").version(l.version).alias("h", "help").alias("v", "version").command(i).command(e).command(r).command(d).command(s).command(t).fail(p).argv;
24
+ };
25
+ f();
package/es/index.mjs CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@done-coding/cli",
3
- "version": "0.9.0",
3
+ "version": "0.10.0-alpha.0",
4
4
  "description": "done-coding命令行工具",
5
5
  "private": false,
6
6
  "module": "es/cli.mjs",
@@ -51,15 +51,15 @@
51
51
  "node": ">=18.0.0"
52
52
  },
53
53
  "dependencies": {
54
- "@done-coding/cli-component": "^0.1.7",
55
- "@done-coding/cli-init": "^0.0.7",
56
- "@done-coding/cli-inject": "^0.4.2",
57
- "@done-coding/cli-publish": "^0.4.0",
58
- "@done-coding/cli-template": "^0.4.1",
54
+ "@done-coding/cli-component": "^0.2.0-alpha.0",
55
+ "@done-coding/cli-init": "^0.0.8",
56
+ "@done-coding/cli-inject": "^0.4.3",
57
+ "@done-coding/cli-publish": "^0.4.1",
58
+ "@done-coding/cli-template": "^0.5.0-alpha.0",
59
59
  "chalk": "^5.3.0",
60
- "create-done-coding": "^0.5.1",
60
+ "create-done-coding": "^0.6.0-alpha.0",
61
61
  "prompts": "^2.4.2",
62
62
  "yargs": "^17.7.2"
63
63
  },
64
- "gitHead": "eb3732e50f528b2c838af6303d774d6d04cf5f37"
64
+ "gitHead": "c386db9e11a6e5cf017839d657cd4c0bf1fb6a90"
65
65
  }
package/types/cli.d.ts CHANGED
File without changes
package/types/index.d.ts CHANGED
File without changes
@@ -1,5 +1,5 @@
1
1
  declare const _default: {
2
- "version": "0.9.0",
2
+ "version": "0.10.0-alpha.0",
3
3
  "name": "@done-coding/cli",
4
4
  "description": "done-coding命令行工具",
5
5
  "cliConfig": {
package/types/main.d.ts CHANGED
File without changes
@@ -1,13 +0,0 @@
1
- #!/usr/bin/env node
2
- const n = {
3
- version: "0.9.0",
4
- name: "@done-coding/cli",
5
- description: "done-coding命令行工具",
6
- cliConfig: {
7
- namespaceDir: ".done-coding",
8
- moduleName: "dc"
9
- }
10
- };
11
- export {
12
- n as default
13
- };
package/es/main.mjs DELETED
@@ -1,20 +0,0 @@
1
- #!/usr/bin/env node
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";
6
- import { command as e } from "@done-coding/cli-inject";
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;
17
- };
18
- export {
19
- k as createCli
20
- };