{"_id":"@akashic/engine-files-reftest-helper","_rev":"8-70307a96e948df789c0d21006d5d2885","name":"@akashic/engine-files-reftest-helper","dist-tags":{"latest":"1.3.0","for_ae1x":"0.1.4","next":"1.3.0-beta.3"},"versions":{"1.2.3":{"name":"@akashic/engine-files-reftest-helper","version":"1.2.3","author":{"name":"DWANGO Co., Ltd."},"license":"MIT","_id":"@akashic/engine-files-reftest-helper@1.2.3","maintainers":[{"name":"akashic-owner","email":"akashic@dwango.co.jp"},{"name":"yu-ogi","email":"yusuke_ogiwara@dwango.co.jp"},{"name":"kmkr01","email":"charonda.sasakia@gmail.com"},{"name":"akashic-extension-owner","email":"akashic@dwango.co.jp"},{"name":"shinobu_takahashi","email":"shinobu_takahashi@c.dwango.co.jp"}],"homepage":"https://github.com/akashic-games/engine-files-reftest-helper#readme","bugs":{"url":"https://github.com/akashic-games/engine-files-reftest-helper/issues"},"dist":{"shasum":"37db5c23a1b2a82a9ac04ff5c8e6a9d3ebcab354","tarball":"https://registry.npmjs.org/@akashic/engine-files-reftest-helper/-/engine-files-reftest-helper-1.2.3.tgz","fileCount":17,"integrity":"sha512-EoFv+W59l5xdh3yI5l/DEYKF5K4TsR1Zo3G0Q2Rxqdt6hesGiGBaG1z6Q5m8knGW2jA8U2hwrkNH6H3qG3ktEA==","signatures":[{"sig":"MEUCIFsgGTaguLnjCvG9po0g8EXMqHA3GSilUKhwY/0m9WmCAiEAn38ryQZGLlAgnwO2vf28JHKGAKVPvimPXvRFGKIcx2U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11364},"main":"lib/index.js","gitHead":"4ce27e7d10f24db57d5b6f92978e44a87c457f26","scripts":{"test":"npm run lint:ts && npm run lint:md","build":"tsc -p .","lint:md":"remark ./*.md --frail --no-stdout --quiet --rc-path ./.remarkrc","lint:ts":"tslint -c tslint.json src/**/*.ts --project ./tsconfig.json","prepublish":"npm run build"},"typings":"lib/index.d.ts","_npmUser":{"name":"akashic-owner","email":"akashic@dwango.co.jp"},"repository":{"url":"git+https://github.com/akashic-games/engine-files-reftest-helper.git","type":"git"},"_npmVersion":"9.8.1","description":"engine-files-reftestでコンテンツを自動実行するためのライブラリ","directories":{},"_nodeVersion":"18.18.2","publishConfig":{"access":"public","@akashic:registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"tslint":"^5.20.1","remark-cli":"^12.0.0","typescript":"^5.3.3","@akashic/akashic-engine":"~2.6.7","@akashic/remark-preset-lint":"^0.1.2"},"_npmOperationalInternal":{"tmp":"tmp/engine-files-reftest-helper_1.2.3_1707112036087_0.9459491488407634","host":"s3://npm-registry-packages"}},"0.1.4":{"name":"@akashic/engine-files-reftest-helper","version":"0.1.4","author":{"name":"DWANGO Co., Ltd."},"license":"MIT","_id":"@akashic/engine-files-reftest-helper@0.1.4","maintainers":[{"name":"akashic-owner","email":"akashic@dwango.co.jp"},{"name":"yu-ogi","email":"yusuke_ogiwara@dwango.co.jp"},{"name":"kmkr01","email":"charonda.sasakia@gmail.com"},{"name":"akashic-extension-owner","email":"akashic@dwango.co.jp"},{"name":"shinobu_takahashi","email":"shinobu_takahashi@c.dwango.co.jp"}],"homepage":"https://github.com/akashic-games/engine-files-reftest-helper#readme","bugs":{"url":"https://github.com/akashic-games/engine-files-reftest-helper/issues"},"dist":{"shasum":"b9fca7b02249b5fbecf6c62ebca1540eb5cb1e45","tarball":"https://registry.npmjs.org/@akashic/engine-files-reftest-helper/-/engine-files-reftest-helper-0.1.4.tgz","fileCount":17,"integrity":"sha512-aK0S2ZLMVFkldHo3xgQPiiM14GqTGzelxlv2RBdF/tcsyHLU2oO2khKRR9akUqeb2MVfFxwUtzrx/YZ/NcGPeQ==","signatures":[{"sig":"MEUCIQDK3o5tZ3L5DeUgYfGD+giB9j50H5iJzmgVDt8HXas21gIgMKAL53TgxLN6f5GO75jmQvO9bk03tJi7o6X6Fjg/fEQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10487},"main":"lib/index.js","gitHead":"e532705cb34b949d3ec0c7168bc5a1b299d9d432","scripts":{"test":"npm run lint:ts && npm run lint:md","build":"tsc -p .","lint:md":"remark ./*.md --frail --no-stdout --quiet --rc-path ./.remarkrc","lint:ts":"tslint -c tslint.json src/**/*.ts --project ./tsconfig.json","prepublish":"npm run build"},"typings":"lib/index.d.ts","_npmUser":{"name":"akashic-owner","email":"akashic@dwango.co.jp"},"repository":{"url":"git+https://github.com/akashic-games/engine-files-reftest-helper.git","type":"git"},"_npmVersion":"9.8.1","description":"engine-files-reftestでコンテンツを自動実行するためのライブラリ","directories":{},"_nodeVersion":"18.18.2","publishConfig":{"tag":"for_ae1x","access":"public","@akashic:registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tslint":"^5.20.1","remark-cli":"^12.0.0","typescript":"^5.3.3","@akashic/akashic-engine":"~1.14.0","@akashic/remark-preset-lint":"^0.1.2"},"_npmOperationalInternal":{"tmp":"tmp/engine-files-reftest-helper_0.1.4_1707112456075_0.43942826159282355","host":"s3://npm-registry-packages"}},"1.3.0-beta.0":{"name":"@akashic/engine-files-reftest-helper","version":"1.3.0-beta.0","author":{"name":"DWANGO Co., Ltd."},"license":"MIT","_id":"@akashic/engine-files-reftest-helper@1.3.0-beta.0","maintainers":[{"name":"akashic-owner","email":"akashic@dwango.co.jp"},{"name":"akashic-extension-owner","email":"akashic@dwango.co.jp"}],"homepage":"https://github.com/akashic-games/engine-files-reftest-helper#readme","bugs":{"url":"https://github.com/akashic-games/engine-files-reftest-helper/issues"},"dist":{"shasum":"b6bee19709a8835eb25d17073229c3f461239e5a","tarball":"https://registry.npmjs.org/@akashic/engine-files-reftest-helper/-/engine-files-reftest-helper-1.3.0-beta.0.tgz","fileCount":21,"integrity":"sha512-YJsivVDl2Q6Ip4lLTqrs5CcwR2+iK+8Q6qAya+bhJ8KH97I38+Iw+bKH2fjAdKp33irKH3OpvVq35xkQJdENbQ==","signatures":[{"sig":"MEUCIQD+Csqy1ErY0rekbWTigtNNVp9HXeab9E6vwKwWD5Kb9wIgJy0VZkCvqYjxLMWUNJym8mhG0UiALWihQemCD567l4Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14196},"main":"lib/index.js","gitHead":"bcef6821cdb5d347aad4bb7a2f843f040886b9b3","scripts":{"test":"npm run lint:ts && npm run lint:md","build":"tsc -p .","lint:md":"remark ./*.md --frail --no-stdout --quiet --rc-path ./.remarkrc","lint:ts":"tslint -c tslint.json src/**/*.ts --project ./tsconfig.json","prepublish":"npm run build"},"typings":"lib/index.d.ts","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:5fb72c34-a272-4549-b162-74c32d539023"}},"repository":{"url":"git+https://github.com/akashic-games/engine-files-reftest-helper.git","type":"git"},"_npmVersion":"11.6.2","description":"engine-files-reftestでコンテンツを自動実行するためのライブラリ","directories":{},"_nodeVersion":"24.12.0","publishConfig":{"access":"public","@akashic:registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tslint":"^5.20.1","remark-cli":"^12.0.0","typescript":"^5.3.3","@akashic/akashic-engine":"~2.6.7","@akashic/remark-preset-lint":"^0.1.2"},"_npmOperationalInternal":{"tmp":"tmp/engine-files-reftest-helper_1.3.0-beta.0_1768892805400_0.1455335958158932","host":"s3://npm-registry-packages-npm-production"}},"1.3.0-beta.1":{"name":"@akashic/engine-files-reftest-helper","version":"1.3.0-beta.1","author":{"name":"DWANGO Co., Ltd."},"license":"MIT","_id":"@akashic/engine-files-reftest-helper@1.3.0-beta.1","maintainers":[{"name":"akashic-owner","email":"akashic@dwango.co.jp"},{"name":"akashic-extension-owner","email":"akashic@dwango.co.jp"}],"homepage":"https://github.com/akashic-games/engine-files-reftest-helper#readme","bugs":{"url":"https://github.com/akashic-games/engine-files-reftest-helper/issues"},"dist":{"shasum":"f9d14bdf9b357273ffeb005857079d94fce0720d","tarball":"https://registry.npmjs.org/@akashic/engine-files-reftest-helper/-/engine-files-reftest-helper-1.3.0-beta.1.tgz","fileCount":19,"integrity":"sha512-nEEZgI1u4tGH8QdVc/gY2cwKrvoMlWlxV6ZHynF/K0C6yMr4xOkQNyITDbNInSGRp/8Ho9P+nEgR33C12GIknA==","signatures":[{"sig":"MEQCIFU6r0Q5OQiTtw0XxZ2DPfvfucDBsCdI+zWXqE9AzL+dAiBeaYevXESkmDjGFD+xBuyqgyHRvAVyDmOzTOJfoVospw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13993},"main":"lib/index.js","gitHead":"21175919c79353a4e23ebbc06625836604beeb64","scripts":{"test":"npm run lint:ts && npm run lint:md","build":"tsc -p .","lint:md":"remark ./*.md --frail --no-stdout --quiet --rc-path ./.remarkrc","lint:ts":"tslint -c tslint.json src/**/*.ts --project ./tsconfig.json","prepublish":"npm run build"},"typings":"lib/index.d.ts","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:5fb72c34-a272-4549-b162-74c32d539023"}},"repository":{"url":"git+https://github.com/akashic-games/engine-files-reftest-helper.git","type":"git"},"_npmVersion":"11.6.2","description":"engine-files-reftestでコンテンツを自動実行するためのライブラリ","directories":{},"_nodeVersion":"24.12.0","publishConfig":{"access":"public","@akashic:registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tslint":"^5.20.1","remark-cli":"^12.0.0","typescript":"^5.3.3","@akashic/akashic-engine":"~2.6.7","@akashic/remark-preset-lint":"^0.1.2"},"_npmOperationalInternal":{"tmp":"tmp/engine-files-reftest-helper_1.3.0-beta.1_1768975000206_0.003813229669027862","host":"s3://npm-registry-packages-npm-production"}},"1.3.0-beta.2":{"name":"@akashic/engine-files-reftest-helper","version":"1.3.0-beta.2","author":{"name":"DWANGO Co., Ltd."},"license":"MIT","_id":"@akashic/engine-files-reftest-helper@1.3.0-beta.2","maintainers":[{"name":"akashic-owner","email":"akashic@dwango.co.jp"},{"name":"akashic-extension-owner","email":"akashic@dwango.co.jp"}],"homepage":"https://github.com/akashic-games/engine-files-reftest-helper#readme","bugs":{"url":"https://github.com/akashic-games/engine-files-reftest-helper/issues"},"dist":{"shasum":"c36646813a78ec8205d9e933cd26b0f1c9b4feff","tarball":"https://registry.npmjs.org/@akashic/engine-files-reftest-helper/-/engine-files-reftest-helper-1.3.0-beta.2.tgz","fileCount":19,"integrity":"sha512-pJq3kYxJwDKNtfzk23lFhH6JsTEDidyfnLYQkfezuzPnB4ly1Xvi1obMYNBRneevNVe7kymmqRNKVls1qmAb+w==","signatures":[{"sig":"MEUCIQDr9JRVLrAXgahLgEqZsKZNjrV370xq22uH5bzTTptqtgIgJWWouyF9Y8y37ANV2qtewOza8ljlUdHobD2fwMqag6Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14231},"main":"lib/index.js","gitHead":"28c00ee3ba3c084a8c005a4918ee5b9f882b06e4","scripts":{"test":"npm run lint:ts && npm run lint:md","build":"tsc -p .","lint:md":"remark ./*.md --frail --no-stdout --quiet --rc-path ./.remarkrc","lint:ts":"tslint -c tslint.json src/**/*.ts --project ./tsconfig.json","prepublish":"npm run build"},"typings":"lib/index.d.ts","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:5fb72c34-a272-4549-b162-74c32d539023"}},"repository":{"url":"git+https://github.com/akashic-games/engine-files-reftest-helper.git","type":"git"},"_npmVersion":"11.6.2","description":"engine-files-reftestでコンテンツを自動実行するためのライブラリ","directories":{},"_nodeVersion":"24.12.0","publishConfig":{"access":"public","@akashic:registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tslint":"^5.20.1","remark-cli":"^12.0.0","typescript":"^5.3.3","@akashic/akashic-engine":"~2.6.7","@akashic/remark-preset-lint":"^0.1.2"},"_npmOperationalInternal":{"tmp":"tmp/engine-files-reftest-helper_1.3.0-beta.2_1768979848248_0.6241425951230806","host":"s3://npm-registry-packages-npm-production"}},"1.3.0-beta.3":{"name":"@akashic/engine-files-reftest-helper","version":"1.3.0-beta.3","author":{"name":"DWANGO Co., Ltd."},"license":"MIT","_id":"@akashic/engine-files-reftest-helper@1.3.0-beta.3","maintainers":[{"name":"akashic-owner","email":"akashic@dwango.co.jp"},{"name":"akashic-extension-owner","email":"akashic@dwango.co.jp"}],"homepage":"https://github.com/akashic-games/engine-files-reftest-helper#readme","bugs":{"url":"https://github.com/akashic-games/engine-files-reftest-helper/issues"},"dist":{"shasum":"9e9a8fd4992873f7ec31f1ec2f82fc59a9ae58e4","tarball":"https://registry.npmjs.org/@akashic/engine-files-reftest-helper/-/engine-files-reftest-helper-1.3.0-beta.3.tgz","fileCount":17,"integrity":"sha512-ctthvqpSqXkoGRIzqNN6xOFgpWSn4dkxG+ecgCbKJhpjJvYghDc+S1vKLbiF4yQau2a2fPWXaCxKtoYdP5Aebg==","signatures":[{"sig":"MEQCIEoa7sVdwOJYMvNQg8pXY/D4x46/iN8m3fm7+kjpdxQPAiAslAU5QCWtGV62DIBPTDlfMsZdGdeZdlCRbdNa6yvbzQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13873},"main":"lib/index.js","gitHead":"465259891bd5ba7e7db9a8832678d28f2e8b0811","scripts":{"test":"npm run lint:ts && npm run lint:md","build":"tsc -p .","lint:md":"remark ./*.md --frail --no-stdout --quiet --rc-path ./.remarkrc","lint:ts":"tslint -c tslint.json src/**/*.ts --project ./tsconfig.json","prepublish":"npm run build"},"typings":"lib/index.d.ts","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:5fb72c34-a272-4549-b162-74c32d539023"}},"repository":{"url":"git+https://github.com/akashic-games/engine-files-reftest-helper.git","type":"git"},"_npmVersion":"11.6.2","description":"engine-files-reftestでコンテンツを自動実行するためのライブラリ","directories":{},"_nodeVersion":"24.12.0","publishConfig":{"access":"public","@akashic:registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tslint":"^5.20.1","remark-cli":"^12.0.0","typescript":"^5.3.3","@akashic/akashic-engine":"~2.6.7","@akashic/remark-preset-lint":"^0.1.2"},"_npmOperationalInternal":{"tmp":"tmp/engine-files-reftest-helper_1.3.0-beta.3_1769046999680_0.8497815572052805","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@akashic/engine-files-reftest-helper","version":"1.3.0","description":"engine-files-reftestでコンテンツを自動実行するためのライブラリ","main":"lib/index.js","typings":"lib/index.d.ts","scripts":{"prepublish":"npm run build","build":"tsc -p .","test":"npm run lint:ts && npm run lint:md","lint:ts":"tslint -c tslint.json src/**/*.ts --project ./tsconfig.json","lint:md":"remark ./*.md --frail --no-stdout --quiet --rc-path ./.remarkrc"},"author":{"name":"DWANGO Co., Ltd."},"license":"MIT","devDependencies":{"@akashic/akashic-engine":"~2.6.7","@akashic/remark-preset-lint":"^0.1.2","remark-cli":"^12.0.0","tslint":"^5.20.1","typescript":"^5.3.3"},"publishConfig":{"@akashic:registry":"https://registry.npmjs.org/","access":"public"},"repository":{"type":"git","url":"git+https://github.com/akashic-games/engine-files-reftest-helper.git"},"gitHead":"f4b74c85399a54467b606e2c56d30820ea143bc2","_id":"@akashic/engine-files-reftest-helper@1.3.0","bugs":{"url":"https://github.com/akashic-games/engine-files-reftest-helper/issues"},"homepage":"https://github.com/akashic-games/engine-files-reftest-helper#readme","_nodeVersion":"24.13.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-OSt4nLaC7JD9sgiIkefOsuBGdo31L7lA6ZkmUozcZOBnIdcuxJbcI87zk5IgOhcUikZdkFtgvCK4DBC8l0bDaQ==","shasum":"d0b9c540098dfa738f0b03de667cd0feb879b279","tarball":"https://registry.npmjs.org/@akashic/engine-files-reftest-helper/-/engine-files-reftest-helper-1.3.0.tgz","fileCount":17,"unpackedSize":15026,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBiELuIL3Gls5zolCzm3ky5ZzxtPH1yIyJCZooQffZvAAiBui5mDCoRN4EeB6jIGN1kc/typoSAV4miKH+DNPpCQpw=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:5fb72c34-a272-4549-b162-74c32d539023"}},"directories":{},"maintainers":[{"name":"akashic-owner","email":"akashic@dwango.co.jp"},{"name":"akashic-extension-owner","email":"akashic@dwango.co.jp"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/engine-files-reftest-helper_1.3.0_1770096676792_0.2586266327480147"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-05T05:47:16.012Z","modified":"2026-02-03T05:31:17.045Z","1.2.3":"2024-02-05T05:47:16.224Z","0.1.4":"2024-02-05T05:54:16.286Z","1.3.0-beta.0":"2026-01-20T07:06:45.557Z","1.3.0-beta.1":"2026-01-21T05:56:40.351Z","1.3.0-beta.2":"2026-01-21T07:17:28.389Z","1.3.0-beta.3":"2026-01-22T01:56:39.825Z","1.3.0":"2026-02-03T05:31:16.924Z"},"bugs":{"url":"https://github.com/akashic-games/engine-files-reftest-helper/issues"},"author":{"name":"DWANGO Co., Ltd."},"license":"MIT","homepage":"https://github.com/akashic-games/engine-files-reftest-helper#readme","repository":{"type":"git","url":"git+https://github.com/akashic-games/engine-files-reftest-helper.git"},"description":"engine-files-reftestでコンテンツを自動実行するためのライブラリ","maintainers":[{"name":"akashic-owner","email":"akashic@dwango.co.jp"},{"name":"akashic-extension-owner","email":"akashic@dwango.co.jp"}],"readme":"# engine-files-reftest-helper\n\n<p align=\"center\">\n<img src=\"https://github.com/akashic-games/engine-files-reftest-helper/blob/main/img/akashic.png\"/>\n</p>\n\n**engine-files-reftest-helper**は、engine-files-reftestでコンテンツを自動実行させるための補助ツールです。\nこのツールでできることは以下の通りです。\n* playlogのうち、MessageEventを受け取って`data.type` が `scenario` の時、`msg.data.command.name` の値に応じて処理を実行します。\n  * `msg.data.command.name` が `screenshot` の時、スクリーンショットをBASE64でエンコードした文字列を指定された形式で出力します。\n    * engine-files-reftest側で、その文字列をデコードして `msg.data.command.options.fileName` で指定されたファイル名でその画像を保存します。\n  * `msg.data.command.name` が `finish` の時、engine-files-reftest側にスクリーンショット取得処理の要求を意味する文字列を指定された形式で出力します。\n  * `msg.data.command.name` が `init` の時に、以下のように出力形式を指定することができます。\n    * `msg.data.command.options.outputType`: `console`でコンソール出力して、`post`で任意の HTTP エンドポイントに POST リクエストを送信します。出力形式はデフォルトではコンソール出力になっています。\n    * `msg.data.command.options.outputUrl`:`post`の時の送信先URLを指定します。\n* コンテンツ側で g.game.external.reftest の以下のプロパティを利用することができます。\n  * screenshot: (fileName: string, base64: string) => Promise<Response | void>\n    * 指定された画像情報を engine-files-reftest 側でスクリーンショットとして取得します\n  * finish: () => Promise<Response | void>\n    * engine-files-reftest の実行が終了します\n  * getImageDataUrlFromCanvas: () => string\n    * この関数を実行した時点でのゲーム画面のスクリーンショットを base64 形式で取得します\n  * postConsole: (param: ConsoleApiParameter) => Promise<Response>\n    * 指定したコマンドの実行ができますが、`screenshot()` や `finish()` の内部で実行されるので、通常コンテンツ側で利用する必要はありません\n  * outputType: OutputType\n    * コマンドの出力形式を参照・変更できますが、通常コンテンツ側で利用する必要はありません\n  * consoleApiUrl: string\n    * コマンド API の URL を参照・変更できますが、通常コンテンツ側で利用する必要はありません\n\n## 使い方\nengine-files-reftestのテスト対象コンテンツのディレクトリで以下のコマンドを実行します。\n\n```sh\nakashic install @akashic/engine-files-reftest-helper\n```\n\nそのコンテンツのエントリーポイントで以下のコードを追記します\n\n```javascript\nrequire(\"@akashic/engine-files-reftest-helper\");\n```\n\n## ビルド方法\n\n**engine-files-reftest-helper** はTypeScriptで書かれたjsモジュールであるため、ビルドにはNode.jsが必要です。\n\n`npm run build` によりビルドできます。\n\n```sh\nnpm install\nnpm run build\n```\n\n## テスト方法\n\n1. [TSLint](https://github.com/palantir/tslint \"TSLint\")を使ったTypeScriptファイルのLint\n2. [remark](https://remark.js.org/ \"remark\")を使ったMarkdownファイルのLint\n\nがそれぞれ実行されます。\n\n```sh\nnpm test\n```\n\n## 注意事項\n本ライブラリはブラウザ上で使うことを想定していますが、IE11等`globalThis.fetch`が無い環境では正しく動作しませんので、`globalThis.fetch`が存在する環境で本ライブラリを使用してください。\n\nTODO: `globalThis.fetch`が無い環境でも動作できるようにする\n\n## 開発者向け\n\n### 本ツールの publish について\n* 以下の手順を踏むことで publish が行われます。\n  1. package.json の version を更新したコミットを作成\n  2. 1 のコミットで master ブランチを更新する\n  3. GitHub Actions のリリースワークフローが実行される\n* package-lock.json が原因で publish に失敗した場合は、`npm i --before <実行時の7日前の日付(yyyy-mm-dd)>` を実行して package-lock.json を更新し、再度 publish 処理を行なってください。\n\n## ライセンス\n本リポジトリは MIT License の元で公開されています。\n詳しくは [LICENSE](https://github.com/akashic-games/engine-files-reftest-helper/blob/main/LICENSE) をご覧ください。\n \nただし、画像ファイルおよび音声ファイルは\n[CC BY 2.1 JP](https://creativecommons.org/licenses/by/2.1/jp/) の元で公開されています。\n","readmeFilename":"README.md"}