@wwawing/page-generator 4.0.0 → 4.0.3

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2018-2025 WWA Wing
3
+ Copyright (c) 2018-2026 WWA Wing
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -28,4 +28,5 @@ export interface Resources {
28
28
  wwaCss?: string;
29
29
  titleImage?: string;
30
30
  userVarNamesFile?: string;
31
+ pictureImageNamesFile?: string;
31
32
  }
package/lib/index.d.ts CHANGED
@@ -34,6 +34,7 @@ export interface TemplateValues {
34
34
  "data-wwa-virtualpad-viewport-fit-enable"?: string;
35
35
  "data-wwa-virtualpad-controller-elm"?: string;
36
36
  "data-wwa-user-defined-scripts-file"?: string;
37
+ "data-wwa-picture-image-names-file"?: string;
37
38
  };
38
39
  };
39
40
  debugConsoleElement?: {
package/lib/index.js CHANGED
@@ -35,7 +35,7 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.render = render;
37
37
  const pug = __importStar(require("pug"));
38
- const path = __importStar(require("path"));
38
+ const path = __importStar(require("node:path"));
39
39
  const Helper = __importStar(require("./helper"));
40
40
  function generateTemplateValues({ page, wwa, copyrights }) {
41
41
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
@@ -65,6 +65,7 @@ function generateTemplateValues({ page, wwa, copyrights }) {
65
65
  "data-wwa-virtualpad-viewport-fit-enable": Helper.toStringBooleanOptional((_r = (_q = wwa.gameOption) === null || _q === void 0 ? void 0 : _q.virtualPad) === null || _r === void 0 ? void 0 : _r.viewportFitEnable),
66
66
  "data-wwa-virtualpad-controller-elm": ((_t = (_s = wwa.gameOption) === null || _s === void 0 ? void 0 : _s.virtualPad) === null || _t === void 0 ? void 0 : _t.controllerId) ? `#${wwa.gameOption.virtualPad.controllerId}` : undefined,
67
67
  "data-wwa-user-defined-scripts-file": (_v = (_u = wwa.gameOption) === null || _u === void 0 ? void 0 : _u.wwaScript) === null || _v === void 0 ? void 0 : _v.userDefinedScriptsFile,
68
+ "data-wwa-picture-image-names-file": wwa.resources.pictureImageNamesFile,
68
69
  }
69
70
  },
70
71
  debugConsoleElement: ((_w = wwa.gameOption) === null || _w === void 0 ? void 0 : _w.debugConsole) ? { id: "wwa-debug-console-area" } : undefined,
package/lib/wwa.pug CHANGED
@@ -30,6 +30,7 @@ html(lang="ja")
30
30
  data-wwa-virtualpad-viewport-fit-enable=wwa.attributes["data-wwa-virtualpad-viewport-fit-enable"]
31
31
  data-wwa-virtualpad-controller-elm=wwa.attributes["data-wwa-virtualpad-controller-elm"]
32
32
  data-wwa-user-defined-scripts-file=wwa.attributes["data-wwa-user-defined-scripts-file"]
33
+ data-wwa-picture-image-names-file=wwa.attributes["data-wwa-picture-image-names-file"]
33
34
  )
34
35
 
35
36
  if virtualPadController
@@ -28,4 +28,5 @@ export interface Resources {
28
28
  wwaCss?: string;
29
29
  titleImage?: string;
30
30
  userVarNamesFile?: string;
31
+ pictureImageNamesFile?: string;
31
32
  }
package/module/index.d.ts CHANGED
@@ -34,6 +34,7 @@ export interface TemplateValues {
34
34
  "data-wwa-virtualpad-viewport-fit-enable"?: string;
35
35
  "data-wwa-virtualpad-controller-elm"?: string;
36
36
  "data-wwa-user-defined-scripts-file"?: string;
37
+ "data-wwa-picture-image-names-file"?: string;
37
38
  };
38
39
  };
