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

lss-cli1

v0.0.1

Published

一个 node cli ,帮助你更快的开发 vue 项目

Downloads

5

Readme

一个 node cli ,帮助你更快的开发 vue 项目

功能点

1、add-component:增加一个组件 【✅】

2、add-page:增加一个页面,同时添加路由配置 【✅】

3、init: 初始化一个新项目 【X 未完成】

安装

  npm install -g fc-vue

使用

请在项目根目录或者./src 目录下使用

  # 路由页面
  $fc-vue add-page

  # 组件
  $fc-vue add-component

  #也支持下面这种 (默认是less)
  $fc-vue add-page user/login -s --title=页面标题
  $fc-vue add-page demo --title=页面标题
  $fc-vue add-component top/nav -s

使用 demo

alt 图片

alt 图片

使用帮助(懂的自然懂)

 # 整个cli的帮助文档
 $fc-vue

 # add-page 的帮助文档
 $fc-vue help add-page

 # add-component 的帮助文档
 $fc-vue help add-component

关于项目目录规范

1、路由页面【fc-vue add-page】

路由页面放在./src/views 或者./src/pages 【支持./src/page】下面, 路由文件放在./src/router.js 或者 ./src/router/index.js

路由文件里面的内容必须符合以下规则,【这也是 vue 官方脚手架生成的路由格式】

//定义路由数组的变量名必须是routes ,最后 ]; 结束
const routes= [

];

2、通用组件【fc-vue add-component】

通用组件放在./src/components 【支持./src/component】