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

sccs

v1.0.6

Published

上海三思插件编译框架

Downloads

167

Readme

上海三思中控插件平台脚手架

使用方式

导入框架

npm i sccs -g

初始化项目

# 创建空目录,并进入
mkdir my_plugin
cs my_plugin

# 初始化项目
sccs init

# 根据提示填写插件信息,生成结束后,插件名称、ID 等信息可以在项目根目录的 main.json 文件中修改

? 插件名称: 我的插件
? 插件标识: 1B96551SSSDAD4C2D4
? 插件版本: 1.0.0
? 插件描述: 测试用插件

npm install
# 等待命令执行结束

调试项目

调试项目需要打开中控,在中控中进行,运行下面命令后,中控里面会自动追加一个调试插件,可以通过调试插件观察效果。

sccs dev

编译项目

编译后的项目会生成在项目根目录下的 release 目录中,后缀名为 .plug

sccs build

发布项目

发布项目会自动编译项目然后提交到云平台上,需要按照以下步骤操作

本地发布

  1. 在云平台上申请发布用到 token
  2. 在环境变量中添加 SANSI_CLOUD_PLUGIN_TOKEN 这个环境变量,值为申请到的 token 字符串
  3. 运行 sccs publish --open

CI 自动发布

  1. 在云平台上申请发布用到 token
  2. 在 gitlab 仓库的环境变量中添加 SANSI_CLOUD_PLUGIN_TOKEN 这个环境变量,值为申请到的 token 字符串
  3. 在 CI 流程中添加 sccs publish --open 进行发布

⚠️注意: sccs publish --open 表示公开发布。
取消 --open 参数 sccs publish,或者声明关闭 sccs publish --open false 均表示该版本不公开发布。
非公开发布的版本,不可以在中控在线插件中直接搜索到,需要登录云平台进行查看下载或者通过分享链接进行下载,之后通过本地进行加载。

配置功能

查看当前配置

sccs config list

获取远程仓库地址

sccs config --get-registry

获取远程仓库地址

如果不使用默认远端发布地址,可以使用该功能进行配置。

sccs config --set-registry http://127.0.0.1:8888