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 🙏

© 2025 – Pkg Stats / Ryan Hefner

gjf-cli

v1.1.0

Published

Command line interface for development

Readme

gjf-cli

根据vue-cli的思路和源码搭建的一套简易脚手架,只实现模板迁移和版本管理。

概览

bin/gjf文件中使用gjf.js作为入口文件,并且以node环境执行此文件

开发

在gjf-cli根目录下执行命令,链接包到全局下使用

npm link

使用

全局安装

因为是命令工具,最好全局安装

npm i gjf-cli -g

创建项目

在准备创建项目的文件夹下执行下列命令,创建一个project

gjf-cli create <project-name> # 比如:gjf-cli create test

若有同名目录,直接覆盖现有项目(适用于开发测试时,去掉繁琐的删除测试project功能)

gjf-cli create <project-name> -f # 比如:gjf-cli create test -f

关于纯净框架的生成思路:

  1. 第一版方案:有个git仓库放置框架源码,使用gitclone把最新代码down下来到当前目录里
  • git clone down到哪里?
  • clone下来的是整个包,怎么把里边的内容拷贝到当前创建的目录下?
  1. 第一个方案升级版:有一个模板文件夹(generator)进行文件拷贝与迁移即可。脚手架和组件代码在一起【TODO: done】
  2. 第二版,单独创建各个文件【TODO:】

  • [x] 第一版计划:【已完成】 1、readme直接生成 2、其他文件,直接拷贝 3、拷贝文件的标题,要改成当前项目的标题

  • [ ] 第二版升级计划 问答式,根据问答选择框架的配置,然后生成最终的配置文件

  • [ ] 待做 TODO: 整理目录结构,去掉src,src下内容转移到根目录