@saltcorn/cli 1.5.0-beta.12 → 1.5.0-beta.14

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.
@@ -258,6 +258,19 @@
258
258
  "allowNo": false,
259
259
  "type": "boolean"
260
260
  },
261
+ "pushSync": {
262
+ "description": "When offline mode is enabled, synchronize the synchedTables tables when a push notification is received.",
263
+ "name": "pushSync",
264
+ "allowNo": false,
265
+ "type": "boolean"
266
+ },
267
+ "syncInterval": {
268
+ "description": "Perdiodic interval (in minutes) to run synchronizations in the background. This is just a min interval, depending on system conditions, the actual time may be longer.",
269
+ "name": "syncInterval",
270
+ "hasDynamicHelp": false,
271
+ "multiple": false,
272
+ "type": "option"
273
+ },
261
274
  "provisioningProfile": {
262
275
  "description": "This profile will be used to sign your app",
263
276
  "name": "provisioningProfile",
@@ -2253,5 +2266,5 @@
2253
2266
  ]
2254
2267
  }
2255
2268
  },
2256
- "version": "1.5.0-beta.12"
2269
+ "version": "1.5.0-beta.14"
2257
2270
  }
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.5.0-beta.12",
5
+ "version": "1.5.0-beta.14",
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.5.0-beta.12",
15
- "@saltcorn/common-code": "1.5.0-beta.12",
16
- "@saltcorn/data": "1.5.0-beta.12",
17
- "@saltcorn/mobile-app": "1.5.0-beta.12",
18
- "@saltcorn/mobile-builder": "1.5.0-beta.12",
19
- "@saltcorn/plugins-loader": "1.5.0-beta.12",
20
- "@saltcorn/server": "1.5.0-beta.12",
14
+ "@saltcorn/admin-models": "1.5.0-beta.14",
15
+ "@saltcorn/common-code": "1.5.0-beta.14",
16
+ "@saltcorn/data": "1.5.0-beta.14",
17
+ "@saltcorn/mobile-app": "1.5.0-beta.14",
18
+ "@saltcorn/mobile-builder": "1.5.0-beta.14",
19
+ "@saltcorn/plugins-loader": "1.5.0-beta.14",
20
+ "@saltcorn/server": "1.5.0-beta.14",
21
21
  "contractis": "^0.1.0",
22
22
  "dateformat": "^4.6.3",
23
23
  "inquirer": "^12.3.3",
@@ -137,6 +137,8 @@ class BuildAppCommand extends Command {
137
137
  autoPublicLogin: flags.autoPublicLogin,
138
138
  showContinueAsPublicUser: flags.showContinueAsPublicUser,
139
139
  allowOfflineMode: flags.allowOfflineMode,
140
+ pushSync: flags.pushSync,
141
+ syncInterval: flags.syncInterval,
140
142
  allowShareTo: flags.allowShareTo,
141
143
  plugins: await this.uniquePlugins(flags.includedPlugins),
142
144
  copyTargetDir: flags.copyAppDirectory,
@@ -314,6 +316,19 @@ BuildAppCommand.flags = {
314
316
  description:
315
317
  "Switch to offline mode when there is no internet, sync the data when a connection is available again.",
316
318
  }),
319
+ pushSync: Flags.boolean({
320
+ name: "Push sync",
321
+ string: "pushSync",
322
+ description:
323
+ "When offline mode is enabled, synchronize the synchedTables tables when a push notification is received.",
324
+ }),
325
+ syncInterval: Flags.string({
326
+ name: "Periodic Sync Interval",
327
+ string: "syncInterval",
328
+ description:
329
+ "Perdiodic interval (in minutes) to run synchronizations in the background. " +
330
+ "This is just a min interval, depending on system conditions, the actual time may be longer.",
331
+ }),
317
332
  provisioningProfile: Flags.string({
318
333
  name: "provisioning profile",
319
334
  string: "provisioningProfile",