@bode-canada/core

中文文档
1.0.263发布于 2026/11/06ISCTypeScriptESM + CJS近 30 天下载 3771

A Bode Core library created using Rollup

原始使用文档
文档目录8 节
  1. Installation
  2. Commands
  3. Build
  4. Code style
  5. Testing
  6. Supporting Image Imports
  7. Task lifecycle
  8. Deprecated activity

Bode

Explore the docs »

Installation

$ git clone [email protected]:bode-canada/bode-core.git

Install all dependencies. Make sure you installed Nodejs.

$ npm install
# or
$ yarn install

Commands

Build

Run build to build the library

Code style

Run eslint to start checking typescript code-style errors

Run eslint-fix to start checking typescript code-style and fix errors

Testing

Run test to start unit-testing procedure

Supporting Image Imports

Add the following library to your component library @rollup/plugin-image:

$ npm i -D @rollup/plugin-image

Then add it to rollup-config.js:

...
plugins:[
  ...,
  image(),
  ...
]
...

You can then import and render images in your components like:

import logo from "./rollup.png";

export const ImageComponent = () => (
  <div>
    <img src={logo} />
  </div>
);

###Icons

In case you need to add some icon or change the exising one, please use https://icomoon.io/app/#/select/font

Task lifecycle

  1. Create a branch from origin/master with the name consisting of ticket type and ticket name. For example, you have a feature task in JIRA with the name BSP-1989. New branch should be named like feature/BSP-1989. There are 3 types of task branch: feature, fix, improvement.
  2. After finalizing task you should create pull-request from your task to the origin/master.
  3. After fixing comments and getting at least 2 approves, merge the PR.
  4. In case of successful merge, delete your branch.

Deprecated activity

  • Pushing code directly to the master branch
  • Pushing code to the unassigned task/branch
  • Merging code without at least 2 approves

版本与发布记录

@bode-canada/core 共发布 276 个版本,首次发布于 2022/12/05;过去 12 个月发布了 38 个版本。

版本发布日期距今
1.0.263latest2026/11/062 天前
1.0.2622026/11/044 天前
1.0.2612026/11/044 天前
1.0.2602026/11/035 天前
1.0.2592026/11/025 天前
1.0.2582026/11/025 天前

关于 @bode-canada/core 的常见问题

@bode-canada/core 是什么?

A Bode Core library created using Rollup

如何安装 @bode-canada/core?

在项目目录运行 npm install @bode-canada/core,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:axios(^0.28.0 || ^1.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@bode-canada/core 支持 TypeScript 吗?

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

@bode-canada/core 支持 ESM 还是 CommonJS?

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

@bode-canada/core 可以商用吗?

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

@bode-canada/core 的下载量有多少?

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

@bode-canada/core 还在维护吗?

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