{"id":45616420,"url":"https://github.com/leoweyr/legacy-script-engine-scaffold","last_synced_at":"2026-02-23T18:15:37.589Z","repository":{"id":274159977,"uuid":"922085743","full_name":"leoweyr/legacy-script-engine-scaffold","owner":"leoweyr","description":"A utility for assisting in the development of Legacy Script Engine plugins, supporting a native development experience on the Node.js platform.","archived":false,"fork":false,"pushed_at":"2026-02-21T06:51:27.000Z","size":92,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2026-02-21T13:37:22.303Z","etag":null,"topics":["bedrock-dedicated-server","cli","levilamina","minecraft","nodejs","npm","npx","scaffold","utility"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/legacy-script-engine-scaffold","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leoweyr.png","metadata":{"files":{"readme":"README-zh_cn.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-25T09:25:21.000Z","updated_at":"2026-02-21T06:51:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"235ceb1a-98ae-4fc4-b6df-2cf236e6d465","html_url":"https://github.com/leoweyr/legacy-script-engine-scaffold","commit_stats":null,"previous_names":["leoweyr/lsescaffold","leoweyr/legacyscriptengine_scaffold","leoweyr/legacy-script-engine-scaffold"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/leoweyr/legacy-script-engine-scaffold","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoweyr%2Flegacy-script-engine-scaffold","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoweyr%2Flegacy-script-engine-scaffold/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoweyr%2Flegacy-script-engine-scaffold/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoweyr%2Flegacy-script-engine-scaffold/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leoweyr","download_url":"https://codeload.github.com/leoweyr/legacy-script-engine-scaffold/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoweyr%2Flegacy-script-engine-scaffold/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29750170,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:44:07.782Z","status":"ssl_error","status_checked_at":"2026-02-23T07:44:07.432Z","response_time":90,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bedrock-dedicated-server","cli","levilamina","minecraft","nodejs","npm","npx","scaffold","utility"],"created_at":"2026-02-23T18:15:37.063Z","updated_at":"2026-02-23T18:15:37.542Z","avatar_url":"https://github.com/leoweyr.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Legacy Script Engine Scaffold\n\n#### [English](README.md) | 简体中文\n\n支持 Node.js 平台原生体验、辅助 Legacy Script Engine 插件开发的脚手架工具。\n\n\u003e 当前仅支持 TypeScript 项目\n\n## 📦 准备工作\n\n这是一个非侵入式工具，它不会在你的项目中保留任何强制性配置文件。建议将其添加为项目的开发依赖以方便在环境中使用：\n\n```bash\nnpm install @levimc-lse/scaffold --save-dev\n```\n\n## 🚀 使用方法\n\n### 生成 Legacy Script Engine 插件的 manifest.json 文件\n\n```bash\nnpx lses manifest\n```\n\n### 打包 Legacy Script Engine 插件\n\n```bash\nnpx lses pack\n```\n\n### 根据路径将 Legacy Script Engine 插件包部署到 LeviLamina 服务器\n\n```bash\nnpx lses deploy-path \u003cpath\u003e [options]\n```\n\n| 必须参数 | 作用                           | 类型   |\n| ------------- | --------------------------------- | ------ |\n| `\u003cpath\u003e`      | 根据工作目录指定对应 LeviLamina 服务器 | 字符串 |\n\n| 可选参数                          | 作用                       | 类型    | 默认值  |\n| ------------------------------------- | ----------------------------- | ------- | ------- |\n| `-h, --host \u003cremote-host\u003e`           | 指定远程 Windows OpenSSH 主机    | 字符串  |         |\n| `-P, --port \u003cremote-port\u003e`           | 指定远程 Windows OpenSSH 端口    | 整数    | 22      |\n| `-u, --username \u003cremote-username\u003e`   | 指定远程 Windows OpenSSH 用户名  | 字符串  |         |\n| `-p, --password \u003cremote-password\u003e`   | 指定远程 Windows OpenSSH 密码    | 字符串  |         |\n\n### 启动 LeviLamina 服务器作为调试器\n\n```bash\nnpx lses debug \u003cpath\u003e \u003cname\u003e [options]\n```\n\n| 必须参数 | 作用                        | 类型   |\n| -------- |---------------------------| ------ |\n| `\u003cpath\u003e` | 根据工作目录指定对应 LeviLamina 服务器 | 字符串 |\n| `\u003cname\u003e` | 指定 LeviLamina 服务器调试器实例的名称 | 字符串 |\n\n| 可选参数                              | 作用                    | 类型    | 默认值  |\n| ------------------------------------- | ----------------------------- | ------- | ------- |\n| `-h, --host \u003cremote-host\u003e`           | 指定远程 Windows OpenSSH 主机    | 字符串  |         |\n| `-P, --port \u003cremote-port\u003e`           | 指定远程 Windows OpenSSH 端口    | 整数    | 22      |\n| `-u, --username \u003cremote-username\u003e`   | 指定远程 Windows OpenSSH 用户名  | 字符串  |         |\n| `-p, --password \u003cremote-password\u003e`   | 指定远程 Windows OpenSSH 密码    | 字符串  |         |\n\n### 将 Legacy Script Engine 插件包部署到 LeviLamina 服务器调试器实例\n\n\u003e 💡  **关键特性**\n\u003e\n\u003e 相较于 `npx lses deploy-path`，这种方式在插件部署后会自动进行热重载。\n\n```bash\nnpx lses deploy-debug \u003cdebugger-name\u003e\n```\n\n| 必须参数              | 作用                              | 类型   |\n|-------------------|---------------------------------| ------ |\n| `\u003cdebugger-name\u003e` | 根据名称指定对应 LeviLamina 服务器调试器实例 | 字符串 |\n\n## ❗ 重要提示\n\n1. package.json 中的 `main` 入口文件路径配置应相对于项目的工作目录，\u003cfont color=\"red\"\u003e而不是 Legacy Script Engine 已打包插件的目录。\u003c/font\u003e\n\n   例如，在 TypeScript 项目中，若源码已定义 index.ts 为程序入口，并在 tsconfig.json 中配置 TypeScript 编译器输出目录为 dist，则应该将 package.json 中的 `main` 入口文件路径配置设置为 `dist/index.js`。\n\n   这样确保通过 `npx lses manifest` 生成的 manifest.json 文件中的 `entry` 插件程序入口配置能够被 LeviLamina 正确识别和定位。\n\n2. 在使用 `npx lses deploy-debug` 之前，确保对应的 LeviLamina 服务器调试器实例已开启，如果没有请先使用 `npx lses debug` 来启动它。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoweyr%2Flegacy-script-engine-scaffold","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleoweyr%2Flegacy-script-engine-scaffold","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoweyr%2Flegacy-script-engine-scaffold/lists"}