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

react-page-cli

v1.0.4

Published

``` npm install react-page-cli ``` ## 标准代码模板一览 待完善 ## 功能介绍 1. 通过命令行工具快速创建react代码模板页面,预期将包含多种表格、表单等常见的业务场景 2. 自动化生成react页面对应的路由配置文件

Downloads

5

Readme

安装

npm install react-page-cli

标准代码模板一览

待完善

功能介绍

  1. 通过命令行工具快速创建react代码模板页面,预期将包含多种表格、表单等常见的业务场景
  2. 自动化生成react页面对应的路由配置文件

命令

pnpm rat-p create-page

创建page 如果不指定一级/二级page名称,则默认创建一个如src/pages/SuperPage/SubPage这样的页面

别名:pnpm rat-p c

| 参数名 | 别名 | 是否必须 | 说明 | |---------|---------|---------|---------| | superPName | pn1 | 否 | 一级page文件名 | | subPName | pn2 | 否 | 二级page文件名 | | superPNote | n1 | 否 | 一级page注释 | | subPNote | n2 | 否 | 二级page注释 |

完整命令示例:

pnpm rat-p create-page --pn1=SuperPage --pn2=SubPage --n1=SuperPageNote --n2=SubPageNote
pnpm rat-p c --pn1=SuperPage --pn2=SubPage --n1=SuperPageNote --n2=SubPageNote

版本历史

1.0.0 - 1.0.1

测试

1.0.2

能够通过命令行参数快速创建react的一级page文件夹和二级page文件,并自动化配置路由

1.0.3

  1. 不提供页面名称时通过时间戳生成唯一文件名
  2. 添加一级页面注释与二级页面注释参数,能够在二级page、二级路由文件、一级路由文件中自动化配置注释 为了能在路由文件中保持历史注释参数,弃用了每次遍历page文件夹名称信息 再重写路由文件的写法 改用使用正则匹配路由文件中要新添加内容的位置,再进行续写

1.0.4

  1. 修复了在已有一级page文件夹下创建二级page文件时,在一级路由配置文件中重复引入一级page的bug
  2. 实现了在创建完二级page后,自动在浏览器打开对应端口号+路由的url
  3. 修改一级路由配置文件内容