@freshworks/core

中文文档
0.15.1发布于 2023/09/20MIT近 30 天下载 4596

Nucleus::Core - SCSS styles & helpers

原始使用文档

@freshworks/core

npm version npm

ember install @freshworks/core

Contains the core design modules of Freshworks DSM:

  1. variables
  2. animations
  3. utilities

To import these stylesheets in your host app, add any/all of the following to your app.scss as per your requirement.

@import "nucleus/variables";
@import "nucleus/animations";
@import "nucleus/utilities";

To import them in another dependent addon (e.g @freshdesk/button), add the following to the addon's index.js:

treeForAddonStyles(tree) {
  let coreStyleTree = new Funnel(this.getCoreStylesPath(), {
    destDir: 'nucleus'
  });
  return mergeTrees([coreStyleTree, tree]);
},

getCoreStylesPath() {
  let pkgPath = path.dirname(require.resolve(`@freshworks/core/package.json`));
  return path.join(pkgPath, 'app/styles');
}

REASON:

@nucleus/core's app style funnel needs to be merged with the addon's style funnel in order for those files to be recognised by ember-cli-sass. More info here

版本与发布记录

@freshworks/core 共发布 31 个版本,首次发布于 2019/11/07;过去 12 个月发布了 0 个版本。

版本发布日期距今
0.15.1latest2023/09/203 年前
0.14.02021/03/055 年前
0.12.02020/11/195 年前
0.11.02020/10/096 年前
0.10.02020/08/216 年前
0.7.12020/08/076 年前

其他发布通道:beta → 0.1.1-alpha.31。

关于 @freshworks/core 的常见问题

@freshworks/core 是什么?

Nucleus::Core - SCSS styles & helpers

如何安装 @freshworks/core?

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

@freshworks/core 支持 TypeScript 吗?

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

@freshworks/core 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js 8.* || >= 10.*。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@freshworks/core 可以商用吗?

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

@freshworks/core 的下载量有多少?

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

@freshworks/core 还在维护吗?

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