@getpara/core-components

中文文档
3.28.0发布于 2026/11/13TypeScriptESM + CJS近 30 天下载 9627

Capsule Core Components

原始使用文档
文档目录6 节
  1. Install
  2. Running
  3. React
  4. HTML
  5. Building
  6. Generating New Components

component-library

Cross-framework common component library

Install

yarn install

Running

The component examples can either be run in React or bare HTML.

React

yarn build
yarn start-react

HTML

yarn start-html

Building

This will build the component libraries for both web components and React.

yarn build

Generating New Components

This should be used when adding new components to the library. It will initialize the component, test and styles.

Once run, follow the prompts to name your component.

Note Components MUST begin the the cpsl- string in order for them to pass linting.

Note The styles should be changed to Sass once the component is generated. Rename the generated css file to scss and update the import in the component.

yarn generate

版本与发布记录

@getpara/core-components 共发布 181 个版本,首次发布于 2025/02/04;过去 12 个月发布了 67 个版本。

版本发布日期距今
3.28.0latest2026/11/133 天前
3.27.02026/11/106 天前
3.26.02026/11/0610 天前
3.25.02026/10/3017 天前
3.24.02026/10/2324 天前
3.23.02026/10/161 个月前

其他发布通道:fc → 2.0.0-fc.3,dev → 2.0.0-dev.7,alpha → 3.0.0-alpha.1。

关于 @getpara/core-components 的常见问题

@getpara/core-components 是什么?

Capsule Core Components

如何安装 @getpara/core-components?

在项目目录运行 npm install @getpara/core-components,或使用 pnpm add / yarn add / bun add。

@getpara/core-components 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@getpara/core-components 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@getpara/core-components 可以商用吗?

@getpara/core-components 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@getpara/core-components 的下载量有多少?

根据 npm 官方下载统计,@getpara/core-components 在 2026/10/17 – 2026/11/15 这 30 天内被下载 9,627 次,日均约 321 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@getpara/core-components 还在维护吗?

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