GithubHelp home page GithubHelp logo

thundernet8 / electron-vue-webpack-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 98 KB

使用Electron、Vue.js、Webpack打包和热加载开发的启动模板工程,用于快速搭建初始开发环境

JavaScript 92.49% HTML 1.31% Vue 6.20%

electron-vue-webpack-boilerplate's Introduction

Electron-Vue-Webpack-Boilerplate

使用Electron、Vue.js2.0、Webpack打包和热加载开发的样板工程,用于快速搭建初始开发环境

目录结构

 + app                    // 最终打包成Electron资源的文件夹
   + assets               // 字体、图片等资源文件
   + dist                 // Webpack生产环境配置下打包src文件夹输出目录
   - package.json         // 生产环境依赖 dependencies
 + build                  // Webpack配置文件以及其他配置文件存放目录
 + dist                   // Webpack开发环境配置下打包src文件夹输出目录
 + release                // Electron 打包程序输出文件夹,如.dmg、.exe等
 + src                    // 开发源码文件夹
   + main                 // 用于Electron主进程逻辑代码
     + configs
     + services
     - index.js
   + renderer             // 用于Electron渲染进程逻辑代码
     + components
     + models
     + services
     + views
     + vuex
     - index.html
     - index.js
     - routers.js
 + test                   // 测试文件夹
 - package.json           // 开发环境依赖 devDependencies

命令

npm run dev-server        // hot-load server

npm run build-dev         // 开发环境配置下build, 资源文件打包至dist

npm run build             // 用于生产环境的build, 资源文件打包至app/dist

npm run pack              // 仅生成包目录, 不打包, 测试用途

npm run dist              // 打包成安装程序

npm run start             // 启动Electron(开发环境, 请先运行build-dev)

截图

Screenshot

Vue DevTool

请打开src/main/index.js文件, 取消第15行注释并修改路径为你的vue devtool chrome扩展路径

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.