@buckhamduffy/bd-components

中文文档
1.17.4发布于 2026/10/12ESM + CJS近 30 天下载 1990

BuckhamDuffy's Vue and SCSS components for development.

原始使用文档
文档目录4 节
  1. Installation
  2. Usage
  3. Usage (SCSS)
  4. Development

BuckhamDuffy Components

BuckhamDuffy's Vue and SCSS components for development.

Installation

npm install --save @buckhamduffy/bd-components

Usage

import Vue from "vue";
import BDComponents from "@buckhamduffy/bd-components";

Vue.use(BDComponents);

Usage (SCSS)

// Import the BuckhamDuffy Components

// Bootstrap 4
@import "@buckhamduffy/bd-components/sass/bootstrap4";

// Bootstrap 5
@import "@buckhamduffy/bd-components/sass/bootstrap5";

NOTE: Sometimes webpack has trouble importing files with a @ prefix, so use the below instead

// Import the BuckhamDuffy Components

// Bootstrap 4
@import "../../@buckhamduffy/bd-components/sass/bootstrap4";

// Bootstrap 5
@import "../../@buckhamduffy/bd-components/sass/bootstrap5";

Development

  1. Checkout the repository git clone [email protected]:buckhamduffy/bd-components.git
  2. cd into the repository cd bd-components
  3. Install the dependencies npm install
  4. Run npm run build:watch for live reloading.

You can link this project globally for use in other projects with npm link. Then in the project you want to use it in run npm link @buckhamduffy/bd-components. This will then symlink the local package to point to your development version.

版本与发布记录

@buckhamduffy/bd-components 共发布 38 个版本,首次发布于 2024/01/10;过去 12 个月发布了 2 个版本。

版本发布日期距今
1.17.4latest2026/10/1228 天前
1.17.32026/09/012 个月前
1.17.12025/11/051 年前
1.17.02025/09/101.2 年前
1.16.32025/09/051.2 年前
1.16.22025/09/031.2 年前

关于 @buckhamduffy/bd-components 的常见问题

@buckhamduffy/bd-components 是什么?

BuckhamDuffy's Vue and SCSS components for development.

如何安装 @buckhamduffy/bd-components?

在项目目录运行 npm install @buckhamduffy/bd-components,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:vue(^2.7.0 || >=3.0.0)、dayjs(^1.11)、lodash(^4.17)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@buckhamduffy/bd-components 支持 TypeScript 吗?

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

@buckhamduffy/bd-components 支持 ESM 还是 CommonJS?

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

@buckhamduffy/bd-components 可以商用吗?

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

@buckhamduffy/bd-components 的下载量有多少?

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

@buckhamduffy/bd-components 还在维护吗?

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