test-bdk-cli 0.1.18 → 0.1.20

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
@@ -1,3 +1,3 @@
1
- # App template
1
+ # BoldDesk App Template
2
2
 
3
- This is a minimal template for apps. Use `bdk apps:new my-app` to scaffold.
3
+ Minimal scaffold for BoldDesk apps. Use `bdk apps:new my-app` to scaffold a new project.
@@ -143,10 +143,10 @@ function registerCreate(program) {
143
143
  if (!fs_1.default.existsSync(enPath)) {
144
144
  fs_1.default.writeFileSync(enPath, JSON.stringify({
145
145
  app: {
146
- name: 'Zen Tunes',
147
- short_description: 'Play the famous zen tunes in your help desk.',
148
- long_description: 'Play the famous zen tunes in your help desk and \n listen to the beats it has to offer.',
149
- installation_instructions: 'Simply click install.'
146
+ name: 'Sample BoldDesk App',
147
+ short_description: 'A short description of your BoldDesk app.',
148
+ long_description: 'A longer description of your BoldDesk app and its features. Replace this text with real product details.',
149
+ installation_instructions: 'Follow the installation steps in the BoldDesk admin to install this app.'
150
150
  }
151
151
  }, null, 2), 'utf8');
152
152
  }
@@ -144,7 +144,7 @@ function registerRun(program) {
144
144
  server.on('error', (err) => {
145
145
  if (err.code === 'EADDRINUSE') {
146
146
  console.error(`❌ Port ${port} is already in use. Try a different port:`);
147
- console.error(` npx test-bdk-cli apps:run [source] --port 3001`);
147
+ console.error(` npx bdk apps:run [source] --port 3001`);
148
148
  }
149
149
  else {
150
150
  console.error(`❌ Server error: ${err.message}`);
@@ -47,7 +47,7 @@ function registerValidate(program) {
47
47
  try {
48
48
  (0, appPath_1.validateAppPath)(appDirectory);
49
49
  const appPath = path.resolve(appDirectory);
50
- // create package (not used by validatePkg here but kept for parity with zcli flow)
50
+ // create package (not used by validatePkg here but kept for parity with legacy CLI flow)
51
51
  const dummyName = path.basename(appPath) || 'app';
52
52
  const pkgPath = await (0, package_1.createAppPkg)(appPath, dummyName).catch(() => null);
53
53
  await (0, package_1.validatePkg)(appPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "test-bdk-cli",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "description": "test CLI",
5
5
  "author": "@raisulaslam",
6
6
  "bin": {
@@ -21,8 +21,7 @@
21
21
  "commander": "^10.0.0",
22
22
  "form-data": "^4.0.0",
23
23
  "inquirer": "^9.0.0",
24
- "node-fetch": "^2.6.7",
25
- "test-bdk-cli": "^0.1.13"
24
+ "node-fetch": "^2.6.7"
26
25
  },
27
26
  "devDependencies": {
28
27
  "@types/archiver": "^7.0.0",
@@ -1,14 +1,18 @@
1
1
  # App name
2
2
 
3
- [brief description of the app]
3
+ Short description: What this BoldDesk app does.
4
4
 
5
- ### The following information is displayed:
5
+ ## Setup
6
6
 
7
- * info1
8
- * info2
9
- * info3
7
+ 1. Install dependencies: `npm install`
8
+ 2. Build the app: `npm run build`
9
+ 3. Run locally: `bdk run . --open`
10
10
 
11
- Please submit bug reports to [Insert Link](). Pull requests are welcome.
11
+ ## Publishing
12
12
 
13
- ### Screenshot(s):
14
- [put your screenshots down here.]
13
+ Use `bdk pack` to create an archive and `bdk publish` to upload to the BoldDesk marketplace.
14
+
15
+ Please submit bug reports to the project repository. Pull requests are welcome.
16
+
17
+ ### Screenshot(s)
18
+ Place screenshots of your app here.
@@ -8,6 +8,6 @@
8
8
  </head>
9
9
  <body>
10
10
  <h1>Hello from the app iframe</h1>
11
- <p>This is a simple placeholder iframe page generated by the CLI.</p>
11
+ <p>This placeholder iframe is created by the bdk CLI — customize it for your BoldDesk app.</p>
12
12
  </body>
13
13
  </html>
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "version": "1.0.0",
18
18
  "frameworkVersion": "2.0",
19
- "description": "A sample Node.js BoldDesk app",
19
+ "description": "A sample BoldDesk app scaffolded by the bdk CLI",
20
20
  "main": "dist/index.html",
21
21
  "permissions": []
22
22
  }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "app": {
3
- "name": "Zen Tunes",
4
- "short_description": "Play the famous zen tunes in your help desk.",
5
- "long_description": "Play the famous zen tunes in your help desk and \n listen to the beats it has to offer.",
3
+ "name": "Bold Tunes",
4
+ "short_description": "Play the famous Bold tunes in your help desk.",
5
+ "long_description": "Play the famous Bold tunes in your help desk and \n listen to the beats it has to offer.",
6
6
  "installation_instructions": "Simply click install."
7
7
  }
8
8
  }