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

@elfiner/commander

v1.0.1

Published

elfin命令行工具

Downloads

4

Readme

elfin commander

elfin命令行工具

安装

npm install elfincmd -g

工程管理方案

不同于Lerna将所有的依赖包代码放入同一工程,elfincmd思路是将依赖包当做单独的工程,多工程之间进行协作

multirepo管理

  1. 可执行命令列表
# multirepo工程配置文件初始化
elfincmd external init

# multirepo相关工程克隆
elfincmd external clone

# multirepo相关工程依赖加载
elfincmd external install
  1. 工程结构总览
- 主工程
    - .elfin.external.js

=> elfincmd初始化

- 主工程
    - .elfin.external.js
- 依赖工程1
- 依赖工程2

monorepo管理

  1. 可执行命令列表
# monorepo工程配置文件初始化
elfincmd external init --mono

# monorepo相关工程克隆
elfincmd external clone --mono

# monorepo相关工程依赖加载
elfincmd external install --mono
  1. 工程结构总览
- 主工程
    - .elfin.external.js

=> elfincmd初始化

- 主工程
    - externals
        - 依赖工程1
        - 依赖工程2
    - .elfin.external.js

hooks命令

监听git交互行为,做出相应的patch逻辑

commit-msg命令

elfincmd hooks commit-msg

配置在package.json中,自动化检测commit msg

npm install husky --save-dev

// package.json
"husky": {
    "hooks": {
        "commit-msg": "elfincmd hooks commit-msg"
    }
},

docs命令

用以查看常用的文档信息

pc命令 (Personalized-customization

杂散的个人命令,通过控制台交互式的方式来完成相应的功能

日历ics 生成ics日历文件,可以快速的在系统日历中新建日程 

参与研发

npm link // npm链接本地项目

npm run elfin.init // 初始化项目

elfincmd -h // 查看帮助信息

npm publish --access=public // 发布项目

计划

  1. 参考Vant-cli使用TS改造
  2. globby多文件模板文件构建
  3. hooks_checkout切换分支
  4. hooks_pull更新代码