test-bdk-cli 0.1.13 → 0.1.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.
- package/README.md +2 -2
- package/dist/commands/create.js +17 -3
- package/package.json +3 -2
- package/templates/default/README.md +14 -0
- package/templates/default/manifest.json +22 -0
- package/templates/{react → default}/package.json +2 -2
- package/dist/sample-react-app-0.1.0.zip +0 -0
- package/templates/react/README.md +0 -3
- package/templates/react/manifest.json +0 -8
- /package/templates/{react → default}/assets/iframe.html +0 -0
- /package/templates/{react → default}/assets/logo-small.svg +0 -0
- /package/templates/{react → default}/assets/logo.svg +0 -0
- /package/templates/{react → default}/translations/en.json +0 -0
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
#
|
|
1
|
+
# App template
|
|
2
2
|
|
|
3
|
-
This is a minimal
|
|
3
|
+
This is a minimal template for apps. Use `bdk apps:new my-app` to scaffold.
|
package/dist/commands/create.js
CHANGED
|
@@ -17,7 +17,7 @@ function registerCreate(program) {
|
|
|
17
17
|
program
|
|
18
18
|
.command('apps:new [appDirectories...]')
|
|
19
19
|
.description('Scaffold one or more new app projects (usage: apps:new ./appName)')
|
|
20
|
-
.option('--template <template>', 'template name', '
|
|
20
|
+
.option('--template <template>', 'template name', 'default')
|
|
21
21
|
.option('--path <dir>', 'base path for created directories', '.')
|
|
22
22
|
.option('--force', 'overwrite if exists', false)
|
|
23
23
|
.option('--git', 'initialize a git repository', false)
|
|
@@ -160,8 +160,22 @@ function registerCreate(program) {
|
|
|
160
160
|
if (!fs_1.default.existsSync(manifestPath)) {
|
|
161
161
|
const defaultManifest = {
|
|
162
162
|
name: appName,
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
author: {
|
|
164
|
+
name: '',
|
|
165
|
+
email: ''
|
|
166
|
+
},
|
|
167
|
+
defaultLocale: 'en',
|
|
168
|
+
private: true,
|
|
169
|
+
location: {
|
|
170
|
+
support: {
|
|
171
|
+
ticket_sidebar: {
|
|
172
|
+
url: 'assets/iframe.html',
|
|
173
|
+
flexible: true
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
version: '1.0.0',
|
|
178
|
+
frameworkVersion: '2.0',
|
|
165
179
|
description: '',
|
|
166
180
|
main: 'dist/index.html',
|
|
167
181
|
permissions: []
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "test-bdk-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
4
4
|
"description": "test CLI",
|
|
5
5
|
"author": "@raisulaslam",
|
|
6
6
|
"bin": {
|
|
@@ -21,7 +21,8 @@
|
|
|
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"
|
|
24
|
+
"node-fetch": "^2.6.7",
|
|
25
|
+
"test-bdk-cli": "^0.1.13"
|
|
25
26
|
},
|
|
26
27
|
"devDependencies": {
|
|
27
28
|
"@types/archiver": "^7.0.0",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# App name
|
|
2
|
+
|
|
3
|
+
[brief description of the app]
|
|
4
|
+
|
|
5
|
+
### The following information is displayed:
|
|
6
|
+
|
|
7
|
+
* info1
|
|
8
|
+
* info2
|
|
9
|
+
* info3
|
|
10
|
+
|
|
11
|
+
Please submit bug reports to [Insert Link](). Pull requests are welcome.
|
|
12
|
+
|
|
13
|
+
### Screenshot(s):
|
|
14
|
+
[put your screenshots down here.]
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "sample-app",
|
|
3
|
+
"author": {
|
|
4
|
+
"name": "Your Name",
|
|
5
|
+
"email": ""
|
|
6
|
+
},
|
|
7
|
+
"defaultLocale": "en",
|
|
8
|
+
"private": true,
|
|
9
|
+
"location": {
|
|
10
|
+
"support": {
|
|
11
|
+
"ticket_sidebar": {
|
|
12
|
+
"url": "assets/iframe.html",
|
|
13
|
+
"flexible": true
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"version": "1.0.0",
|
|
18
|
+
"frameworkVersion": "2.0",
|
|
19
|
+
"description": "A sample Node.js BoldDesk app",
|
|
20
|
+
"main": "dist/index.html",
|
|
21
|
+
"permissions": []
|
|
22
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "sample-
|
|
2
|
+
"name": "sample-app",
|
|
3
3
|
"version": "0.1.0",
|
|
4
|
-
"description": "Sample
|
|
4
|
+
"description": "Sample app scaffolded by bdk",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "echo \"No start script defined\" && exit 0",
|
|
7
7
|
"build": "echo \"No build script defined\" && exit 0",
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|