@gxp-dev/tools 2.0.62 → 2.0.64

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 (182) hide show
  1. package/README.md +32 -31
  2. package/bin/gx-devtools.js +74 -54
  3. package/bin/lib/cli.js +23 -21
  4. package/bin/lib/commands/add-dependency.js +366 -325
  5. package/bin/lib/commands/assets.js +137 -139
  6. package/bin/lib/commands/build.js +169 -174
  7. package/bin/lib/commands/datastore.js +181 -183
  8. package/bin/lib/commands/dev.js +127 -131
  9. package/bin/lib/commands/extensions.js +147 -149
  10. package/bin/lib/commands/extract-config.js +73 -67
  11. package/bin/lib/commands/index.js +12 -12
  12. package/bin/lib/commands/init.js +342 -240
  13. package/bin/lib/commands/publish.js +69 -75
  14. package/bin/lib/commands/socket.js +69 -69
  15. package/bin/lib/commands/ssl.js +14 -14
  16. package/bin/lib/constants.js +10 -24
  17. package/bin/lib/tui/App.tsx +761 -705
  18. package/bin/lib/tui/components/AIPanel.tsx +191 -171
  19. package/bin/lib/tui/components/CommandInput.tsx +394 -343
  20. package/bin/lib/tui/components/GeminiPanel.tsx +175 -151
  21. package/bin/lib/tui/components/Header.tsx +23 -21
  22. package/bin/lib/tui/components/LogPanel.tsx +244 -220
  23. package/bin/lib/tui/components/TabBar.tsx +50 -48
  24. package/bin/lib/tui/components/WelcomeScreen.tsx +126 -71
  25. package/bin/lib/tui/index.tsx +37 -39
  26. package/bin/lib/tui/services/AIService.ts +518 -462
  27. package/bin/lib/tui/services/ExtensionService.ts +140 -129
  28. package/bin/lib/tui/services/GeminiService.ts +367 -337
  29. package/bin/lib/tui/services/ServiceManager.ts +344 -322
  30. package/bin/lib/tui/services/SocketService.ts +168 -168
  31. package/bin/lib/tui/services/ViteService.ts +88 -88
  32. package/bin/lib/tui/services/index.ts +47 -22
  33. package/bin/lib/utils/ai-scaffold.js +291 -280
  34. package/bin/lib/utils/extract-config.js +157 -140
  35. package/bin/lib/utils/files.js +82 -86
  36. package/bin/lib/utils/index.js +7 -7
  37. package/bin/lib/utils/paths.js +34 -34
  38. package/bin/lib/utils/prompts.js +194 -169
  39. package/bin/lib/utils/ssl.js +79 -81
  40. package/browser-extensions/README.md +0 -1
  41. package/browser-extensions/chrome/background.js +244 -237
  42. package/browser-extensions/chrome/content.js +32 -29
  43. package/browser-extensions/chrome/devtools.html +7 -7
  44. package/browser-extensions/chrome/devtools.js +19 -19
  45. package/browser-extensions/chrome/inspector.js +802 -767
  46. package/browser-extensions/chrome/manifest.json +71 -63
  47. package/browser-extensions/chrome/panel.html +674 -636
  48. package/browser-extensions/chrome/panel.js +722 -712
  49. package/browser-extensions/chrome/popup.html +586 -543
  50. package/browser-extensions/chrome/popup.js +282 -244
  51. package/browser-extensions/chrome/rules.json +1 -1
  52. package/browser-extensions/chrome/test-chrome.html +216 -136
  53. package/browser-extensions/chrome/test-mixed-content.html +284 -189
  54. package/browser-extensions/chrome/test-uri-pattern.html +221 -198
  55. package/browser-extensions/firefox/README.md +9 -6
  56. package/browser-extensions/firefox/background.js +221 -218
  57. package/browser-extensions/firefox/content.js +55 -52
  58. package/browser-extensions/firefox/debug-errors.html +386 -228
  59. package/browser-extensions/firefox/debug-https.html +153 -105
  60. package/browser-extensions/firefox/devtools.html +7 -7
  61. package/browser-extensions/firefox/devtools.js +23 -20
  62. package/browser-extensions/firefox/inspector.js +802 -767
  63. package/browser-extensions/firefox/manifest.json +68 -68
  64. package/browser-extensions/firefox/panel.html +674 -636
  65. package/browser-extensions/firefox/panel.js +722 -712
  66. package/browser-extensions/firefox/popup.html +572 -535
  67. package/browser-extensions/firefox/popup.js +281 -236
  68. package/browser-extensions/firefox/test-gramercy.html +170 -125
  69. package/browser-extensions/firefox/test-imports.html +59 -55
  70. package/browser-extensions/firefox/test-masking.html +231 -140
  71. package/browser-extensions/firefox/test-uri-pattern.html +221 -198
  72. package/dist/tui/App.d.ts +1 -1
  73. package/dist/tui/App.d.ts.map +1 -1
  74. package/dist/tui/App.js +154 -150
  75. package/dist/tui/App.js.map +1 -1
  76. package/dist/tui/components/AIPanel.d.ts.map +1 -1
  77. package/dist/tui/components/AIPanel.js +42 -35
  78. package/dist/tui/components/AIPanel.js.map +1 -1
  79. package/dist/tui/components/CommandInput.d.ts +1 -1
  80. package/dist/tui/components/CommandInput.d.ts.map +1 -1
  81. package/dist/tui/components/CommandInput.js +92 -62
  82. package/dist/tui/components/CommandInput.js.map +1 -1
  83. package/dist/tui/components/GeminiPanel.d.ts.map +1 -1
  84. package/dist/tui/components/GeminiPanel.js +37 -30
  85. package/dist/tui/components/GeminiPanel.js.map +1 -1
  86. package/dist/tui/components/Header.d.ts.map +1 -1
  87. package/dist/tui/components/Header.js +1 -1
  88. package/dist/tui/components/Header.js.map +1 -1
  89. package/dist/tui/components/LogPanel.d.ts +1 -1
  90. package/dist/tui/components/LogPanel.d.ts.map +1 -1
  91. package/dist/tui/components/LogPanel.js +26 -24
  92. package/dist/tui/components/LogPanel.js.map +1 -1
  93. package/dist/tui/components/TabBar.d.ts +2 -2
  94. package/dist/tui/components/TabBar.d.ts.map +1 -1
  95. package/dist/tui/components/TabBar.js +11 -11
  96. package/dist/tui/components/TabBar.js.map +1 -1
  97. package/dist/tui/components/WelcomeScreen.d.ts.map +1 -1
  98. package/dist/tui/components/WelcomeScreen.js +6 -6
  99. package/dist/tui/components/WelcomeScreen.js.map +1 -1
  100. package/dist/tui/index.d.ts.map +1 -1
  101. package/dist/tui/index.js +8 -8
  102. package/dist/tui/index.js.map +1 -1
  103. package/dist/tui/services/AIService.d.ts +2 -2
  104. package/dist/tui/services/AIService.d.ts.map +1 -1
  105. package/dist/tui/services/AIService.js +165 -125
  106. package/dist/tui/services/AIService.js.map +1 -1
  107. package/dist/tui/services/ExtensionService.d.ts +1 -1
  108. package/dist/tui/services/ExtensionService.d.ts.map +1 -1
  109. package/dist/tui/services/ExtensionService.js +33 -26
  110. package/dist/tui/services/ExtensionService.js.map +1 -1
  111. package/dist/tui/services/GeminiService.d.ts +1 -1
  112. package/dist/tui/services/GeminiService.d.ts.map +1 -1
  113. package/dist/tui/services/GeminiService.js +87 -76
  114. package/dist/tui/services/GeminiService.js.map +1 -1
  115. package/dist/tui/services/ServiceManager.d.ts +3 -3
  116. package/dist/tui/services/ServiceManager.d.ts.map +1 -1
  117. package/dist/tui/services/ServiceManager.js +72 -58
  118. package/dist/tui/services/ServiceManager.js.map +1 -1
  119. package/dist/tui/services/SocketService.d.ts.map +1 -1
  120. package/dist/tui/services/SocketService.js +32 -32
  121. package/dist/tui/services/SocketService.js.map +1 -1
  122. package/dist/tui/services/ViteService.d.ts.map +1 -1
  123. package/dist/tui/services/ViteService.js +26 -28
  124. package/dist/tui/services/ViteService.js.map +1 -1
  125. package/dist/tui/services/index.d.ts +6 -6
  126. package/dist/tui/services/index.d.ts.map +1 -1
  127. package/dist/tui/services/index.js +6 -6
  128. package/dist/tui/services/index.js.map +1 -1
  129. package/mcp/gxp-api-server.js +83 -81
  130. package/package.json +109 -93
  131. package/runtime/PortalContainer.vue +258 -234
  132. package/runtime/dev-tools/DevToolsModal.vue +153 -155
  133. package/runtime/dev-tools/LayoutSwitcher.vue +144 -140
  134. package/runtime/dev-tools/MockDataEditor.vue +456 -433
  135. package/runtime/dev-tools/SocketSimulator.vue +379 -371
  136. package/runtime/dev-tools/StoreInspector.vue +517 -455
  137. package/runtime/dev-tools/index.js +5 -5
  138. package/runtime/fallback-layouts/PrivateLayout.vue +2 -2
  139. package/runtime/fallback-layouts/PublicLayout.vue +2 -2
  140. package/runtime/fallback-layouts/SystemLayout.vue +2 -2
  141. package/runtime/gxpStringsPlugin.js +159 -134
  142. package/runtime/index.html +17 -19
  143. package/runtime/main.js +24 -22
  144. package/runtime/mock-api/auth-middleware.js +15 -15
  145. package/runtime/mock-api/image-generator.js +46 -46
  146. package/runtime/mock-api/index.js +55 -55
  147. package/runtime/mock-api/response-generator.js +116 -105
  148. package/runtime/mock-api/route-generator.js +107 -84
  149. package/runtime/mock-api/socket-triggers.js +94 -93
  150. package/runtime/mock-api/spec-loader.js +79 -80
  151. package/runtime/package.json +3 -0
  152. package/runtime/server.js +68 -68
  153. package/runtime/stores/gxpPortalConfigStore.js +204 -186
  154. package/runtime/stores/index.js +2 -2
  155. package/runtime/vite-inspector-plugin.js +858 -707
  156. package/runtime/vite-source-tracker-plugin.js +132 -113
  157. package/runtime/vite.config.js +207 -132
  158. package/scripts/launch-chrome.js +41 -41
  159. package/scripts/pack-chrome.js +38 -39
  160. package/socket-events/AiSessionMessageCreated.json +17 -17
  161. package/socket-events/SocialStreamPostCreated.json +23 -23
  162. package/socket-events/SocialStreamPostVariantCompleted.json +22 -22
  163. package/template/.claude/agents/gxp-developer.md +100 -99
  164. package/template/.claude/settings.json +7 -7
  165. package/template/AGENTS.md +30 -23
  166. package/template/GEMINI.md +20 -20
  167. package/template/README.md +70 -53
  168. package/template/app-manifest.json +2 -4
  169. package/template/configuration.json +10 -10
  170. package/template/default-styling.css +1 -1
  171. package/template/index.html +18 -20
  172. package/template/main.js +24 -22
  173. package/template/src/DemoPage.vue +415 -362
  174. package/template/src/Plugin.vue +76 -85
  175. package/template/src/stores/index.js +3 -3
  176. package/template/src/stores/test-data.json +164 -172
  177. package/template/theme-layouts/AdditionalStyling.css +50 -50
  178. package/template/theme-layouts/PrivateLayout.vue +8 -12
  179. package/template/theme-layouts/PublicLayout.vue +8 -12
  180. package/template/theme-layouts/SystemLayout.vue +8 -12
  181. package/template/vite.extend.js +45 -0
  182. package/template/vite.config.js +0 -409
