@bigbinary/neeto-commons-frontend

中文文档
4.16.0发布于 2026/11/07Apache-2.0TypeScriptESM + CJS零依赖近 30 天下载 12.7万

一个包封装了所有neto项目的通用代码,包括初始化器,公用功能,通用组件和钩子等.

中文使用文档
文档目录4 节
  1. 安装指令
  2. 使用量
  3. 其他参考资料
  4. 使用雅尔克进行测试

需要使用常用前端

用于包装所有 neto 所需的普通锅炉板前端代码的库 产品.

类别

名称

初始化剂 ↗

反应公用事业 ↗

纯公用功能 ↗

移动到 @ bigbinary/ neto- cist

Web 实用功能 ↗

安装指令

从 npm 安装 :

yarn add "@bigbinary/neeto-commons-frontend@latest"

这个软件包依赖于主机项目的尾风配置. 所以加点 需要您工程的后风前端 。 config.js 文件 :

module.exports = {
  purge: {
    content: [
      // ... other content directories
      "./node_modules/@bigbinary/neeto-commons-frontend/**/*.js",
    ],
  },
  // ... other tailwind config options
};

使用量

此套件会输出五套不同的功能和组件. 点击 更多信息:

  1. 初始化剂
  2. 反应公用事业
  3. Web 实用功能
  4. 默认配置
  5. 常见常数

其他参考资料

使用雅尔克进行测试

我们的构建文件都在 dist 文件夹,所以当您发布时确保通过 迪尔.

yalc publish dist

版本与发布记录

@bigbinary/neeto-commons-frontend 共发布 543 个版本,首次发布于 2022/07/20;过去 12 个月发布了 120 个版本。

版本发布日期距今
4.16.0latest2026/11/071 天前
4.16.0-beta1beta2026/11/071 天前
4.15.02026/11/044 天前
4.15.0-beta22026/11/044 天前
4.14.122026/11/034 天前
4.14.112026/11/035 天前

关于 @bigbinary/neeto-commons-frontend 的常见问题

@bigbinary/neeto-commons-frontend 是什么?

一个包封装了所有neto项目的通用代码,包括初始化器,公用功能,通用组件和钩子等.

如何安装 @bigbinary/neeto-commons-frontend?

在项目目录运行 npm install @bigbinary/neeto-commons-frontend,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:qs(6.16.1)、yup(0.32.11)、antd(5.22.1)、sass(1.62.0)、util(^0.12.5)、uuid(13.0.1)、vite(^8.0.0)、axios(1.20.0)、dayjs(1.11.13)、husky(7.0.4)、ramda(0.29.1)、react(18.3.1)、formik(2.4.6)、esbuild(0.28.1)、i18next(22.5.1)、webpack(^5.75.0)、zustand(4.4.2)、dompurify(^3.2.4)、js-logger(1.6.1)、linkifyjs(4.3.2)、react-dom(18.3.1)、shakapacker(^6.5.5)、tailwindcss(4.1.11)、@svgr/rollup(8.1.0)、autoprefixer(10.4.20)、react-helmet(^6.1.0)、ua-parser-js(^2.0.10)、esbuild-rails(^1.0.7)、framer-motion(11.11.11)、linkify-react(4.3.2)、react-i18next(12.3.1)、@tippyjs/react(4.2.6)、dotenv-webpack(^8.0.1)、react-colorful(5.6.1)、react-toastify(8.0.2)、@faker-js/faker(10.6.0)、avvvatars-react(0.4.2)、react-resizable(3.0.5)、enhanced-resolve(^5.18.1)、react-router-dom(5.3.3)、@bigbinary/neetoui(8.8.3)、@honeybadger-io/js(6.10.1)、@rails/actioncable(7.2.100)、esbuild-plugin-svgr(^3.1.0)、esbuild-sass-plugin(^3.3.1)、react-drag-listview(2.0.0)、@tailwindcss/postcss(^4.1.18)、@vitejs/plugin-react(^5.2.0)、@bigbinary/neeto-cist(1.0.17)、@honeybadger-io/react(6.1.25)、@tanstack/react-query(5.59.20)、@bigbinary/neeto-atoms(1.0.101)、@bigbinary/neeto-icons(1.20.89)、@bigbinary/neeto-hotkeys(1.0.9)、@bigbinary/neeto-molecules(5.11.2)、@bigbinary/neeto-time-zones(0.8.26)、@bigbinary/babel-preset-neeto(1.0.14)、@bigbinary/eslint-plugin-neeto(1.9.1)、@tailwindcss/container-queries(^0.1.1)、@tanstack/react-query-devtools(5.59.20)、@bigbinary/neeto-editor-frontend(2.0.1)、@bigbinary/neeto-commons-frontend(4.13.148)、esbuild-plugins-node-modules-polyfill(^1.6.8)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。它还提供命令行工具 dead-code-eliminator、remove-unused-translation-keys,可以用 npx dead-code-eliminator 直接运行。

@bigbinary/neeto-commons-frontend 支持 TypeScript 吗?

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

@bigbinary/neeto-commons-frontend 支持 ESM 还是 CommonJS?

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

@bigbinary/neeto-commons-frontend 需要什么版本的 Node.js?

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

@bigbinary/neeto-commons-frontend 可以商用吗?

@bigbinary/neeto-commons-frontend 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@bigbinary/neeto-commons-frontend 的下载量有多少?

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

@bigbinary/neeto-commons-frontend 还在维护吗?

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