1.3.7 • Published 4 months ago

@plaso_infi_t2/sharable v1.3.7

Weekly downloads
-
License
ISC
Repository
-
Last release
4 months ago

Infi T2 前端公共组件、功能项目

比较稳定、泛用且外部依赖较少的内容可以封装至这个项目。 如果要使用本项目中的功能,请作为三方库基于 npm 来安装,如:

yarn add @plaso_infi_t2/sharable

Scripts

  • yarn vite 使用 vite 来 serve 项目
  • yarn build 使用 rollup 来打包项目
  • yarn build:analyze 打包并且分析项目,分析结果会在 __dirname/stats.html 文件内

注意:

  • 添加新功能后,请在 demo 页内给出一定使用样例
  • 请不要在项目 main 入口内 "src/index.ts" 关联到 demo 相关的一切。
  • 考虑到当前项目体量(过小)、内容(过少),当前项目内包括 sourcemap 文件,后续项目逐渐扩大后需要有效管理 sourcemap 文件, 否则项目会有代码泄漏的问题。
  • 为优化项目体积,本项应尽量使用 external 依赖,所以如果要使用本项目内的对应能力,请在自己的项目中安装对应的 dependency, 当前使用的外部依赖有
    const external = [
      'react',
      'react-dom',
      'slate',
      'slate-react',
      'slate-history',
      'antd',
      '@ant-design/icons',
    ];
  • 请不要随意引入杂七杂八的东西,比如各种三方 svg,会把本项目复杂化不说,还会有可能对引用者造成污染
  • 本项目不应过度依赖某 external deps 的最新特性,比如 antd,因为 antd 的版本控制不是在本项目里做的,而是在引用侧做的。如果有特别重的 antd 定制,请不要放在这个项目中。
1.3.7

4 months ago

1.3.6

5 months ago

1.3.5

5 months ago

1.3.4

6 months ago

1.3.3

6 months ago

1.3.2

6 months ago

1.3.1

6 months ago

1.3.0

6 months ago

1.2.0

6 months ago

1.1.0

8 months ago

1.0.11

9 months ago

1.0.10

9 months ago

1.0.9

9 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago