@effindomv2/create-fui-as-app 0.1.1 → 0.1.2

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.
@@ -5,7 +5,7 @@ function formatJson(value) {
5
5
  function renderPackageJson(context) {
6
6
  return formatJson({
7
7
  name: context.packageName,
8
- version: "0.1.1",
8
+ version: "0.1.2",
9
9
  private: true,
10
10
  type: "module",
11
11
  scripts: {
@@ -149,7 +149,11 @@ const indexHtml = `<!doctype html>
149
149
  <main data-effindom-canvas-size-source>
150
150
  <canvas id="fui-canvas"></canvas>
151
151
  </main>
152
- <script src="./effindom-runtime-config.js"></script>
152
+ <script>
153
+ window.__effindomRuntime = Object.assign({}, window.__effindomRuntime, {
154
+ manifestUrl: "./runtime/dist/effindom.v2.manifest.json",
155
+ });
156
+ </script>
153
157
  <script src="./runtime/dist/bridge.js"></script>
154
158
  <script type="module" src="./harness.js"></script>
155
159
  </body>
@@ -188,7 +192,7 @@ const tsconfigJson = `{
188
192
  "include": ["src/**/*.ts"]
189
193
  }
190
194
  `;
191
- const prepareRuntimeMjs = `import { copyFileSync, cpSync, mkdirSync, rmSync, writeFileSync } from "node:fs";
195
+ const prepareRuntimeMjs = `import { copyFileSync, cpSync, mkdirSync, rmSync } from "node:fs";
192
196
 
193
197
  const outputDir = "public";
194
198
  rmSync(outputDir, { recursive: true, force: true });
@@ -196,9 +200,6 @@ mkdirSync(\`\${outputDir}/runtime\`, { recursive: true });
196
200
 
197
201
  cpSync("node_modules/@effindomv2/runtime/dist", \`\${outputDir}/runtime/dist\`, { recursive: true });
198
202
  copyFileSync("index.html", \`\${outputDir}/index.html\`);
199
-
200
- const runtimeConfig = \`window.__effindomRuntime = Object.assign({}, window.__effindomRuntime, {\\\\n manifestUrl: "./runtime/dist/effindom.v2.manifest.json",\\\\n});\\\\n\`;
201
- writeFileSync(\`\${outputDir}/effindom-runtime-config.js\`, runtimeConfig, "utf8");
202
203
  `;
203
204
  const smokeMjs = `import { accessSync } from "node:fs";
204
205
 
@@ -206,7 +207,6 @@ const expectedFiles = [
206
207
  "public/index.html",
207
208
  "public/harness.js",
208
209
  "public/app.wasm",
209
- "public/effindom-runtime-config.js",
210
210
  "public/runtime/dist/bridge.js",
211
211
  "public/runtime/dist/effindom.v2.manifest.json",
212
212
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effindomv2/create-fui-as-app",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "description": "Scaffold a minimal EffinDom v2 FUI-AS app",