@yamada-ui/cli 0.1.1 → 0.1.3

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 ADDED
@@ -0,0 +1,42 @@
1
+ # @yamada-ui/cli
2
+
3
+ Generate TypeScript types to provide autocomplete for your custom theme.
4
+
5
+ ## Installation
6
+
7
+ ```sh
8
+ $ pnpm add @yamada-ui/cli
9
+ ```
10
+
11
+ or
12
+
13
+ ```sh
14
+ $ yarn add @yamada-ui/cli
15
+ ```
16
+
17
+ or
18
+
19
+ ```sh
20
+ $ npm install @yamada-ui/cli
21
+ ```
22
+
23
+ ## Usage
24
+
25
+ ```sh
26
+ pnpm yamada-cli token <path/to/your/theme.(js|ts)>
27
+ ```
28
+
29
+ ### Options
30
+
31
+ - `--out <path>` output file to node_modules/@yamada-ui/core/dist/generated-theme.types.d.ts
32
+ - `--watch [path]` Watch directory for changes and rebuild
33
+ - `--help` display help for command
34
+
35
+ ## Contribution
36
+
37
+ Wouldn't you like to contribute? That's amazing! We have prepared a [contribution guide](https://github.com/hirotomoyamada/yamada-ui/blob/main/CONTRIBUTING.md) to assist you.
38
+
39
+ ## Licence
40
+
41
+ This package is licensed under the terms of the
42
+ [MIT license](https://github.com/hirotomoyamada/yamada-ui/blob/main/LICENSE).
package/bin/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  const { run } = require('../dist/index.js')
2
3
 
3
4
  run().catch((e) => {
@@ -20,9 +20,9 @@ var __copyProps = (to, from, except, desc) => {
20
20
  };
21
21
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
22
22
 
23
- // ../../node_modules/.pnpm/tsup@6.7.0_@swc+core@1.3.60_postcss@8.4.23_ts-node@10.9.1_typescript@4.9.4/node_modules/tsup/assets/cjs_shims.js
23
+ // ../../node_modules/.pnpm/tsup@6.7.0_@swc+core@1.3.62_postcss@8.4.23_ts-node@10.9.1_typescript@4.9.4/node_modules/tsup/assets/cjs_shims.js
24
24
  var init_cjs_shims = __esm({
25
- "../../node_modules/.pnpm/tsup@6.7.0_@swc+core@1.3.60_postcss@8.4.23_ts-node@10.9.1_typescript@4.9.4/node_modules/tsup/assets/cjs_shims.js"() {
25
+ "../../node_modules/.pnpm/tsup@6.7.0_@swc+core@1.3.62_postcss@8.4.23_ts-node@10.9.1_typescript@4.9.4/node_modules/tsup/assets/cjs_shims.js"() {
26
26
  }
27
27
  });
28
28
 
@@ -33,9 +33,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  ));
34
34
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
35
 
36
- // ../../node_modules/.pnpm/tsup@6.7.0_@swc+core@1.3.60_postcss@8.4.23_ts-node@10.9.1_typescript@4.9.4/node_modules/tsup/assets/cjs_shims.js
36
+ // ../../node_modules/.pnpm/tsup@6.7.0_@swc+core@1.3.62_postcss@8.4.23_ts-node@10.9.1_typescript@4.9.4/node_modules/tsup/assets/cjs_shims.js
37
37
  var init_cjs_shims = __esm({
38
- "../../node_modules/.pnpm/tsup@6.7.0_@swc+core@1.3.60_postcss@8.4.23_ts-node@10.9.1_typescript@4.9.4/node_modules/tsup/assets/cjs_shims.js"() {
38
+ "../../node_modules/.pnpm/tsup@6.7.0_@swc+core@1.3.62_postcss@8.4.23_ts-node@10.9.1_typescript@4.9.4/node_modules/tsup/assets/cjs_shims.js"() {
39
39
  }
40
40
  });
41
41
 
package/dist/index.js CHANGED
@@ -33,10 +33,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  ));
34
34
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
35
 
36
- // ../../node_modules/.pnpm/tsup@6.7.0_@swc+core@1.3.60_postcss@8.4.23_ts-node@10.9.1_typescript@4.9.4/node_modules/tsup/assets/cjs_shims.js
36
+ // ../../node_modules/.pnpm/tsup@6.7.0_@swc+core@1.3.62_postcss@8.4.23_ts-node@10.9.1_typescript@4.9.4/node_modules/tsup/assets/cjs_shims.js
37
37
  var getImportMetaUrl, importMetaUrl;
38
38
  var init_cjs_shims = __esm({
39
- "../../node_modules/.pnpm/tsup@6.7.0_@swc+core@1.3.60_postcss@8.4.23_ts-node@10.9.1_typescript@4.9.4/node_modules/tsup/assets/cjs_shims.js"() {
39
+ "../../node_modules/.pnpm/tsup@6.7.0_@swc+core@1.3.62_postcss@8.4.23_ts-node@10.9.1_typescript@4.9.4/node_modules/tsup/assets/cjs_shims.js"() {
40
40
  getImportMetaUrl = () => typeof document === "undefined" ? new URL("file:" + __filename).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
41
41
  importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
42
42
  }
@@ -17103,7 +17103,7 @@ var import_cli_welcome = __toESM(require("cli-welcome"));
17103
17103
  // package.json
17104
17104
  var package_default = {
17105
17105
  name: "@yamada-ui/cli",
17106
- version: "0.1.0",
17106
+ version: "0.1.3",
17107
17107
  description: "Generate theme tokens for autocomplete",
17108
17108
  keywords: [
17109
17109
  "theme",
@@ -23964,9 +23964,10 @@ var run = async () => {
23964
23964
  }
23965
23965
  });
23966
23966
  import_commander.program.on("--help", () => {
23967
- console.info(`Example call:
23968
-
23969
- $ yamada-cli tokens theme.ts`);
23967
+ console.info(`
23968
+ Example call:
23969
+ $ yamada-cli tokens theme.ts
23970
+ `);
23970
23971
  });
23971
23972
  import_commander.program.parse();
23972
23973
  };
package/dist/utils/cli.js CHANGED
@@ -33,10 +33,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  ));
34
34
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
35
 
36
- // ../../node_modules/.pnpm/tsup@6.7.0_@swc+core@1.3.60_postcss@8.4.23_ts-node@10.9.1_typescript@4.9.4/node_modules/tsup/assets/cjs_shims.js
36
+ // ../../node_modules/.pnpm/tsup@6.7.0_@swc+core@1.3.62_postcss@8.4.23_ts-node@10.9.1_typescript@4.9.4/node_modules/tsup/assets/cjs_shims.js
37
37
  var getImportMetaUrl, importMetaUrl;
38
38
  var init_cjs_shims = __esm({
39
- "../../node_modules/.pnpm/tsup@6.7.0_@swc+core@1.3.60_postcss@8.4.23_ts-node@10.9.1_typescript@4.9.4/node_modules/tsup/assets/cjs_shims.js"() {
39
+ "../../node_modules/.pnpm/tsup@6.7.0_@swc+core@1.3.62_postcss@8.4.23_ts-node@10.9.1_typescript@4.9.4/node_modules/tsup/assets/cjs_shims.js"() {
40
40
  getImportMetaUrl = () => typeof document === "undefined" ? new URL("file:" + __filename).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
41
41
  importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
42
42
  }
@@ -10699,7 +10699,7 @@ var import_cli_welcome = __toESM(require("cli-welcome"));
10699
10699
  // package.json
10700
10700
  var package_default = {
10701
10701
  name: "@yamada-ui/cli",
10702
- version: "0.1.0",
10702
+ version: "0.1.3",
10703
10703
  description: "Generate theme tokens for autocomplete",
10704
10704
  keywords: [
10705
10705
  "theme",
@@ -33,10 +33,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  ));
34
34
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
35
 
36
- // ../../node_modules/.pnpm/tsup@6.7.0_@swc+core@1.3.60_postcss@8.4.23_ts-node@10.9.1_typescript@4.9.4/node_modules/tsup/assets/cjs_shims.js
36
+ // ../../node_modules/.pnpm/tsup@6.7.0_@swc+core@1.3.62_postcss@8.4.23_ts-node@10.9.1_typescript@4.9.4/node_modules/tsup/assets/cjs_shims.js
37
37
  var getImportMetaUrl, importMetaUrl;
38
38
  var init_cjs_shims = __esm({
39
- "../../node_modules/.pnpm/tsup@6.7.0_@swc+core@1.3.60_postcss@8.4.23_ts-node@10.9.1_typescript@4.9.4/node_modules/tsup/assets/cjs_shims.js"() {
39
+ "../../node_modules/.pnpm/tsup@6.7.0_@swc+core@1.3.62_postcss@8.4.23_ts-node@10.9.1_typescript@4.9.4/node_modules/tsup/assets/cjs_shims.js"() {
40
40
  getImportMetaUrl = () => typeof document === "undefined" ? new URL("file:" + __filename).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
41
41
  importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
42
42
  }
@@ -10726,7 +10726,7 @@ var import_cli_welcome = __toESM(require("cli-welcome"));
10726
10726
  // package.json
10727
10727
  var package_default = {
10728
10728
  name: "@yamada-ui/cli",
10729
- version: "0.1.0",
10729
+ version: "0.1.3",
10730
10730
  description: "Generate theme tokens for autocomplete",
10731
10731
  keywords: [
10732
10732
  "theme",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Generate theme tokens for autocomplete",
5
5
  "keywords": [
6
6
  "theme",