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 🙏

© 2026 – Pkg Stats / Ryan Hefner

electron-vue-template

v2.0.0

Published

electron + vue + template 快速开发

Readme

electron-vue-template

  • 使用 vue.js 快速开发electron跨平台桌面应用
  • webpack 5.72+ 版本
  • vue 3.2+ 版本
  • typescript 4.6+ 版本
  • electron 11.2+ 版本
  • node版本 16.13.2
  • npm 版本 8.1.2
  • npm 下载源 https://registry.npm.taobao.org/

脚本说明

  1. git clone https://github.com/Liting1/electron-vue-template.git
  2. npm install
  3. npm start 本地开发桌面应用 electron + vue3
  4. npm run build 使用 electron-builder 打包桌面应用
  5. npm run web-serve 在本地浏览器开发渲染进程作为web应用
  6. npm run web-build 构建打包web应用
  7. npm run packager-build 使用 electron-packager 打包生产

说明:

运行命令中的 env 参数表示应用程序的使用环境,包含开发环境(dev)、测试环境(test)、体验环境(exp)、生产环境(pro)。

运行命令中的 mode 产生表示运行模式, 包含开发模式(development)、生产模式(production)。对应与webpack配置中的mode选项

常见问题

  1. 打包应用程序时需要下载 electron-v11.2.0-win32-x64.zip 文件,下载速度很慢,下载失败。

window系统,可以将项目下的 /doc/electron-v11.2.0-win32-x64.zip 已经下载好的文件直接复制到 C:\Users\liting\AppData\Local\electron\Cache文件夹下, 注:第二个目录时对应用户的目录,每个人的可能不一样

  1. electron是其他版本的可以选择从该链接下载:https://npm.taobao.org/mirrors/electron/ electron打包所需文件所有版本下载地址

  2. 下载安装依赖时如果比较慢,或者是使用npm下载electron依赖比较慢 可以使用 cnpm 从新下载依赖,

  3. 若在使用cnpm 安装依赖完毕运行后出现vuex报错,请查看实际下载的版本是否和package.json 中的版本号是否一样,如果不一样则单独指定vuex版本从新下载

  4. 若在安装过程中出现360警告或者是什么病毒的全部忽略,全都允许

  5. 若在运行打包时候出现如下错误Error: Cannot find module 'fs/promises' 则需要将本地的node版本升级到 14+ 以上版本方可解决

功能

  1. 热加载开发
  2. 打包生成App
  3. 应用更新
  4. vue3 + typescript 全家桶
  5. sass
  6. ts-node

项目目录结构

|—— app               项目打包后输出的源文件目录
|—— pack              打包成App的输出目录
|—— builder           webpack 构建应用配置目录
|—— doc               项目文档和所需文件目录
|—— config            应用打包配置目录
|—— src               项目资源目录
|	 |—— main             主线程文件目录
|	 |—— pages            其他渲染页面--子窗口页面
|	 |—— renderer	        主渲染线程目录
|    |—— static           静态资源目录
|—— .babelrc            babel 配置文件
|—— .gitignore          git 配置文件
|—— package-lock.json
|—— package.json
|—— README.md