@saltcorn/mobile-builder 1.6.1-beta.0 → 1.7.0-alpha.0

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/package.json CHANGED
@@ -3,20 +3,22 @@
3
3
  "description": "plugin to to build a mobile app from a tenant application",
4
4
  "homepage": "https://saltcorn.com",
5
5
  "repository": "github:saltcorn/saltcorn",
6
- "version": "1.6.1-beta.0",
6
+ "version": "1.7.0-alpha.0",
7
7
  "author": "Christian Hugo",
8
8
  "scripts": {
9
- "test": "jest ./tests/ --runInBand",
9
+ "test": "cd dist && node --test",
10
+ "tsc": "tsc -p tsconfig.json",
11
+ "clean": "rm -rf ./dist/*",
10
12
  "build": "webpack --mode development"
11
13
  },
12
14
  "dependencies": {
13
- "@saltcorn/markup": "1.6.1-beta.0",
14
- "@saltcorn/data": "1.6.1-beta.0",
15
- "@saltcorn/db-common": "1.6.1-beta.0",
16
- "@saltcorn/server": "1.6.1-beta.0",
17
- "@saltcorn/base-plugin": "1.6.1-beta.0",
18
- "@saltcorn/sbadmin2": "1.6.1-beta.0",
19
- "@saltcorn/mobile-app": "1.6.1-beta.0",
15
+ "@saltcorn/markup": "1.7.0-alpha.0",
16
+ "@saltcorn/data": "1.7.0-alpha.0",
17
+ "@saltcorn/db-common": "1.7.0-alpha.0",
18
+ "@saltcorn/server": "1.7.0-alpha.0",
19
+ "@saltcorn/base-plugin": "1.7.0-alpha.0",
20
+ "@saltcorn/sbadmin2": "1.7.0-alpha.0",
21
+ "@saltcorn/mobile-app": "1.7.0-alpha.0",
20
22
  "fs-extra": "^11.3.3",
21
23
  "live-plugin-manager": "^1.0.0",
22
24
  "resize-with-sharp-or-jimp": "0.1.9",
@@ -28,23 +30,7 @@
28
30
  "devDependencies": {
29
31
  "@types/node": "^20.14.7",
30
32
  "@types/fs-extra": "^11.0.4",
31
- "@types/xml2js": "0.4.14",
32
- "jest": "29.7.0",
33
- "ts-jest": "^29.2.5",
34
- "@types/jest": "^29.5.14"
35
- },
36
- "jest": {
37
- "preset": "ts-jest",
38
- "testEnvironment": "node",
39
- "modulePathIgnorePatterns": [
40
- ".*\\.js$"
41
- ],
42
- "moduleNameMapper": {
43
- "@saltcorn/sqlite/(.*)": "<rootDir>/../sqlite/dist/$1",
44
- "@saltcorn/db-common/(.*)": "<rootDir>/../db-common/dist/$1",
45
- "@saltcorn/data/(.*)": "<rootDir>/../saltcorn-data/dist/$1",
46
- "@saltcorn/types/(.*)": "<rootDir>/../saltcorn-types/dist/$1"
47
- }
33
+ "@types/xml2js": "0.4.14"
48
34
  },
49
35
  "main": "./dist/index.js",
50
36
  "exports": {
package/webpack.config.js CHANGED
@@ -2,26 +2,28 @@ const { mergeWithCustomize, merge } = require("webpack-merge");
2
2
  const { join } = require("path");
3
3
  const Plugin = require("@saltcorn/data/models/plugin");
4
4
 
5
- const dataCfg = require(join(
6
- require.resolve("@saltcorn/data"),
7
- "../..",
8
- "webpack.config"
9
- ));
10
- const markupCfg = require(join(
11
- require.resolve("@saltcorn/markup"),
12
- "../..",
13
- "webpack.config"
14
- ));
15
- const basePluginCfg = require(join(
16
- require.resolve("@saltcorn/base-plugin"),
17
- "../",
18
- "webpack.config"
19
- ));
20
- const sbAdmin2Cfg = require(join(
21
- require.resolve("@saltcorn/sbadmin2"),
22
- "../",
23
- "webpack.config"
24
- ));
5
+ const dataCfg = require(
6
+ join(
7
+ require.resolve("@saltcorn/data"),
8
+ "../..",
9
+ // @saltcorn/data is ESM ("type": "module"), so its webpack config is .cjs
10
+ "webpack.config.cjs"
11
+ )
12
+ );
13
+ const markupCfg = require(
14
+ join(
15
+ require.resolve("@saltcorn/markup"),
16
+ "../..",
17
+ // @saltcorn/markup is ESM ("type": "module"), so its webpack config is .cjs
18
+ "webpack.config.cjs"
19
+ )
20
+ );
21
+ const basePluginCfg = require(
22
+ join(require.resolve("@saltcorn/base-plugin"), "../", "webpack.config")
23
+ );
24
+ const sbAdmin2Cfg = require(
25
+ join(require.resolve("@saltcorn/sbadmin2"), "../", "webpack.config")
26
+ );
25
27
 
26
28
  const addDependOn = (dataEntryPoint, b) => {
27
29
  const copy = { ...dataEntryPoint };