Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@ztjy/antd-vue
Advanced tools
基于 ant-design-vue 封装的中后台公共库。
依赖管理:yarn
开发框架:vue@3.x
工具函数
.
├── examples # 示例代码
├── public # 示例入口
├── src # 源代码
│ ├── components # 组件
│ ├── styles # 样式
│ │ ├── mixins # 样式 mixins
│ │ ├── themes # 样式主题
│ │ ├── index.less # 基础样式(集成了 ant-design-vue 样式)
│ │ └── index.ts # 基础样式导出模块
│ ├── utils # 工具函数
│ ├── index.ts # 源代码模块导出
│ └── style.ts # 源代码样式导出
├── stories # Sotrybook
├── .browserslistrc # 兼容配置
├── .editorconfig # 编辑器配置
├── .eslintrc.js # ESLint 配置
├── .prettierrc # Prettier 配置
├── README.md # 项目说明
├── babel.config.js # 编译配置
├── package.json # 项目配置
├── tsconfig.json # TS 配置
├── vue.config.js # Vue 配置
└── yarn.lock # 依赖版本锁
.
└── src/components/Button # 组件目录
├── style # 组件样式
│ ├── index.less # 组件样式源码
│ └── index.ts # 组件样式导出(包含了 src/styles 下的基础样式,适用于动态加载)
├── Button.tsx # 组件源码
└── index.ts # 组件导出(包含 vue 插件注册代码)
Git 提交规范:https://www.conventionalcommits.org/zh-hans/v1.0.0/
ps:需要严格按照提交规范执行,最终发布版本会以提交记录里的 feat、fix 和 BREAKING CHANGE 决定要升级的版本号。
Git 分支规范:
开发新版本的时候建立对应版本的 feature/x.x.x 分支,多人协同时需要建立各自负责功能的分支 feature/xxx,开发完成后合并到版本分支 feature/x.x.x,发布测试和预发时将版本分支合并到 alpha 或 beta,然后执行 npm run release
。如果发布正式版本 x.x.x,需要对应项目负责人将版本分支 feature/x.x.x 合并到 master,然后执行 npm run release
。
编码规范
ps:为了实现组件的动态加载,需要维护 babel-plugin-import.js。
$ yarn run serve
$ yarn run storybook
测试和预发
合并版本分支 feature/x.x.x 到 alpha 或 beta
ps:目前只用 beta 就好。
执行发布命令 npm run release
正式发布
npm run release
markdown table generate https://www.tablesgenerator.com/markdown_tables
FAQs
基于 ant-design-vue 封装的中后台公共库。
We found that @ztjy/antd-vue demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.