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

@tezignlab/dam-plugin-uploader

v0.1.1

Published

A cli helps you to upload dam-plugins to CDN.

Downloads

3

Readme

@tezignlab/dam-plugin-uploader

一个帮助你上传 DAM Plugin 到 CDN 的 CLI 工具。

npm version

安装

npm install --global @tezignlab/dam-plugin-uploader@latest

完成之后,可以在命令行中使用dam-plugin-uploader -h或者dpu -h命令测试安装成功。

Usage: dam-plugin-uploader [options] <src>

A cli helps you to upload dam-plugins to CDN.

Arguments:
  src                    directory or file

Options:
  -V, --version          output the version number
  -c, --config <string>  config file path (default: "cli.config.json")
  -n, --name <string>    plugin name, e.g. plugin-demo1
  -t, --tag <string>     plugin version, e.g. 0.0.1
  -h, --help             display help for command

配置文件

使用前,你需要拥有由 Tezign 颁发给你的以下信息,并放入一个 JSON 文件中。 默认情况下,CLI 会读取当前目录下的cli.config.json作为配置文件,也可以在 CLI 中通过--config参数来指定配置文件路径。

配置文件内容需要包含

{
  "appKey": "",
  "appSecret": "",
  "salt": ""
}

使用

假设要上传当前目录下的dist文件夹的内容,插件名称为my-plugin-name,插件版本是0.0.1,指定了配置文件路径为./cli.config.json(默认会读取当前目录下的 cli.config.json),则可以使用以下命令上传:

dpu --config ./cli.config.json --name my-plugin-name --tag 0.0.1 ./dist
# or
dpu --name my-plugin-name --tag 0.0.1 ./dist

文件上传成功后,会输入 URL 地址到控制台,如:

https://static.tezign.com/dam-plugin/xxx/my-plugin-name/0.0.1/9abe190d-dbc6-422c-adf0-3ed40f012394.js