@scifeon/sdk 0.119.0 → 0.121.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/dist/{core/src/types/plugins/action/action-target.d.ts → action-target.d.ts} +7 -7
- package/dist/{core/src/types/plugins/action/action-target.js → action-target.js} +11 -11
- package/dist/{sdk/src/app → app}/app-generator.d.ts +35 -35
- package/dist/{sdk/src/app → app}/app-generator.js +481 -481
- package/dist/{sdk/src/app → app}/app-persist.d.ts +18 -18
- package/dist/{sdk/src/app → app}/app-persist.js +193 -193
- package/dist/{sdk/src/app → app}/app-validator.d.ts +8 -8
- package/dist/{sdk/src/app → app}/app-validator.js +145 -145
- package/dist/{sdk/src/app → app}/interfaces/app-json.interface.d.ts +4 -4
- package/dist/{sdk/src/app → app}/interfaces/app-json.interface.js +2 -2
- package/dist/{sdk/src/app → app}/interfaces/app-type.enum.d.ts +5 -5
- package/dist/{sdk/src/app → app}/interfaces/app-type.enum.js +9 -9
- package/dist/{sdk/src/app → app}/interfaces/contributions/contributions-json.interface.d.ts +76 -76
- package/dist/{sdk/src/app → app}/interfaces/contributions/contributions-json.interface.js +2 -2
- package/dist/{sdk/src/app → app}/interfaces/contributions/main-menu.interface.d.ts +12 -12
- package/dist/{sdk/src/app → app}/interfaces/contributions/main-menu.interface.js +2 -2
- package/dist/{sdk/src/app → app}/interfaces/contributions/menu-item.interface.d.ts +5 -5
- package/dist/{sdk/src/app → app}/interfaces/contributions/menu-item.interface.js +2 -2
- package/dist/{sdk/src/app → app}/interfaces/contributions/page-menu-item.interface.d.ts +10 -10
- package/dist/{sdk/src/app → app}/interfaces/contributions/page-menu-item.interface.js +2 -2
- package/dist/{sdk/src/app → app}/interfaces/contributions/page-menu.interface.d.ts +10 -10
- package/dist/{sdk/src/app → app}/interfaces/contributions/page-menu.interface.js +2 -2
- package/dist/{sdk/src/app → app}/interfaces/package-json.interface.d.ts +14 -14
- package/dist/{sdk/src/app → app}/interfaces/package-json.interface.js +2 -2
- package/dist/{sdk/src/app → app}/interfaces/webpack-config.interface.d.ts +5 -5
- package/dist/{sdk/src/app → app}/interfaces/webpack-config.interface.js +2 -2
- package/dist/{sdk/src/cli → cli}/commands/app/build.d.ts +4 -4
- package/dist/{sdk/src/cli → cli}/commands/app/build.js +43 -43
- package/dist/{sdk/src/cli → cli}/commands/app/clean.d.ts +3 -3
- package/dist/{sdk/src/cli → cli}/commands/app/clean.js +15 -15
- package/dist/{sdk/src/cli → cli}/commands/app/debug.d.ts +3 -3
- package/dist/{sdk/src/cli → cli}/commands/app/debug.js +22 -22
- package/dist/{sdk/src/cli → cli}/commands/app/e2e-test.d.ts +3 -3
- package/dist/{sdk/src/cli → cli}/commands/app/e2e-test.js +23 -23
- package/dist/{sdk/src/cli → cli}/commands/app/new.d.ts +6 -6
- package/dist/{sdk/src/cli → cli}/commands/app/new.js +190 -190
- package/dist/{sdk/src/cli → cli}/commands/app/package.d.ts +3 -3
- package/dist/{sdk/src/cli → cli}/commands/app/package.js +10 -10
- package/dist/{sdk/src/cli → cli}/commands/app/post-process.d.ts +8 -8
- package/dist/{sdk/src/cli → cli}/commands/app/post-process.js +122 -122
- package/dist/{sdk/src/cli → cli}/commands/app/scaffold.d.ts +4 -4
- package/dist/{sdk/src/cli → cli}/commands/app/scaffold.js +19 -19
- package/dist/{sdk/src/cli → cli}/commands/app/unit-test.d.ts +3 -3
- package/dist/{sdk/src/cli → cli}/commands/app/unit-test.js +11 -11
- package/dist/{sdk/src/cli → cli}/commands/app/validate.d.ts +3 -3
- package/dist/{sdk/src/cli → cli}/commands/app/validate.js +20 -20
- package/dist/{sdk/src/cli → cli}/commands/app/version.d.ts +3 -3
- package/dist/{sdk/src/cli → cli}/commands/app/version.js +17 -17
- package/dist/{sdk/src/cli → cli}/commands/app/watch.d.ts +3 -3
- package/dist/{sdk/src/cli → cli}/commands/app/watch.js +48 -48
- package/dist/{sdk/src/cli → cli}/commands/scifeon/download.d.ts +3 -3
- package/dist/{sdk/src/cli → cli}/commands/scifeon/download.js +48 -48
- package/dist/{sdk/src/cli → cli}/commands/scifeon/run.d.ts +3 -3
- package/dist/{sdk/src/cli → cli}/commands/scifeon/run.js +41 -41
- package/dist/{sdk/src/cli → cli}/config.d.ts +11 -11
- package/dist/{sdk/src/cli → cli}/config.js +23 -23
- package/dist/{sdk/src/cli → cli}/index.d.ts +9 -9
- package/dist/{sdk/src/cli → cli}/index.js +159 -159
- package/dist/{sdk/src/cli → cli}/webpack-runner.d.ts +1 -1
- package/dist/{sdk/src/cli → cli}/webpack-runner.js +26 -26
- package/dist/{sdk/src/download-utils.d.ts → download-utils.d.ts} +3 -3
- package/dist/{sdk/src/download-utils.js → download-utils.js} +51 -51
- package/dist/{sdk/src/file-utils.d.ts → file-utils.d.ts} +5 -5
- package/dist/{sdk/src/file-utils.js → file-utils.js} +41 -41
- package/dist/{sdk/src/html-report.d.ts → html-report.d.ts} +15 -15
- package/dist/{sdk/src/html-report.js → html-report.js} +212 -212
- package/dist/{sdk/src/index.d.ts → index.d.ts} +2 -2
- package/dist/{sdk/src/index.js → index.js} +23 -23
- package/dist/{sdk/src/logger.d.ts → logger.d.ts} +14 -14
- package/dist/{sdk/src/logger.js → logger.js} +52 -52
- package/dist/{sdk/src/measurement-units.d.ts → measurement-units.d.ts} +5 -5
- package/dist/{sdk/src/measurement-units.js → measurement-units.js} +9 -9
- package/dist/{core/src/types/plugins/common/enums/page-types.d.ts → page-types.d.ts} +6 -6
- package/dist/{core/src/types/plugins/common/enums/page-types.js → page-types.js} +10 -10
- package/dist/{core/src/types/plugins/common/enums/plugin-types.d.ts → plugin-types.d.ts} +53 -52
- package/dist/{core/src/types/plugins/common/enums/plugin-types.js → plugin-types.js} +57 -56
- package/dist/{sdk/src/unit-test-runner.d.ts → unit-test-runner.d.ts} +1 -1
- package/dist/{sdk/src/unit-test-runner.js → unit-test-runner.js} +82 -82
- package/dist/{sdk/src/utils → utils}/test-helper.d.ts +5 -5
- package/dist/{sdk/src/utils → utils}/test-helper.js +56 -56
- package/dist/{sdk/src/webpack-app-config.d.ts → webpack-app-config.d.ts} +2 -2
- package/dist/{sdk/src/webpack-app-config.js → webpack-app-config.js} +248 -251
- package/dist/{sdk/src/webpack-utils.d.ts → webpack-utils.d.ts} +8 -8
- package/dist/{sdk/src/webpack-utils.js → webpack-utils.js} +91 -91
- package/package.json +72 -79
- package/resources/new-app/README.md +12 -12
- package/resources/new-app/editor/.vscode/launch.json +40 -40
- package/resources/new-app/gitignore.txt +6 -6
- package/resources/new-app/typescript/src/index.html +14 -14
- package/resources/new-app/typescript/src/index.ts +32 -32
- package/resources/new-app/typescript/test/e2e/frontpage.test.ts +16 -16
- package/resources/new-app/typescript/test/e2e-config.ts +14 -14
- package/resources/new-app/typescript/test/unit/index.test.ts +7 -7
- package/resources/new-app/typescript/tsconfig.json +39 -39
- package/resources/scaffold-templates/scaffold-e2e-test.ts +19 -19
- package/resources/test/chai.js +10706 -10706
- package/resources/test/mocha.css +326 -326
- package/resources/test/mocha.js +16590 -16590
- package/resources/test/tests.html +26 -26
- package/dist/sdk/src/utils/index.d.ts +0 -1
- package/dist/sdk/src/utils/index.js +0 -17
- package/src/utils/index.ts +0 -1
- package/src/utils/test-helper.ts +0 -56
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<title>App tests: <%APP_TITLE%></title>
|
|
5
|
-
<link rel="stylesheet" href="mocha.css" />
|
|
6
|
-
</head>
|
|
7
|
-
<body>
|
|
8
|
-
<div style="padding: 25px; background-color:lightblue;font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;">
|
|
9
|
-
App tests: <%APP_TITLE%>
|
|
10
|
-
</div>
|
|
11
|
-
<div id="mocha"></div>
|
|
12
|
-
<script src="mocha.js"></script>
|
|
13
|
-
<script src="chai.js"></script>
|
|
14
|
-
<script src="../../runtime/scifeon/wwwroot/dist/vendor.bundle.js" charset="UTF-8"></script>
|
|
15
|
-
<script src="../../runtime/scifeon/wwwroot/dist/scifeon.bundle.js" charset="UTF-8"></script>
|
|
16
|
-
<script src="../../runtime/scifeon/wwwroot/dist/scifeon-ui.bundle.js" charset="UTF-8"></script>
|
|
17
|
-
<script>
|
|
18
|
-
mocha.ui('bdd');
|
|
19
|
-
mocha.reporter('html');
|
|
20
|
-
var expect = chai.expect;
|
|
21
|
-
</script>
|
|
22
|
-
<script src="test-bundle.js" charset="UTF-8"></script>
|
|
23
|
-
<script>
|
|
24
|
-
var runner = mocha.run();
|
|
25
|
-
</script>
|
|
26
|
-
</body>
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title>App tests: <%APP_TITLE%></title>
|
|
5
|
+
<link rel="stylesheet" href="mocha.css" />
|
|
6
|
+
</head>
|
|
7
|
+
<body>
|
|
8
|
+
<div style="padding: 25px; background-color:lightblue;font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;">
|
|
9
|
+
App tests: <%APP_TITLE%>
|
|
10
|
+
</div>
|
|
11
|
+
<div id="mocha"></div>
|
|
12
|
+
<script src="mocha.js"></script>
|
|
13
|
+
<script src="chai.js"></script>
|
|
14
|
+
<script src="../../runtime/scifeon/wwwroot/dist/vendor.bundle.js" charset="UTF-8"></script>
|
|
15
|
+
<script src="../../runtime/scifeon/wwwroot/dist/scifeon.bundle.js" charset="UTF-8"></script>
|
|
16
|
+
<script src="../../runtime/scifeon/wwwroot/dist/scifeon-ui.bundle.js" charset="UTF-8"></script>
|
|
17
|
+
<script>
|
|
18
|
+
mocha.ui('bdd');
|
|
19
|
+
mocha.reporter('html');
|
|
20
|
+
var expect = chai.expect;
|
|
21
|
+
</script>
|
|
22
|
+
<script src="test-bundle.js" charset="UTF-8"></script>
|
|
23
|
+
<script>
|
|
24
|
+
var runner = mocha.run();
|
|
25
|
+
</script>
|
|
26
|
+
</body>
|
|
27
27
|
</html>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./test-helper";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./test-helper"), exports);
|
package/src/utils/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./test-helper";
|
package/src/utils/test-helper.ts
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
// import { ParsingOptions, WorkBook } from "@scifeon/plugins/src/xlsx-types";
|
|
2
|
-
import * as fs from "fs";
|
|
3
|
-
import fetch from "node-fetch";
|
|
4
|
-
|
|
5
|
-
// const XLSX_URL = "https://unpkg.com/xlsx/dist/xlsx.full.min.js";
|
|
6
|
-
const XLSX_URL = "https://cdn.sheetjs.com/xlsx-0.20.0/package/dist/xlsx.full.min.js";
|
|
7
|
-
|
|
8
|
-
const requireCache = {};
|
|
9
|
-
|
|
10
|
-
const requireURL = async (url: string) => {
|
|
11
|
-
let script: string;
|
|
12
|
-
|
|
13
|
-
if (requireCache[url]) {
|
|
14
|
-
script = requireCache[url];
|
|
15
|
-
} else {
|
|
16
|
-
const response = await fetch(url);
|
|
17
|
-
script = await response.text();
|
|
18
|
-
requireCache[url] = script;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
const m = module as any;
|
|
22
|
-
|
|
23
|
-
const _module = new m.constructor();
|
|
24
|
-
_module.filename = url;
|
|
25
|
-
_module._compile(script, url);
|
|
26
|
-
|
|
27
|
-
return _module.exports;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export class TestHelper {
|
|
31
|
-
public static async XLSX() {
|
|
32
|
-
return requireURL(XLSX_URL);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
public static async fileToXLSX(filename: string, options: any/* ParsingOptions*/ = { cellDates: true })
|
|
36
|
-
: Promise<any/* WorkBook*/> {
|
|
37
|
-
const xlsx = await TestHelper.XLSX();
|
|
38
|
-
|
|
39
|
-
return xlsx.read(fs.readFileSync(filename), options);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
public static async csvToXLSX(csv: any[][], options: any/* ParsingOptions*/ = { cellDates: true })
|
|
43
|
-
: Promise<any/* WorkBook*/> {
|
|
44
|
-
const xlsx = await TestHelper.XLSX();
|
|
45
|
-
|
|
46
|
-
const wb = xlsx.utils.book_new();
|
|
47
|
-
|
|
48
|
-
wb.SheetNames.push("Sheet1");
|
|
49
|
-
|
|
50
|
-
const ws = xlsx.utils.aoa_to_sheet(csv, { ...options });
|
|
51
|
-
|
|
52
|
-
wb.Sheets.Sheet1 = ws;
|
|
53
|
-
|
|
54
|
-
return wb;
|
|
55
|
-
}
|
|
56
|
-
}
|