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

@etongduomi/jj-cli

v1.0.8

Published

公司内部,前端自定义vue文件生成器,包含views,apis,router,mock,用以一键生成对应的文件夹及导入和默认内容

Downloads

25

Readme

jj-cli

GitHub issues

GitHub forks

GitHub stars

npm (scoped)

npm bundle size (scoped version)

Install

$ npm i @etongduomi/jj-cli

Usage

只传入文件夹名
jj-cli create test

传入多层文件夹名
jj-cli create test/test

传入多层文件夹下的文件名
jj-cli create test/test.vue

目前实现

单个文件夹或者多层文件夹
  • 页面文件:

    在src/views下创建对应文件夹 同时会创建一个index.vue,多层文件夹同理
  • api文件:

    在src/api下创建对应第一层文件夹对应的js,举例 jj-cli create test的话是test.js 
    多层文件夹的话,jj-cli create test/test1 就会生成test1.js
  • 路由文件:

    在src/store/modules/routerMap/views下创建对应第一层文件夹对应的js文件,如test或者test/test1 
    都是创建test.js,同时生成test:()=> import('@/views/test/test1')类似
多层文件夹对应的文件
  • 页面文件:

      在src/views下创建对应文件夹 同时会创建对应的文件,eg: test/test.vue,会在views文件夹下创建test.vue文件
  • api文件:

      在src/api下创建对应第一层文件夹对应的js,举例 jj-cli create test/test1.vue,会在api文件夹下生成test1.js 
  • 路由文件:

      在src/store/modules/routerMap/views下创建对应第一层文件夹对应的js文件,如test或者test/test1 都是创建test.js,
      同时生成test:()=> import('@/views/test/test1')类似

技术栈

node fs fs-extra ora等cli 相关依赖

后续

会引入命令拓展属性 及优化现有命令行的交互动画等