@tryghost/comments-ui

中文文档
1.6.453发布于 2026/11/03MITES Module构建来源已验证

Comments interface for Ghost posts

原始使用文档
文档目录4 节
  1. Development
  2. Pre-requisites
  3. Running via Ghost from the monorepo root
  4. Release

Comments UI

Comments widget that is embedded at the bottom of posts in Ghost.

Development

Pre-requisites

  • Run pnpm bootstrap in the Ghost monorepo root

Running via Ghost from the monorepo root

Start Ghost with the public-app watchers enabled:

pnpm dev:public

This starts the standard development environment and the Comments UI watcher. To work on this package by itself, run these commands from this directory:

pnpm build              # one-off build
pnpm dev                # watch and rebuild the UMD bundle
pnpm test               # run type checks and unit tests
pnpm test:acceptance    # run browser acceptance tests
pnpm lint               # lint code and check types

Release

Patch releases are automatic. When Comments changes on main, CI publishes the next patch version to npm and clears the jsDelivr cache. Sites using that major/minor line receive the patch without a Ghost release.

For an intentional minor or major release:

  1. From a clean branch, run pnpm ship and select a minor or major version
  2. Merge the release commit to main
  3. Wait for a public Ghost release to ship the new default version line

pnpm ship updates both the package version and Ghost's default Comments version.

Copyright & License

Copyright (c) 2013-2026 Ghost Foundation - Released under the MIT license.

版本与发布记录

@tryghost/comments-ui 共发布 840 个版本,首次发布于 2022/07/08;过去 12 个月发布了 751 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
1.6.453latest2026/11/03今天
1.6.4522026/11/03今天
1.6.4512026/10/313 天前
1.6.4502026/10/295 天前
1.6.4492026/10/286 天前
1.6.4482026/10/277 天前

其他发布通道:rc → 1.4.0-rc.1。

关于 @tryghost/comments-ui 的常见问题

@tryghost/comments-ui 是什么?

Ghost帖子的评论界面

如何安装 @tryghost/comments-ui?

在项目目录运行 npm install @tryghost/comments-ui,或使用 pnpm add / yarn add / bun add。

@tryghost/comments-ui 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/tryghost__comments-ui 是否存在。

@tryghost/comments-ui 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@tryghost/comments-ui 可以商用吗?

@tryghost/comments-ui 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@tryghost/comments-ui 还在维护吗?

最新版本 1.6.453 发布于 2026/11/03(今天);至今共发布 840 个版本,其中过去 12 个月发布了 751 个;首次发布于 2022/07/08。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。