@scifeon/sdk 0.98.0 → 0.100.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.
|
@@ -410,6 +410,9 @@ class AppGenerator {
|
|
|
410
410
|
description: descriptionMatch !== null ? descriptionMatch[1].slice(1, -1) : null,
|
|
411
411
|
chunk: chunkMatch !== null ? chunkMatch[1].slice(1, -1) : null,
|
|
412
412
|
};
|
|
413
|
+
if (plugin.types.some(t => !t)) {
|
|
414
|
+
throw new Error(`A plugin type was not recognized in '${file.src}': ${types}. Maybe you need to update the SDK or change the platform branch?`);
|
|
415
|
+
}
|
|
413
416
|
this.contributionsJson.plugins.push(plugin);
|
|
414
417
|
}
|
|
415
418
|
}
|
package/dist/unit-test-runner.js
CHANGED
|
@@ -48,6 +48,7 @@ function unitTestRunner(options, config, appType = "sdk") {
|
|
|
48
48
|
for (const manifest of config.manifests) {
|
|
49
49
|
global[transformBundleName(manifest)] = require(path.resolve(config.wwwDir, manifest + ".bundle"));
|
|
50
50
|
}
|
|
51
|
+
global["scifeon_vendor"] = require(path.resolve(config.wwwDir, "vendor.bundle.js"));
|
|
51
52
|
nodeHook.unhook(".js");
|
|
52
53
|
const mocha = new Mocha();
|
|
53
54
|
mocha.addFile(path.resolve(config.tempDir, "test-bundle.js"));
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ParsingOptions, WorkBook } from "@scifeon/plugins/src/xlsx-types";
|
|
2
1
|
export declare class TestHelper {
|
|
3
2
|
static XLSX(): Promise<any>;
|
|
4
|
-
static fileToXLSX(filename: string, options?:
|
|
3
|
+
static fileToXLSX(filename: string, options?: any): Promise<any>;
|
|
5
4
|
}
|
|
@@ -132,7 +132,15 @@ function webpackAppConfig(env, config, appType = "sdk") {
|
|
|
132
132
|
output,
|
|
133
133
|
module: {
|
|
134
134
|
rules: [
|
|
135
|
-
{
|
|
135
|
+
{
|
|
136
|
+
test: /\.html$/i,
|
|
137
|
+
loader: "html-loader",
|
|
138
|
+
options: {
|
|
139
|
+
minimize: {
|
|
140
|
+
removeComments: false,
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
},
|
|
136
144
|
{
|
|
137
145
|
test: /\.ts$/i,
|
|
138
146
|
exclude: [
|