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

tencent-cms-hgm

v0.0.3

Published

安装步骤:

Downloads

8

Readme

cms发布命令

安装步骤:

  1. 选择一个空目录: git下载git clone http://git.code.oa.com/skeetershi/tecent-cms-hgm,或者点击页面中的download按钮下载zip包;
  2. 解压后,安装所依赖的包: npm install --save-dev;
  3. 设置为全局变量: npm link

可以正常使用hgm进行操作了。

hgm init : 在项目的根目录中初始化配置文件 hgm login : 登录, 输入英文名和PIN+TOKEN

hgm push
推送目录中所有的资源,会把所有的js文件推送至js目录,css文件推送至css目录,图片文件推送至img目录,其他文件推送至data目录。这里进行扁平化上传,不会自动创建更多的目录

hgm article
这个命令需要自己另外配置:

{
    "localPath": {},
    "staticPath": {},

    "article": {
        "data": "dist/index.html", // 要上传的文件
        "testId": 65124,
        "preId": 65124,
        "prodId": 65124,
        "catalog": "invite",
        "site": "news"
    }
}

执行命令时,默认会将data中的文件推送至testId对应的页面片中,如果想要推送到其他的id中,需要额外的参数:

  • hgm article test 推送至testId对应的页面片
  • hgm artilce pre 推送至preId对应的页面片
  • hgm article prod 推送至prodId对应的页面片

同时也可以单独使用: hgm article -f 本地文件目录 -a cms页面片的ID,则hgm就会把这个文件里的内容推送到cms里id对应的页面片

hgm article -f ./dist/index.html -a 65124

hgm artcreate

创建页面片