Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ones-web-common

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ones-web-common

这个库存在的意义就是存放一些非高频,相对稳定的通用包;

  • 1.0.0
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

这个库存在的意义就是存放一些非高频,相对稳定的通用包;

必要条件

  • 独立发包
  • 非高频
  • 不耦合业务

基于 npm7 workspace 维护依赖复用

npm i

包的发布

采用 npm 自己的发布机制; 可以参考结合 npm-version 或者手动来判定你当前要发哪个版本的包(比如跟迭代来显示差异化)

  1. 执行包内相关的打包命令得到产物
  2. npm version (手动 package.json 改版本号)
  3. npm publish

比如你要给 main-build 发包

# 进入包源码路径
cd packages/main-build

# 安装依赖
npm i

# TODO
#你的变更

# package.json
# 不管是手动还是用npm version来给包名加唯一名字发包用于测试
npm publish


功能 PR

  1. 基于 main 分支切出来 feature-branch
  2. 实现你的功能,发包【比如当前 3.13, 特征 a, 就是发 3.13.0-a.0 这类唯一别名的包用于测试】
  3. 稳定后发起 PR,到时候主干线会以 semver 标准来发版

FAQ

ckeditor-dev发包姿势

https://our.ones.pro/wiki/#/team/RDjYMhKq/space/DCBqNWkS/page/TFJA7un4

PR原则

有好的想法都可以实现后提交PR,只要code review和迭代验证没啥问题,就会采纳; 一起添砖加瓦,工具才会越来越好用!

FAQs

Package last updated on 12 Aug 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc