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

asd

v0.0.9

Published

assist system develop

Downloads

23

Readme

asd

辅助系统开发 ( assist system development )

Feature

  • 自动生成模块所需文件
  • 支持多级目录级联创建
  • 按照fcfe最新文档规范
  • 支持创建单个符合模块规范的文档
  • 使用方便、快捷
  • 支持项目一键式创建
  • 支持内建命令扩展
  • 支持系统级命令
  • 支持自定义上下文
  • 支持自定义模板目录
  • 支持命令扩展
  • 支持mock文件生成
  • 支持bcs云端文件备份
  • 支持curl命令(递归)爬页面
  • 支持find命令,递归扫描符合规则的文件集合
  • 支持自动合并项目中的conf文件style文件

install

npm install asd -g

Usage

使用系统命令行

  • 设置项目基本配置
> asd set email [email protected] # author 信息
> asd set username "Liandong Liu"  # author 信息
> asd set module-files "Action Model View monitor template.tpl style.less"
# 指定mvc需要的文件(有默认配置)
  • 在项目目录中创建指定模块
  • 自动会以src/为基准路径配置tpl/less/js中的moduleID, DomId等信息
> asd set title "看排名"
> asd module src/module/app/coreword ## 创建MVC所需所有文件
  • 创建单个或多个指定文件
> asd touch view.js ## 创建单个文件
> asd touch demo/actionConf.js launcher.js 
  #自动补全demo文件夹,并且在demo/中增加多个文件

使用内建命令行

  • 不需要再输入asd前缀
> asd
> set email [email protected]
> module src/module/app/coreword
> help # 查看所有可用命令

云端备份

  • 要使用云端备份功能,需要先申请bcs存储
  • fcfe可提供公用bucket
  • 使用bcs暂时只支持以下几个命令,后期将加入更多支持
> asd push module/app/coreword.patch 
    ## 将在云端路径module/app/中增加 coreword.patch文件
    
> asd pull module/app/coreword.patch ## 下载云端指定路径下的文件
> asd dir # 显示bucket下所有文件
  • 在使用前需要先设置sckey 和ackey
> asd set sckey xxxxx
> asd set ackey yyyyy

模板数据

模板中的数据通过设置的Context自动获取

需要手动设置的数据

  • title 当前模块的中文描述
  • username 作者名
  • email 邮箱

根据创建路径自动生成的上下文内容

如创建路径为 workspace/src/module/app/bidInsight

  • moduleId 表示以src为基线的path; 除去去后缀部分; module/app/bidInsight

  • moduleName 表示文件模块名; bidInsight

  • moduleDomId 用于less; tpl; module_app_bidInsight

  • monitorTag 表示监控Tag; module_app_bidinsight (全小写)

conser 命令说明

  • conser 使用简单的文本输入流作为交互式命令
  • conser 切词默认按空格切词
  • 如果要指定包含空格的值,使用双引号"包含,比如

asd set username "Liandong Liu"