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

@lx-frontend/node-ts-proto

v1.0.4

Published

ts-proto for lixin

Downloads

36

Readme

@lx-frontend/node-ts-proto

立新 protoc ts 生成插件,fork https://github.com/stephenh/ts-proto ,自定义适配立新自定义 option 描述。

usage

lx-gen-diff 使用说明

上传参考

./genDiff.js \
    --action=upload \
    --storage=Oss \
    --sourcePath=dist/decodejs \
    --refJsonFilePath=proto/ref/test1.json \
    --diffJsonFilePath=dist/diff.json \
    --accessKeyId="${ACCESSKEYID_TEST}" \
    --accessKeySecret="${ACCESSKEYSECRET_TEST}" \
    --region="${OSS_REGION_TEST}" \
    --bucket="${OSS_BUCKET_TEST}" \
    --basicPath=/Users/mind/Workspace/code.lixinio.com/frontend/lx-basic/packages/node-ts-proto

上传 diff

./genDiff.js \
    --action=diff \
    --storage=Local \
    --sourcePath=dist/decodejs \
    --refJsonFilePath=proto/ref/test1.json \
    --diffJsonFilePath=dist/diff.json \
    --accessKeyId="${ACCESSKEYID_TEST}" \
    --accessKeySecret="${ACCESSKEYSECRET_TEST}" \
    --region="${OSS_REGION_TEST}" \
    --bucket="${OSS_BUCKET_TEST}" \
    --basicPath=/Users/mind/Workspace/code.lixinio.com/frontend/lx-basic/packages/node-ts-proto

如何开发

TODO: 需要变成流程自动化

  1. 在 https://code.lixinio.com/frontend/ts-proto 项目完成相关开发构建,yarn tsc 得到源码
  2. @lx-frontend/node-ts-proto 包目录,针对 ts-proto 更新 patches 资源:
    # 相关路径替换成自己的
    pnpm patch [email protected] --edit-dir=/Users/mind/Workspace/code.lixinio.com/frontend/lx-basic/packages/node-ts-proto/patchCode
  3. 复制 序号1 生成的构建源码,到 patchCode 目录
  4. 生成 [email protected] 文件:
    pnpm patch-commit /Users/mind/Workspace/code.lixinio.com/frontend/lx-basic/packages/node-ts-proto/patchCode
  5. commit & push 构建发布。

TODO:

  1. lx-gen-diff 语义化文档输出
  2. patch ts-proto 变成自动化。