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 +2 -2
- package/dist/commands/create.js +4 -4
- package/dist/commands/run.js +1 -1
- package/dist/commands/validate.js +1 -1
- package/package.json +2 -3
- package/templates/default/README.md +12 -8
- package/templates/default/assets/iframe.html +1 -1
- package/templates/default/manifest.json +1 -1
- package/templates/default/translations/en.json +3 -3
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# App
|
|
1
|
+
# BoldDesk App Template
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Minimal scaffold for BoldDesk apps. Use `bdk apps:new my-app` to scaffold a new project.
|
package/dist/commands/create.js
CHANGED
|
@@ -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: '
|
|
147
|
-
short_description: '
|
|
148
|
-
long_description: '
|
|
149
|
-
installation_instructions: '
|
|
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
|
}
|
package/dist/commands/run.js
CHANGED
|
@@ -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
|
|
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
|
|
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.
|
|
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
|
-
|
|
3
|
+
Short description: What this BoldDesk app does.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Setup
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
1. Install dependencies: `npm install`
|
|
8
|
+
2. Build the app: `npm run build`
|
|
9
|
+
3. Run locally: `bdk run . --open`
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
## Publishing
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
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.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"app": {
|
|
3
|
-
"name": "
|
|
4
|
-
"short_description": "Play the famous
|
|
5
|
-
"long_description": "Play the famous
|
|
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
|
}
|