@done-coding/cli 0.2.0 → 0.3.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
File without changes
package/es/index.mjs CHANGED
@@ -1,12 +1,15 @@
1
1
  #!/usr/bin/env node
2
- import { command as r, handler as e } from "@done-coding/cli-inject";
3
- import { command as o, handler as d } from "create-done-coding/assets";
4
- import { command as l, handler as b } from "@done-coding/cli-publish";
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";
5
6
  export {
6
7
  o as browserCommand,
7
8
  d as browserHandler,
8
- r as injectCommand,
9
- e as injectHandler,
9
+ m as injectCommand,
10
+ n as injectHandler,
10
11
  l as publishCommand,
11
- b as publishHandler
12
+ t as publishHandler,
13
+ c as templateCommand,
14
+ h as templateHandler
12
15
  };
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  const n = {
3
3
  name: "@done-coding/cli",
4
- version: "0.2.0",
4
+ version: "0.3.0",
5
5
  description: "done-coding命令行工具"
6
6
  };
7
7
  export {
package/es/main.mjs CHANGED
@@ -1,17 +1,18 @@
1
1
  #!/usr/bin/env node
2
2
  import a from "yargs";
3
- import { hideBin as e } from "yargs/helpers";
3
+ import { hideBin as n } from "yargs/helpers";
4
4
  import r from "chalk";
5
- import { command as n } from "@done-coding/cli-inject";
6
- import { command as i } from "create-done-coding/assets";
7
- import { command as s } from "@done-coding/cli-publish";
8
- import c from "./injectInfo.json.mjs";
5
+ 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";
9
10
  const t = (o, m) => {
10
11
  console.log(o ? r.red(o) : r.red(m.message)), process.exit(1);
11
- }, u = () => {
12
- const o = e(process.argv);
13
- return a(o).strict().usage("Usage: $0 <command> [options]").demandCommand(1).help("help").version(c.version).alias("h", "help").alias("v", "version").command(i).command(n).command(s).fail(t).argv;
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;
14
15
  };
15
16
  export {
16
- u as createCli
17
+ x as createCli
17
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@done-coding/cli",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "done-coding命令行工具",
5
5
  "private": false,
6
6
  "module": "es/cli.mjs",
@@ -50,12 +50,13 @@
50
50
  "node": ">=16.0.0"
51
51
  },
52
52
  "dependencies": {
53
- "@done-coding/cli-inject": "^0.1.1",
54
- "@done-coding/cli-publish": "^0.2.0",
53
+ "@done-coding/cli-inject": "^0.2.0",
54
+ "@done-coding/cli-publish": "^0.3.0",
55
+ "@done-coding/cli-template": "^0.1.0",
55
56
  "chalk": "^5.3.0",
56
- "create-done-coding": "^0.4.2",
57
+ "create-done-coding": "^0.4.3",
57
58
  "prompts": "^2.4.2",
58
59
  "yargs": "^17.7.2"
59
60
  },
60
- "gitHead": "454bb76eb20c9b732331c273435e0bf56c8c3f25"
61
+ "gitHead": "caa230835cb90705a00646511ae437a13439b267"
61
62
  }
package/types/cli.d.ts CHANGED
File without changes
package/types/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export { command as injectCommand, handler as injectHandler, } from "@done-coding/cli-inject";
2
- export { command as browserCommand, handler as browserHandler, } from '../node_modules/create-done-coding/types/index.d.ts';
2
+ export { command as browserCommand, handler as browserHandler, } from "create-done-coding";
3
3
  export { command as publishCommand, handler as publishHandler, } from "@done-coding/cli-publish";
4
+ export { command as templateCommand, handler as templateHandler, } from "@done-coding/cli-template";
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  "name": "@done-coding/cli",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "done-coding命令行工具"
5
5
  };
6
6
 
package/types/main.d.ts CHANGED
File without changes