@ecomplus/storefront-twbs

中文文档
7.3.6发布于 2023/11/03MITCommonJS近 30 天下载 4942

Storefront foundation components built with custom Bootstrap 4 + Animate.css + FontAwesome

原始使用文档
文档目录4 节
  1. Installation
  2. With bundlers
  3. CDN
  4. Usage

Storefront Twbs

npm version License MIT

:nail_care: Foundation components for E-Com Plus Storefront:

  1. Boostrap 4.6:

    • scss/styles.scss: Majority part (but not all) of Bootstrap CSS is imported, with almost all components, some utility classes and custom additional CSS vars;
    • src/bootstrap.js: Bootstrap 4 scripts for respective components, using jQuery and Popper.js normally;
  2. Some animations imported from Animate.css 3:

  3. Some webfont icons from Font Awesome 5:

We're not importing those frameworks as is to select only common and most useful components for Storefront themes. By this way we're reducing final bundle size and improving website performance :rocket:.

We generally use (and recommend partners to) Vue.js for Storefront components and widgets, but remember that Bootstrap CSS, Font Awesome and Animate.css are all reusable with any JS framework.

Installation

You can install the package with bundlers such as Webpack and Browserify, or load from CNDs like jsDelivr or UNPKG.

With bundlers

npm i --save @ecomplus/storefront-twbs
import '@ecomplus/storefront-twbs'
@import "node_modules/@ecomplus/storefront-twbs/scss/styles";

CDN

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ecomplus/storefront-twbs/dist/storefront-twbs.min.css">
<script src="https://cdn.jsdelivr.net/npm/@ecomplus/storefront-twbs/dist/storefront-twbs.bundle.min.js"></script>

Or with no dependencies included:

<script src="https://cdn.jsdelivr.net/npm/@ecomplus/storefront-twbs/dist/storefront-twbs.min.js"></script>

Usage

版本与发布记录

@ecomplus/storefront-twbs 共发布 95 个版本,首次发布于 2019/02/27;过去 12 个月发布了 0 个版本。

版本发布日期距今
7.3.6latest2023/11/033 年前
7.3.52023/09/073 年前
7.3.42023/05/173 年前
7.3.32023/03/253 年前
7.3.22022/12/303 年前
7.3.12022/10/254 年前

其他发布通道:alpha → 5.0.0-alpha.3。

关于 @ecomplus/storefront-twbs 的常见问题

@ecomplus/storefront-twbs 是什么?

Storefront foundation components built with custom Bootstrap 4 + Animate.css + FontAwesome

如何安装 @ecomplus/storefront-twbs?

在项目目录运行 npm install @ecomplus/storefront-twbs,或使用 pnpm add / yarn add / bun add。

@ecomplus/storefront-twbs 支持 TypeScript 吗?

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

@ecomplus/storefront-twbs 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@ecomplus/storefront-twbs 可以商用吗?

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

@ecomplus/storefront-twbs 的下载量有多少?

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

@ecomplus/storefront-twbs 还在维护吗?

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