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

vue-cli-plugin-hugo-generator

v0.1.5

Published

A vue-cli plugin

Downloads

444

Readme

vue-cli-plugin-hugo-generator

介绍

一个前端项目脚手架

参考文档

https://cli.vuejs.org/zh/dev-guide/plugin-dev.html#service-%E6%8F%92%E4%BB%B6

https://juejin.im/post/5cb59c4bf265da03a743e979

安装方式

只能在装了vue-cli(3.0以上版本)的环境中使用

通过vue add vue-cli-plugin-hugo-generatorvue invoke vue-cli-plugin-hugo-generator安装(需要在项目根目录)

生成的项目目录结构

  • apis 后端接口
    • fetch
      • fetch.js 发送和接收请求,与业务无关
      • http.js 拦截请求,判断请求是否合法
      • index.js 业务相关,如设置请求域名、方法,处理通用请求返回
    • modules 具体接口模块
      • setting 配置中心
        • auth 组织结构相关接口
  • asset 静态资源
    • 使用SASS,尽量scope
  • componets 组件
  • config 项目具体host配置
  • mixins
  • routes 路由
    • modules
      • setting 配置中心
        • auth 组织结构相关路由
  • views 页面vue文件,结构按 menu/module/path.vue这个格式,即菜单(最大模块,如配置中心)/模块(如组织结构)/具体路径文件在view上的都会在路由上注册,不在路由上注册的vue文件放在components或者packages中
  • store 状态机
  • util 工具
    • bus、tree、date(日期)、faye-client(订阅消息)、localstorgae(储存)、string(字符串)、scroll(滚动条)...
  • route.js 路由配置入口
  • main.js 全局配置入口
  • store.js 状态关联入口