39
40
  debugConsoleElement?: {
package/module/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as pug from "pug";
2
- import * as path from "path";
2
+ import * as path from "node:path";
3
3
  import * as Helper from "./helper";
4
4
  function generateTemplateValues({ page, wwa, copyrights }) {
5
5
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
@@ -29,6 +29,7 @@ function generateTemplateValues({ page, wwa, copyrights }) {
29
29
  "data-wwa-virtualpad-viewport-fit-enable": Helper.toStringBooleanOptional((_r = (_q = wwa.gameOption) === null || _q === void 0 ? void 0 : _q.virtualPad) === null || _r === void 0 ? void 0 : _r.viewportFitEnable),
30
30
  "data-wwa-virtualpad-controller-elm": ((_t = (_s = wwa.gameOption) === null || _s === void 0 ? void 0 : _s.virtualPad) === null || _t === void 0 ? void 0 : _t.controllerId) ? `#${wwa.gameOption.virtualPad.controllerId}` : undefined,
31
31
  "data-wwa-user-defined-scripts-file": (_v = (_u = wwa.gameOption) === null || _u === void 0 ? void 0 : _u.wwaScript) === null || _v === void 0 ? void 0 : _v.userDefinedScriptsFile,
32
+ "data-wwa-picture-image-names-file": wwa.resources.pictureImageNamesFile,
32
33
  }
33
34
  },
34
35
  debugConsoleElement: ((_w = wwa.gameOption) === null || _w === void 0 ? void 0 : _w.debugConsole) ? { id: "wwa-debug-console-area" } : undefined,
package/module/wwa.pug CHANGED
@@ -30,6 +30,7 @@ html(lang="ja")
30
30
  data-wwa-virtualpad-viewport-fit-enable=wwa.attributes["data-wwa-virtualpad-viewport-fit-enable"]
31
31
  data-wwa-virtualpad-controller-elm=wwa.attributes["data-wwa-virtualpad-controller-elm"]
32
32
  data-wwa-user-defined-scripts-file=wwa.attributes["data-wwa-user-defined-scripts-file"]
33
+ data-wwa-picture-image-names-file=wwa.attributes["data-wwa-picture-image-names-file"]
33
34
  )
34
35
 
35
36
  if virtualPadController
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wwawing/page-generator",
3
- "version": "4.0.0",
3
+ "version": "4.0.3",
4
4
  "description": "a HTML file generator for WWA Wing",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -17,7 +17,8 @@
17
17
  "build:module": "tsc -p ./tsconfig.module.json && shx cp ./src/wwa.pug ./module/wwa.pug",
18
18
  "clean": "run-s clean:*",
19
19
  "clean:lib": "shx rm -rf ./lib",
20
- "clean:module": "shx rm -rf ./module"
20
+ "clean:module": "shx rm -rf ./module",
21
+ "type-check": "tsc -p . --watch --noEmit"
21
22
  },
22
23
  "files": [
23
24
  "lib",
@@ -31,10 +32,10 @@
31
32
  "author": "WWA Wing Team",
32
33
  "license": "MIT",
33
34
  "devDependencies": {
34
- "@types/node": "^22.10.1",
35
+ "@types/node": "^24",
35
36
  "@types/pug": "^2.0.6",
36
37
  "npm-run-all2": "^8.0.1",
37
- "shelljs": "^0.9.2",
38
+ "shelljs": "^0.10.0",
38
39
  "shx": "^0.4.0",
39
40
  "typescript": "^5.8.3"
40
41
  },
@@ -45,8 +46,8 @@
45
46
  "access": "public"
46
47
  },
47
48
  "engines": {
48
- "node": ">=22",
49
+ "node": ">=24",
49
50
  "npm": ">=11"
50
51
  },
51
- "gitHead": "dd1d570673a896c26cc299f68033abcc3e867e21"
52
+ "gitHead": "c72197df927c7f0c6e16e70c9f13384567350772"
52
53
  }