package/README.md CHANGED
@@ -52,6 +52,7 @@ npm run dev-http
52
52
  ```
53
53
 
54
54
  When run in a directory with an existing `package.json` (no name argument), `gxdev init` will:
55
+
55
56
  - Add missing required dependencies and devDependencies
56
57
  - Update mismatched dependency versions
57
58
  - Add missing npm scripts (`dev`, `build`, `dev-http`, etc.)
@@ -62,26 +63,26 @@ It will **not** overwrite your source files (`src/`, `theme-layouts/`, etc.).
62
63
 
63
64
  ## CLI Commands
64
65
 
65
- | Command | Description |
66
- |---------|-------------|
67
- | `gxdev` | Launch interactive TUI |
68
- | `gxdev init [name]` | Create a new project or update an existing one |
69
- | `gxdev dev` | Start development server (HTTPS + TUI) |
70
- | `gxdev dev --no-https` | Start with HTTP only |
71
- | `gxdev dev --with-socket` | Start with Socket.IO server |
72
- | `gxdev dev --chrome` | Start and launch Chrome with extension |
73
- | `gxdev dev --firefox` | Start and launch Firefox with extension |
74
- | `gxdev build` | Build plugin for production |
75
- | `gxdev setup-ssl` | Generate SSL certificates for HTTPS development |
76
- | `gxdev publish <file>` | Copy runtime files to your project for customization |
66
+ | Command | Description |
67
+ | -------------------------- | ------------------------------------------------------ |
68
+ | `gxdev` | Launch interactive TUI |
69
+ | `gxdev init [name]` | Create a new project or update an existing one |
70
+ | `gxdev dev` | Start development server (HTTPS + TUI) |
71
+ | `gxdev dev --no-https` | Start with HTTP only |
72
+ | `gxdev dev --with-socket` | Start with Socket.IO server |
73
+ | `gxdev dev --chrome` | Start and launch Chrome with extension |
74
+ | `gxdev dev --firefox` | Start and launch Firefox with extension |
75
+ | `gxdev build` | Build plugin for production |
76
+ | `gxdev setup-ssl` | Generate SSL certificates for HTTPS development |
77
+ | `gxdev publish <file>` | Copy runtime files to your project for customization |
77
78
  | `gxdev datastore <action>` | Manage GxP datastore (list, add, scan-strings, config) |
78
- | `gxdev socket <action>` | Simulate socket events (list, send) |
79
- | `gxdev assets <action>` | Manage development assets (list, init, generate) |
80
- | `gxdev add-dependency` | Add API dependency via interactive wizard |
81
- | `gxdev extract-config` | Extract GxP config from source files |
82
- | `gxdev ext:chrome` | Launch Chrome with browser extension |
83
- | `gxdev ext:firefox` | Launch Firefox with browser extension |
84
- | `gxdev ext:build` | Build browser extensions for distribution |
79
+ | `gxdev socket <action>` | Simulate socket events (list, send) |
80
+ | `gxdev assets <action>` | Manage development assets (list, init, generate) |
81
+ | `gxdev add-dependency` | Add API dependency via interactive wizard |
82
+ | `gxdev extract-config` | Extract GxP config from source files |
83
+ | `gxdev ext:chrome` | Launch Chrome with browser extension |
84
+ | `gxdev ext:firefox` | Launch Firefox with browser extension |
85
+ | `gxdev ext:build` | Build browser extensions for distribution |
85
86
 
86
87
  ## Features
87
88
 
@@ -121,18 +122,18 @@ The dev server automatically serves `index.html` and `main.js` from the toolkit
121
122
 
122
123
  Key variables (set in `.env`):
123
124
 
124
- | Variable | Default | Description |
125
- |----------|---------|-------------|
126
- | `NODE_PORT` | `3060` | Development server port |
127
- | `SOCKET_IO_PORT` | `3061` | Socket.IO server port |
128
- | `COMPONENT_PATH` | `./src/Plugin.vue` | Main component path |
129
- | `USE_HTTPS` | `true` | Enable HTTPS |
130
- | `CERT_PATH` | | SSL certificate path |
131
- | `KEY_PATH` | | SSL private key path |
132
- | `USE_LOCAL_INDEX` | | Set to `true` to use a local `index.html` instead of the runtime version |
133
- | `USE_LOCAL_MAIN` | | Set to `true` to use a local `main.js` instead of the runtime version |
134
- | `SOCKET_IO_ENABLED` | `false` | Auto-start Socket.IO |
135
- | `API_ENV` | `mock` | API environment (mock, local, development, staging, production) |
125
+ | Variable | Default | Description |
126
+ | ------------------- | ------------------ | ------------------------------------------------------------------------ |
127
+ | `NODE_PORT` | `3060` | Development server port |
128
+ | `SOCKET_IO_PORT` | `3061` | Socket.IO server port |
129
+ | `COMPONENT_PATH` | `./src/Plugin.vue` | Main component path |
130
+ | `USE_HTTPS` | `true` | Enable HTTPS |
131
+ | `CERT_PATH` | | SSL certificate path |
132
+ | `KEY_PATH` | | SSL private key path |
133
+ | `USE_LOCAL_INDEX` | | Set to `true` to use a local `index.html` instead of the runtime version |
134
+ | `USE_LOCAL_MAIN` | | Set to `true` to use a local `main.js` instead of the runtime version |
135
+ | `SOCKET_IO_ENABLED` | `false` | Auto-start Socket.IO |
136
+ | `API_ENV` | `mock` | API environment (mock, local, development, staging, production) |
136
137
 
137
138
  ## Runtime vs Template
138
139
 
@@ -22,77 +22,97 @@
22
22
  */
23
23
 
24
24
  // Commands that should use the traditional CLI (one-shot commands)
25
- const ONE_SHOT_COMMANDS = ['init', 'build', 'publish', 'setup-ssl', 'ext:build', 'add-dependency', 'extract-config', '--help', '-h', '--version'];
25
+ const ONE_SHOT_COMMANDS = [
26
+ "init",
27
+ "build",
28
+ "publish",
29
+ "setup-ssl",
30
+ "ext:build",
31
+ "add-dependency",
32
+ "extract-config",
33
+ "--help",
34
+ "-h",
35
+ "--version",
36
+ ]
26
37
 
27
38
  // Commands that should launch TUI with auto-start
28
- const TUI_AUTO_START_COMMANDS = ['dev', 'socket', 'ext:firefox', 'ext:chrome', 'datastore', 'assets'];
39
+ const TUI_AUTO_START_COMMANDS = [
40
+ "dev",
41
+ "socket",
42
+ "ext:firefox",
43
+ "ext:chrome",
44
+ "datastore",
45
+ "assets",
46
+ ]
29
47
 
30
- const args = process.argv.slice(2);
31
- const command = args[0];
48
+ const args = process.argv.slice(2)
49
+ const command = args[0]
32
50
 
33
51
  // Check if this is a one-shot command
34
- const isOneShot = ONE_SHOT_COMMANDS.includes(command) ||
35
- (command && command.startsWith('-'));
52
+ const isOneShot =
53
+ ONE_SHOT_COMMANDS.includes(command) || (command && command.startsWith("-"))
36
54
 
37
55
  // Check if we should use TUI with auto-start
38
- const isTuiCommand = TUI_AUTO_START_COMMANDS.includes(command);
56
+ const isTuiCommand = TUI_AUTO_START_COMMANDS.includes(command)
39
57
 
40
58
  // --cli flag forces non-TUI mode regardless of TTY
41
- const forceCliMode = args.includes('--cli');
59
+ const forceCliMode = args.includes("--cli")
42
60
 
43
61
  // If no command or TUI command, try to launch TUI
44
62
  // Fall back to traditional CLI if TUI dependencies are not available
45
63
  if (!isOneShot) {
46
- const fs = require('fs');
47
- const path = require('path');
48
- // TUI output is in project root's dist/tui, not bin/dist/tui
49
- const tuiPath = path.join(__dirname, '..', 'dist', 'tui', 'index.js');
64
+ const fs = require("fs")
65
+ const path = require("path")
66
+ // TUI output is in project root's dist/tui, not bin/dist/tui
67
+ const tuiPath = path.join(__dirname, "..", "dist", "tui", "index.js")
50
68
 
51
- // Check if we're in an interactive terminal (TTY); fall back to CLI if not
52
- const isTTY = process.stdout.isTTY && process.stdin.isTTY;
69
+ // Check if we're in an interactive terminal (TTY); fall back to CLI if not
70
+ const isTTY = process.stdout.isTTY && process.stdin.isTTY
53
71
 
54
- if (fs.existsSync(tuiPath) && isTTY && !forceCliMode) {
55
- // Use dynamic import() for ESM modules (ink v5 is ESM-only)
56
- (async () => {
57
- try {
58
- const { startTUI } = await import(tuiPath);
72
+ if (fs.existsSync(tuiPath) && isTTY && !forceCliMode) {
73
+ // Use dynamic import() for ESM modules (ink v5 is ESM-only)
74
+ ;(async () => {
75
+ try {
76
+ const { startTUI } = await import(tuiPath)
59
77
 
60
- // Determine auto-start commands
61
- const autoStart = [];
62
- const tuiArgs = {};
78
+ // Determine auto-start commands
79
+ const autoStart = []
80
+ const tuiArgs = {}
63
81
 
64
- if (command === 'dev') {
65
- autoStart.push('dev');
66
- if (args.includes('--with-socket') || args.includes('-s')) {
67
- autoStart.push('socket');
68
- }
69
- tuiArgs.noHttps = args.includes('--no-https');
70
- } else if (command === 'socket') {
71
- autoStart.push('socket');
72
- } else if (command === 'ext:firefox') {
73
- autoStart.push('ext firefox');
74
- } else if (command === 'ext:chrome') {
75
- autoStart.push('ext chrome');
76
- }
82
+ if (command === "dev") {
83
+ autoStart.push("dev")
84
+ if (args.includes("--with-socket") || args.includes("-s")) {
85
+ autoStart.push("socket")
86
+ }
87
+ tuiArgs.noHttps = args.includes("--no-https")
88
+ } else if (command === "socket") {
89
+ autoStart.push("socket")
90
+ } else if (command === "ext:firefox") {
91
+ autoStart.push("ext firefox")
92
+ } else if (command === "ext:chrome") {
93
+ autoStart.push("ext chrome")
94
+ }
77
95
 
78
- startTUI({ autoStart, args: tuiArgs });
79
- } catch (err) {
80
- // TUI not available or no TTY — fall back to traditional CLI
81
- if (err.message !== 'NO_TTY') {
82
- console.error('TUI error:', err.message);
83
- }
84
- require("./lib/cli");
85
- }
86
- })();
87
- } else if (!isTTY || forceCliMode) {
88
- // Non-interactive shell or --cli flag — skip TUI and run directly
89
- require("./lib/cli");
90
- } else {
91
- // TUI not compiled yet, use traditional CLI
92
- console.log('Note: TUI not yet available. Run "npm run build:tui" to enable interactive mode.');
93
- require("./lib/cli");
94
- }
96
+ startTUI({ autoStart, args: tuiArgs })
97
+ } catch (err) {
98
+ // TUI not available or no TTY — fall back to traditional CLI
99
+ if (err.message !== "NO_TTY") {
100
+ console.error("TUI error:", err.message)
101
+ }
102
+ require("./lib/cli")
103
+ }
104
+ })()
105
+ } else if (!isTTY || forceCliMode) {
106
+ // Non-interactive shell or --cli flag — skip TUI and run directly
107
+ require("./lib/cli")
108
+ } else {
109
+ // TUI not compiled yet, use traditional CLI
110
+ console.log(
111
+ 'Note: TUI not yet available. Run "npm run build:tui" to enable interactive mode.',
112
+ )
113
+ require("./lib/cli")
114
+ }
95
115
  } else {
96
- // One-shot command, use traditional CLI
97
- require("./lib/cli");
116
+ // One-shot command, use traditional CLI
117
+ require("./lib/cli")
98
118
  }
package/bin/lib/cli.js CHANGED
@@ -7,8 +7,8 @@
7
7
  * It sets up yargs commands and delegates to the appropriate command modules.
8
8
  */
9
9
 
10
- const yargs = require("yargs");
11
- const { loadGlobalConfig } = require("./utils");
10
+ const yargs = require("yargs")
11
+ const { loadGlobalConfig } = require("./utils")
12
12
  const {
13
13
  initCommand,
14
14
  devCommand,
@@ -24,10 +24,10 @@ const {
24
24
  extensionInstallCommand,
25
25
  extractConfigCommand,
26
26
  addDependencyCommand,
27
- } = require("./commands");
27
+ } = require("./commands")
28
28
 
29
29
  // Load global configuration
30
- const globalConfig = loadGlobalConfig();
30
+ const globalConfig = loadGlobalConfig()
31
31
 
32
32
  // Set up yargs CLI
33
33
  yargs
@@ -47,7 +47,8 @@ yargs
47
47
  alias: "d",
48
48
  },
49
49
  build: {
50
- describe: "AI build prompt - describe what to build for auto-scaffolding",
50
+ describe:
51
+ "AI build prompt - describe what to build for auto-scaffolding",
51
52
  type: "string",
52
53
  alias: "b",
53
54
  },
@@ -64,19 +65,20 @@ yargs
64
65
  default: false,
65
66
  },
66
67
  local: {
67
- describe: "Initialize in current directory instead of creating a new one",
68
+ describe:
69
+ "Initialize in current directory instead of creating a new one",
68
70
  type: "boolean",
69
71
  alias: "l",
70
72
  default: false,
71
73
  },
72
74
  },
73
- initCommand
75
+ initCommand,
74
76
  )
75
77
  .command(
76
78
  "setup-ssl",
77
79
  "Setup SSL certificates for HTTPS development",
78
80
  {},
79
- setupSSLCommand
81
+ setupSSLCommand,
80
82
  )
81
83
  .command(
82
84
  "dev",
@@ -123,7 +125,7 @@ yargs
123
125
  alias: "m",
124
126
  },
125
127
  },
126
- devCommand
128
+ devCommand,
127
129
  )
128
130
  .command(
129
131
  "build",
@@ -140,7 +142,7 @@ yargs
140
142
  default: "./src/Plugin.vue",
141
143
  },
142
144
  },
143
- buildCommand
145
+ buildCommand,
144
146
  )
145
147
  .command(
146
148
  "publish [file]",
@@ -151,7 +153,7 @@ yargs
151
153
  type: "string",
152
154
  },
153
155
  },
154
- publishCommand
156
+ publishCommand,
155
157
  )
156
158
  .command(
157
159
  "datastore <action>",
@@ -182,25 +184,25 @@ yargs
182
184
  type: "string",
183
185
  },
184
186
  },
185
- datastoreCommand
187
+ datastoreCommand,
186
188
  )
187
189
  .command(
188
190
  "ext:firefox",
189
191
  "Launch Firefox with browser extension",
190
192
  {},
191
- extensionFirefoxCommand
193
+ extensionFirefoxCommand,
192
194
  )
193
195
  .command(
194
196
  "ext:chrome",
195
197
  "Launch Chrome with browser extension",
196
198
  {},
197
- extensionChromeCommand
199
+ extensionChromeCommand,
198
200
  )
199
201
  .command(
200
202
  "ext:build",
201
203
  "Build browser extensions for distribution",
202
204
  {},
203
- extensionBuildCommand
205
+ extensionBuildCommand,
204
206
  )
205
207
  .command(
206
208
  "ext:install <browser>",
@@ -212,7 +214,7 @@ yargs
212
214
  type: "string",
213
215
  },
214
216
  },
215
- extensionInstallCommand
217
+ extensionInstallCommand,
216
218
  )
217
219
  .command(
218
220
  "socket <action>",
@@ -231,7 +233,7 @@ yargs
231
233
  type: "string",
232
234
  },
233
235
  },
234
- socketCommand
236
+ socketCommand,
235
237
  )
236
238
  .command(
237
239
  "assets <action>",
@@ -272,7 +274,7 @@ yargs
272
274
  default: 1,
273
275
  },
274
276
  },
275
- assetsCommand
277
+ assetsCommand,
276
278
  )
277
279
  .command(
278
280
  "extract-config",
@@ -297,7 +299,7 @@ yargs
297
299
  alias: "v",
298
300
  },
299
301
  },
300
- extractConfigCommand
302
+ extractConfigCommand,
301
303
  )
302
304
  .command(
303
305
  "add-dependency",
@@ -311,9 +313,9 @@ yargs
311
313
  alias: "e",
312
314
  },
313
315
  },
314
- addDependencyCommand
316
+ addDependencyCommand,
315
317
  )
316
318
  .demandCommand(1, "Please provide a valid command")
317
319
  .help("h")
318
320
  .alias("h", "help")
319
- .parse();
321
+ .parse()