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

aps-cli

v1.0.12

Published

aps系统脚手架

Downloads

18

Readme

aps-cli的使用介绍

背景

原来做了一个高阶组件,封装了一些增删查改和一些常用钩子函数的操作,主要是为了去除一些重复的代码和简化操作,并规范操作,但是发现没有人使用,自我总结了一下原因,主要有以下三点。

  • 原有的开发方式已经形成了惯性思维,复制粘贴然后修修改改。
  • 没有多次强调使用方式和使用案例
  • 还是不够智能,虽然规范了操作,但是部分基础代码还需要复制粘贴,底层逻辑比较繁琐,没有一个统一的使用规范和模板

总结了以上原因,又结和了各大框架以及公司csb框架的新建模块优点,形成了aps专属的cli,现在处于测试版,所以没有做成全局的cli,后期功能完善了,会做成全局的脚手架,甚至有一天我们的前端架构完善,可以做成开源或统一的开源框架使用。

使用介绍

node cli -a <模块名> -p [模块路径] -n <程序编号>
# 翻译 在src/Page/pps下新建一个模块名叫Demo001的模块,程序编号为ALGORITHM_RULE_CONFIG,如果模块路径不存在,则会新建路径
node cli -a Demo001 -p pps -n ALGORITHM_RULE_CONFIG

# 翻译 在src/Page目录下新建一个模块名叫Demo002的模块,程序编号为ALGORITHM_RULE_CONFIG
node cli -a Demo002 -n ALGORITHM_RULE_CONFIG

参数介绍

| 参数 | 说明 | 必填 | 示例 | | ---- | ---------------------------------- | ---- | ----------- | | a | 模块名 | Y | Test1 | | p | 模块放置的路径,不填则放置在Page下 | N | mps_console | | n | 程序编号 | Y | MPS_Program | | o | 旧版的程序视图 | N | | | b | 空白项目 | N | |