@qumra/cli 2.4.14 → 2.4.15

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 (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +81 -0
  3. package/dist/cli.js +49 -55
  4. package/package.json +14 -10
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024-present Qumra Cloud
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,81 @@
1
+ # @qumra/cli
2
+
3
+ Official CLI for [Qumra Cloud](https://qumra.cloud) — build, develop, and deploy themes and apps for your e-commerce store.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install -g @qumra/cli
9
+ ```
10
+
11
+ ## Quick Start
12
+
13
+ ```bash
14
+ # Login to your Qumra Cloud account
15
+ qumra login
16
+
17
+ # Initialize a new theme project
18
+ qumra theme init
19
+
20
+ # Start local development server with hot reload
21
+ qumra theme dev
22
+
23
+ # Publish your theme
24
+ qumra theme publish
25
+ ```
26
+
27
+ ## Commands
28
+
29
+ ### Authentication
30
+
31
+ | Command | Description |
32
+ |---------|-------------|
33
+ | `qumra login` | Login to your Qumra Cloud account |
34
+ | `qumra logout` | Logout from your account |
35
+ | `qumra info` | Show current user info |
36
+
37
+ ### Themes
38
+
39
+ | Command | Description |
40
+ |---------|-------------|
41
+ | `qumra theme init` | Initialize a new theme project |
42
+ | `qumra theme dev` | Start local development server with hot reload |
43
+ | `qumra theme publish` | Publish theme to Qumra Cloud |
44
+ | `qumra theme bundle` | Bundle theme for distribution |
45
+ | `qumra theme patch` | Bump patch version and publish |
46
+ | `qumra theme minor` | Bump minor version and publish |
47
+ | `qumra theme major` | Bump major version and publish |
48
+
49
+ ### Apps
50
+
51
+ | Command | Description |
52
+ |---------|-------------|
53
+ | `qumra app init` | Initialize a new app project |
54
+ | `qumra app dev` | Start local development server with tunnel |
55
+ | `qumra app deploy` | Deploy app to Qumra Cloud |
56
+
57
+ ### Generators
58
+
59
+ | Command | Description |
60
+ |---------|-------------|
61
+ | `qumra generate widget` | Scaffold a new widget |
62
+
63
+ ## Theme Development
64
+
65
+ Running `qumra theme dev` starts a local development environment with:
66
+
67
+ - **Proxy server** — forwards requests to your store with local asset overrides
68
+ - **Hot reload** — CSS changes apply instantly, other changes trigger a full reload
69
+ - **File watcher** — automatically syncs file changes to the cloud
70
+
71
+ ## Requirements
72
+
73
+ - Node.js >= 18
74
+
75
+ ## Documentation
76
+
77
+ Full documentation is available at [docs.qumra.cloud](https://docs.qumra.cloud/docs/cli/intro).
78
+
79
+ ## License
80
+
81
+ [MIT](LICENSE)
package/dist/cli.js CHANGED
@@ -278807,65 +278807,59 @@ const ansiRegex$2 = ansiRegex$3;
278807
278807
 
278808
278808
  var stripAnsi$4 = string => typeof string === 'string' ? string.replace(ansiRegex$2(), '') : string;
278809
278809
 
278810
- var isFullwidthCodePoint$1 = {exports: {}};
278810
+ var isFullwidthCodePoint$2 = {exports: {}};
278811
278811
 
278812
278812
  /* eslint-disable yoda */
278813
278813
 
278814
- var hasRequiredIsFullwidthCodePoint;
278815
-
278816
- function requireIsFullwidthCodePoint () {
278817
- if (hasRequiredIsFullwidthCodePoint) return isFullwidthCodePoint$1.exports;
278818
- hasRequiredIsFullwidthCodePoint = 1;
278814
+ const isFullwidthCodePoint$1 = codePoint => {
278815
+ if (Number.isNaN(codePoint)) {
278816
+ return false;
278817
+ }
278819
278818
 
278820
- const isFullwidthCodePoint = codePoint => {
278821
- if (Number.isNaN(codePoint)) {
278822
- return false;
278823
- }
278819
+ // Code points are derived from:
278820
+ // http://www.unix.org/Public/UNIDATA/EastAsianWidth.txt
278821
+ if (
278822
+ codePoint >= 0x1100 && (
278823
+ codePoint <= 0x115F || // Hangul Jamo
278824
+ codePoint === 0x2329 || // LEFT-POINTING ANGLE BRACKET
278825
+ codePoint === 0x232A || // RIGHT-POINTING ANGLE BRACKET
278826
+ // CJK Radicals Supplement .. Enclosed CJK Letters and Months
278827
+ (0x2E80 <= codePoint && codePoint <= 0x3247 && codePoint !== 0x303F) ||
278828
+ // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
278829
+ (0x3250 <= codePoint && codePoint <= 0x4DBF) ||
278830
+ // CJK Unified Ideographs .. Yi Radicals
278831
+ (0x4E00 <= codePoint && codePoint <= 0xA4C6) ||
278832
+ // Hangul Jamo Extended-A
278833
+ (0xA960 <= codePoint && codePoint <= 0xA97C) ||
278834
+ // Hangul Syllables
278835
+ (0xAC00 <= codePoint && codePoint <= 0xD7A3) ||
278836
+ // CJK Compatibility Ideographs
278837
+ (0xF900 <= codePoint && codePoint <= 0xFAFF) ||
278838
+ // Vertical Forms
278839
+ (0xFE10 <= codePoint && codePoint <= 0xFE19) ||
278840
+ // CJK Compatibility Forms .. Small Form Variants
278841
+ (0xFE30 <= codePoint && codePoint <= 0xFE6B) ||
278842
+ // Halfwidth and Fullwidth Forms
278843
+ (0xFF01 <= codePoint && codePoint <= 0xFF60) ||
278844
+ (0xFFE0 <= codePoint && codePoint <= 0xFFE6) ||
278845
+ // Kana Supplement
278846
+ (0x1B000 <= codePoint && codePoint <= 0x1B001) ||
278847
+ // Enclosed Ideographic Supplement
278848
+ (0x1F200 <= codePoint && codePoint <= 0x1F251) ||
278849
+ // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
278850
+ (0x20000 <= codePoint && codePoint <= 0x3FFFD)
278851
+ )
278852
+ ) {
278853
+ return true;
278854
+ }
278824
278855
 
278825
- // Code points are derived from:
278826
- // http://www.unix.org/Public/UNIDATA/EastAsianWidth.txt
278827
- if (
278828
- codePoint >= 0x1100 && (
278829
- codePoint <= 0x115F || // Hangul Jamo
278830
- codePoint === 0x2329 || // LEFT-POINTING ANGLE BRACKET
278831
- codePoint === 0x232A || // RIGHT-POINTING ANGLE BRACKET
278832
- // CJK Radicals Supplement .. Enclosed CJK Letters and Months
278833
- (0x2E80 <= codePoint && codePoint <= 0x3247 && codePoint !== 0x303F) ||
278834
- // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
278835
- (0x3250 <= codePoint && codePoint <= 0x4DBF) ||
278836
- // CJK Unified Ideographs .. Yi Radicals
278837
- (0x4E00 <= codePoint && codePoint <= 0xA4C6) ||
278838
- // Hangul Jamo Extended-A
278839
- (0xA960 <= codePoint && codePoint <= 0xA97C) ||
278840
- // Hangul Syllables
278841
- (0xAC00 <= codePoint && codePoint <= 0xD7A3) ||
278842
- // CJK Compatibility Ideographs
278843
- (0xF900 <= codePoint && codePoint <= 0xFAFF) ||
278844
- // Vertical Forms
278845
- (0xFE10 <= codePoint && codePoint <= 0xFE19) ||
278846
- // CJK Compatibility Forms .. Small Form Variants
278847
- (0xFE30 <= codePoint && codePoint <= 0xFE6B) ||
278848
- // Halfwidth and Fullwidth Forms
278849
- (0xFF01 <= codePoint && codePoint <= 0xFF60) ||
278850
- (0xFFE0 <= codePoint && codePoint <= 0xFFE6) ||
278851
- // Kana Supplement
278852
- (0x1B000 <= codePoint && codePoint <= 0x1B001) ||
278853
- // Enclosed Ideographic Supplement
278854
- (0x1F200 <= codePoint && codePoint <= 0x1F251) ||
278855
- // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
278856
- (0x20000 <= codePoint && codePoint <= 0x3FFFD)
278857
- )
278858
- ) {
278859
- return true;
278860
- }
278856
+ return false;
278857
+ };
278861
278858
 
278862
- return false;
278863
- };
278859
+ isFullwidthCodePoint$2.exports = isFullwidthCodePoint$1;
278860
+ isFullwidthCodePoint$2.exports.default = isFullwidthCodePoint$1;
278864
278861
 
278865
- isFullwidthCodePoint$1.exports = isFullwidthCodePoint;
278866
- isFullwidthCodePoint$1.exports.default = isFullwidthCodePoint;
278867
- return isFullwidthCodePoint$1.exports;
278868
- }
278862
+ var isFullwidthCodePointExports = isFullwidthCodePoint$2.exports;
278869
278863
 
278870
278864
  var emojiRegex$3 = function () {
278871
278865
  // https://mths.be/emoji
@@ -278873,7 +278867,7 @@ var emojiRegex$3 = function () {
278873
278867
  };
278874
278868
 
278875
278869
  const stripAnsi$3 = stripAnsi$4;
278876
- const isFullwidthCodePoint = requireIsFullwidthCodePoint();
278870
+ const isFullwidthCodePoint = isFullwidthCodePointExports;
278877
278871
  const emojiRegex$2 = emojiRegex$3;
278878
278872
 
278879
278873
  const stringWidth$3 = string => {
@@ -279161,7 +279155,7 @@ function requireStringWidth () {
279161
279155
  if (hasRequiredStringWidth) return stringWidth$1.exports;
279162
279156
  hasRequiredStringWidth = 1;
279163
279157
  const stripAnsi = requireStripAnsi();
279164
- const isFullwidthCodePoint = requireIsFullwidthCodePoint();
279158
+ const isFullwidthCodePoint = isFullwidthCodePointExports;
279165
279159
  const emojiRegex = requireEmojiRegex();
279166
279160
 
279167
279161
  const stringWidth = string => {
@@ -304366,7 +304360,7 @@ class SectionBuilder {
304366
304360
  }
304367
304361
  }
304368
304362
 
304369
- var version$2 = "2.4.14";
304363
+ var version$2 = "2.4.15";
304370
304364
  var pkg = {
304371
304365
  version: version$2};
304372
304366
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qumra/cli",
3
- "version": "2.4.14",
4
- "description": "Professional CLI tool for Qumra Cloud - Shopify competitor",
3
+ "version": "2.4.15",
4
+ "description": "Official CLI for Qumra Cloud e-commerce platform. Build, develop, and deploy themes and apps.",
5
5
  "main": "dist/cli.js",
6
6
  "bin": {
7
7
  "qumra": "dist/cli.js"
@@ -27,14 +27,19 @@
27
27
  ],
28
28
  "keywords": [
29
29
  "qumra",
30
- "sdk",
31
- "api",
32
- "graphql",
30
+ "cli",
33
31
  "ecommerce",
34
- "admin"
32
+ "ecommerce-platform",
33
+ "theme",
34
+ "storefront",
35
+ "headless-commerce",
36
+ "graphql"
35
37
  ],
36
- "author": "Qumra",
38
+ "author": "Qumra <support@qumra.cloud> (https://qumra.cloud)",
37
39
  "license": "MIT",
40
+ "engines": {
41
+ "node": ">=18"
42
+ },
38
43
  "dependencies": {
39
44
  "@inquirer/search": "^4.1.0",
40
45
  "@nestjs/common": "^11.1.12",
@@ -42,8 +47,6 @@
42
47
  "@nestjs/microservices": "^11.1.12",
43
48
  "@nestjs/platform-express": "^11.1.12",
44
49
  "@nestjs/websockets": "^11.1.12",
45
- "@types/blessed": "^0.1.27",
46
- "@types/figlet": "^1.7.0",
47
50
  "archiver": "^7.0.1",
48
51
  "axios": "^1.10.0",
49
52
  "blessed": "^0.1.81",
@@ -54,7 +57,6 @@
54
57
  "cli-progress": "^3.12.0",
55
58
  "cli-table3": "^0.6.5",
56
59
  "cloudflared": "^0.7.1",
57
- "commander": "^11.0.0",
58
60
  "conf": "^14.0.0",
59
61
  "express": "^4.18.2",
60
62
  "fast-glob": "^3.3.3",
@@ -81,6 +83,8 @@
81
83
  "@rollup/plugin-terser": "^0.4.4",
82
84
  "@rollup/plugin-typescript": "^11.0.0",
83
85
  "@types/archiver": "^7.0.0",
86
+ "@types/blessed": "^0.1.27",
87
+ "@types/figlet": "^1.7.0",
84
88
  "@types/cli-progress": "^3.11.6",
85
89
  "@types/conf": "^2.1.0",
86
90
  "@types/express": "^4.17.21",