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

@tbjy/sypl-publish

v0.1.12

Published

商业评论——流水线——发布插件

Downloads

18

Readme

前端发布工具

  • 统一商业评论,发布到 OSS 的方式。

  • 原理:根据 git 仓库所运行的流水线,获取流水线配置的参数,将构建完的产物,根据参数上传至指定 OSS 对应的 bucket

安装

npm i @tbjy/sypl-publish -D

使用

  • 发日常
publish pub -d
  • 发正式
publish pub -o

测试通过的项目

  1. sypl-assets-market-web 用户端
  2. sypl-assets-market-admin 管理端
  3. sypl-assets-market-service 服务平台
  4. sypl-assets-edu 智篆在线
  5. sypl-assets-workshop 智篆厂房
  6. sypl-assets-lecture 讲师系统
  7. sypl-assets-crm CRM
  8. sypl-assets-workshop-materials 物料库

脚本主要流程

  • development: 拉取远程同名分支(云构建忽略)-> 上传至 OSS

  • production:确认远程有同名分支(云构建忽略)-> 确认代码已提交(云构建忽略)-> 拉取并合并 master 分支 -> 创建 tag 标签 -> 上传至 OSS -> (流水线会将当前分支合并到 master 分支上去)

"pub": "npx publish"
  • 或者
"pub": "node node_modules/.bin/publish"

更新日志

2023年03月13日14:13:27

  1. 同时读取 dist 和 build,两个路径下的文件
  2. 支持路径下文件夹内的文件上传。如:js/index.js

2024年04月02日17:47:36 支持业务项目在 .env 文件中配置 bucket, region, accessKeyId, accessKeySecret, cdnPathDaily, cdnPath 等参数,方便本地,实现上传到 OSS 的功能。