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

hsrp

v1.2.5

Published

Template file generation

Downloads

729

Readme

模板文件生成

便捷生成模板文件(组件/路由)

👇 下载

npm i hsrp -g

💻 使用方式

hsrp 组件 name 文件名称 文件路径 组件类型 [是否为组件/路由]

1️⃣ 方式 1

创建 testInfoTableList 组件

hsrp hsy_test_0001 testInfoTableList /views/testFolder/ rt -c

创建 testInfoTableList 路由文件

hsrp hsy_test_0001 testInfoTableList /views/testFolder/ rcmpRiskInfoTmp

2️⃣ 方式 2

输入hsrp根据对应提示进行创建

hsrp

3️⃣ 方式 3

输入hsrp根据对应提示创建 xml 类型模板文件

hsrp xml

4️⃣ 方式 4

输入hsrp根据对应提示创建非 xml 类型模板文件

hsrp tmp

🅾 查看帮助信息

hsrp -h

hsrp --help

👉 支持的模板文件

包含简写、全写,采用方式 1 进行组件创建时,可使用简写

| 文件类型 | 简写 | 说明 | | :------------------: | :-----: | :------------------------------: | | formDialogTmp | fdt | 表单弹窗模板 | | rcmpRiskInfoTmp | rt | 4.0 指标模板 | | rcmpSearchTmp | st | 表格查询模板 | | rcmpSimpleManage | sm | 表格查询模板(包含新增、修改等) | | rcmpSimpleQuery | sq | 表格查询模板(已废弃) | | rcmpSearchTemplate | rst | 表格查询模板(非 xml 类型) | | workflowTemplate | wft | 流程表单模板 | | multiTabTmp | mtt | 多 tab 模板 | | rcmpSplitTable | rsltb | 上下表格类型模板 | | vueTmp | vue | vue 模板 |


⚙️ 更新日志

🔺1.2.5

  • 指令hsrp -x 修改为 hsrp xml
  • 指令hsrp -t 修改为 hsrp tmp

🔺1.2.4

  • 优化文件创建成功后提示语
  • 增加修改路由文件错误捕获功能

🔺1.2.3

  • 优化修改路由文件后,相关格式问题

🔺1.2.2

  • 新增rcmpSplitTable模板文件,用于生成上下表格类型组件/路由文件

🔺1.2.1

  • 修复通过指令hsrp -Vhsrp --version 查看版本号异常问题

🔺1.2.0

  • 新增指令hsrp -x, 用于生成 xml 类型 模板文件
  • 新增指令hsrp -t, 用于生成 非 xml 类型 模板文件
  • 更新hsrp -h 帮助信息

🔺1.1.7

  • 修复输入路径后面未携带/时,路由文件对应的菜单路径异常问题

🔺1.1.6

  • 新增multiTabTmp模板文件,用于生成多 tab 组件/路由文件

🔺1.1.5

  • 生成表单弹窗模板文件简写fdp指令调整为fdt
  • hsrp -h 增加帮助信息(模板添加说明)

🔺1.1.4

  • 增加vue模板文件vueTmp,用于生成vue文件

🔺1.1.3

  • 完善workflowTemplate模板文件
  • 简化文件路径相关内容,可省略 src,例:hsrp hsy_test_0001 testInfoTableList views/testFolder/ rt -c,将会自动创建文件至/src/views/testFolder/目录下

🔺1.1.2

  • 修复hsrp hsy_test_0001 testInfoTableList /src/views/testFolder/ rcmpRiskInfoTmp/rt -c无法创建组件问题

🔺1.1.1

  • 新增 workflowTemplate 模板文件

🔺1.1.0

  • 新增 rcmpSearchTemplateformDialogTmp 模板文件
  • 支持通过缩写进行组件创建:formDialogTmp(fdp)rcmpRiskInfoTmp(rt)rcmpSearchTmp(st)rcmpSimpleManage(sm)rcmpSimpleQuery(sq)rcmpSearchTemplate(rst)
  • 优化脚本工具,错误提示优化等

🔺1.0.0

  • 支持 rcmpSimpleQueryrcmpSimpleManagercmpSearchTmprcmpRiskInfoTmp 模板文件