@saltcorn/cli 1.6.0-alpha.4 → 1.6.0-alpha.6
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 +57 -55
- package/npm-shrinkwrap.json +372 -348
- package/oclif.manifest.json +8 -1
- package/package.json +8 -8
- package/src/commands/build-app.js +7 -0
- package/src/commands/dev/plugin-test.js +2 -1
package/oclif.manifest.json
CHANGED
|
@@ -303,6 +303,13 @@
|
|
|
303
303
|
"multiple": false,
|
|
304
304
|
"type": "option"
|
|
305
305
|
},
|
|
306
|
+
"appGroupId": {
|
|
307
|
+
"description": "An app group identifier to share data between the main app and the share extension on iOS, e.g. group.com.saltcorn.myapp",
|
|
308
|
+
"name": "appGroupId",
|
|
309
|
+
"hasDynamicHelp": false,
|
|
310
|
+
"multiple": false,
|
|
311
|
+
"type": "option"
|
|
312
|
+
},
|
|
306
313
|
"buildType": {
|
|
307
314
|
"description": "debug or release build",
|
|
308
315
|
"name": "buildType",
|
|
@@ -2413,5 +2420,5 @@
|
|
|
2413
2420
|
]
|
|
2414
2421
|
}
|
|
2415
2422
|
},
|
|
2416
|
-
"version": "1.6.0-alpha.
|
|
2423
|
+
"version": "1.6.0-alpha.6"
|
|
2417
2424
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@saltcorn/cli",
|
|
3
3
|
"description": "Command-line interface for Saltcorn, open-source no-code platform",
|
|
4
4
|
"homepage": "https://saltcorn.com",
|
|
5
|
-
"version": "1.6.0-alpha.
|
|
5
|
+
"version": "1.6.0-alpha.6",
|
|
6
6
|
"author": "Tom Nielsen @glutamate",
|
|
7
7
|
"bin": {
|
|
8
8
|
"saltcorn": "./bin/saltcorn"
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@oclif/core": "4.4.0",
|
|
13
13
|
"@oclif/plugin-plugins": "^5.4.26",
|
|
14
|
-
"@saltcorn/admin-models": "1.6.0-alpha.
|
|
15
|
-
"@saltcorn/common-code": "1.6.0-alpha.
|
|
16
|
-
"@saltcorn/data": "1.6.0-alpha.
|
|
17
|
-
"@saltcorn/mobile-app": "1.6.0-alpha.
|
|
18
|
-
"@saltcorn/mobile-builder": "1.6.0-alpha.
|
|
19
|
-
"@saltcorn/plugins-loader": "1.6.0-alpha.
|
|
20
|
-
"@saltcorn/server": "1.6.0-alpha.
|
|
14
|
+
"@saltcorn/admin-models": "1.6.0-alpha.6",
|
|
15
|
+
"@saltcorn/common-code": "1.6.0-alpha.6",
|
|
16
|
+
"@saltcorn/data": "1.6.0-alpha.6",
|
|
17
|
+
"@saltcorn/mobile-app": "1.6.0-alpha.6",
|
|
18
|
+
"@saltcorn/mobile-builder": "1.6.0-alpha.6",
|
|
19
|
+
"@saltcorn/plugins-loader": "1.6.0-alpha.6",
|
|
20
|
+
"@saltcorn/server": "1.6.0-alpha.6",
|
|
21
21
|
"contractis": "^0.1.0",
|
|
22
22
|
"dateformat": "^4.6.3",
|
|
23
23
|
"inquirer": "^12.3.3",
|
|
@@ -93,6 +93,7 @@ class BuildAppCommand extends Command {
|
|
|
93
93
|
guuid: shareExtProfileVals.guuid,
|
|
94
94
|
specifier: shareExtProfileVals.specifier,
|
|
95
95
|
identifier: shareExtProfileVals.identifier,
|
|
96
|
+
...(flags.appGroupId ? { appGroupId: flags.appGroupId } : {}),
|
|
96
97
|
};
|
|
97
98
|
}
|
|
98
99
|
}
|
|
@@ -365,6 +366,12 @@ BuildAppCommand.flags = {
|
|
|
365
366
|
description:
|
|
366
367
|
"This profile will be used to sign your share extension on iOS",
|
|
367
368
|
}),
|
|
369
|
+
appGroupId: Flags.string({
|
|
370
|
+
name: "app group id",
|
|
371
|
+
string: "appGroupId",
|
|
372
|
+
description:
|
|
373
|
+
"An app group identifier to share data between the main app and the share extension on iOS, e.g. group.com.saltcorn.myapp",
|
|
374
|
+
}),
|
|
368
375
|
buildType: Flags.string({
|
|
369
376
|
name: "build type",
|
|
370
377
|
string: "buildType",
|
|
@@ -17,7 +17,8 @@ const removePluginsDir = () => {
|
|
|
17
17
|
|
|
18
18
|
const writeJestConfigIntoPluginDir = (location, plugin) => {
|
|
19
19
|
const state = getState();
|
|
20
|
-
const
|
|
20
|
+
const modName = state.plugin_module_names[plugin.name];
|
|
21
|
+
const module = state.plugins[modName];
|
|
21
22
|
fs.writeFileSync(
|
|
22
23
|
path.join(location, "jest.config.js"),
|
|
23
24
|
`const sqliteDir = process.env.JEST_SC_SQLITE_DIR;
|