npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

gm-printer-label

v3.4.0

Published

gm-printer-label是分拣标签和预分拣标签的组件库

Downloads

188

Readme

介绍

gm-printer-label是分拣标签和预分拣标签的组件库

export * from './editor_label'//分拣标签
export * from './editor_presorting' // 预分拣标签

启动

  1. yarn,安装依赖
  2. yarn start 启动项目

使用

新老架构和工位屏都有使用

与 erp 进行连接测试

  1. 在 gm-printer-label 中,使用yarn link
  2. 在 gm-static-stationv2 中使用yarn link 'gm-printer-label',这样就连接上了 gm-printer-label 组件库,改动组件库的时候,就可以在 gm-static-stationv2 看到效果
  3. 断开连接,先在 gm-printer-label 中使用yarn unlink,在 gm-static-stationv2 中运行yarn unlink 'gm-printer-label',重新 yarn 和 yarn start 一下
  4. 可能断开连接不太好用,不好用的时候,删除 node_modeles,关闭 gm-x-printer,重新 yarn
  5. yarn link 不太稳定

版本命名规则

  1. GNU 风格的版本号命名格式:主版本号 . 子版本号 [. 修正版本号 [. 编译版本号 ]],示例 : 1.2.1 (正式版本), 1.2.1-beta.0(测试版本)
  2. 版本号管理策略:
    1. 项目最初版本为 1.0.0
    2. 当项目在进行了局部修改或 bug 修正时,主版本号和子版本号都不变,修正版本号加 1;示例:1.0.1
    3. 当项目在原有的基础上增加了部分功能时,主版本号不变,子版本号加 1,修正版本号复位为 0。示例:1.1.0
    4. 当项目在进行了重大修改或局部修正累积较多,而导致项目整体发生全局变化时,主版本号加 1.示例:2.1.0

版本发布

首先先切换到 npm 的环境

  1. 没有登陆过,使用npm login登陆,一次登陆永久使用,登陆的时候会输入密码,用户名,邮箱(公司有)

  2. beta 版本包的版本发布(用来测试该版本,解决该版本的 bug)

    1. pageage.json中的version修改为X.X.X-beta.0,或者运行 npm version X.X.X-beta.0来更新package.json,同时创建一个 git 标签 (请参考 https://docs.npmjs.com/cli/version)。

      在你的版本末尾添加 beta.0 非常重要。.0 表示它是哪个版本。当我们对 beta 版进行修补发布新的 beta 版本时,我们会将 .0 递增到 .1,以此类推。

    2. ⚠️ 将该版本的包 push 到远程仓库

    3. 使用npm publish --tag beta发布测试版本

    4. 对版本进行修补时,只需要将beta.0递增到beta.1进行版本发布即可,以此类推

  3. 正式版本的发布

    1. 遵循上面的版本命名规则,修改pageage.json中的version版本号,或者运行 npm version X.X.X来更新package.json,同时创建一个 git 标签
    2. ⚠️ 将正式版本 push 到远程仓库
    3. 使用npm publish发布正式版本
    4. 在自己的分支上进行发布版本即可,发完后,将分支合并到 master 上!!!

依赖

react react-dom classnames lodash mobx mobx-react big.js moment

edit 额外依赖

clipboard