All Projects → pbarbiero → Basic Electron React Boilerplate

pbarbiero / Basic Electron React Boilerplate

Licence: mit
Minimal and modern react+electron+webpack boilerplate

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Basic Electron React Boilerplate

V2 Universal Js Hmr Ssr React Redux
⚡ (V2) Universal JS - Server Side Rendering, Code Splitting and Hot Module Reloading ⚡
Stars: ✭ 147 (-34.96%)
Mutual labels:  webpack2
Hugo theme pickles
Modern, Simple and beautiful Hugo theme
Stars: ✭ 168 (-25.66%)
Mutual labels:  webpack2
X Blog
个人博客
Stars: ✭ 197 (-12.83%)
Mutual labels:  webpack2
React Itunes Search
🎵Simple web app for itunes search with React
Stars: ✭ 147 (-34.96%)
Mutual labels:  webpack2
Webpack2
基于webpack2和vue.js2构建饿了么多页面应用 🌹
Stars: ✭ 165 (-26.99%)
Mutual labels:  webpack2
Html Res Webpack Plugin
plugin for generating html in webpack
Stars: ✭ 170 (-24.78%)
Mutual labels:  webpack2
Svg Sprite Loader
Webpack loader for creating SVG sprites.
Stars: ✭ 1,822 (+706.19%)
Mutual labels:  webpack2
React Cordova Boilerplate
TodoMVC example for react with development tools to build a cordova application
Stars: ✭ 206 (-8.85%)
Mutual labels:  webpack2
Webpack.js.org
Repository for webpack documentation and more!
Stars: ✭ 2,049 (+806.64%)
Mutual labels:  webpack2
Docker Django Webpack Skeleton
Django Skeleton W/ Docker Dev & Production W/ Webpack 2 W/ BabelJS W/ Sass W/ PostgreSQL
Stars: ✭ 191 (-15.49%)
Mutual labels:  webpack2
Devopenclub Tech Webpack2
Webpack 2 视频教程课程源码
Stars: ✭ 148 (-34.51%)
Mutual labels:  webpack2
Angularjs Typescript Webpack
AngularJS 1.7, typescript 3 and webpack 4 starter project based on angular tutorial
Stars: ✭ 150 (-33.63%)
Mutual labels:  webpack2
Vue2 Iview2 Admin
基于vue2和iview2的后台管理系统
Stars: ✭ 181 (-19.91%)
Mutual labels:  webpack2
React Redux Styled Hot Universal
react boilerplate used best practices and focus on performance
Stars: ✭ 147 (-34.96%)
Mutual labels:  webpack2
Douban
Awesome douban DEMO created with Vue2.x + Vuex + Vue-router + Superagent
Stars: ✭ 2,324 (+928.32%)
Mutual labels:  webpack2
Iceberg
Front-End Boilerplate built with React + Babel + Webpack + SASS
Stars: ✭ 144 (-36.28%)
Mutual labels:  webpack2
Multipage Webpack Plugin
A plugin that makes handling templates and asset distribution for multi-page applications using webpack trivial
Stars: ✭ 168 (-25.66%)
Mutual labels:  webpack2
Webpack Book
From apprentice to master (CC BY-NC-ND)
Stars: ✭ 2,372 (+949.56%)
Mutual labels:  webpack2
String Replace Loader
Replace loader for Webpack
Stars: ✭ 205 (-9.29%)
Mutual labels:  webpack2
Webpack2 Lessons
📖《webpack2 包教不包会》
Stars: ✭ 187 (-17.26%)
Mutual labels:  webpack2

Modern and Minimal Electron + React Starter Kit

Electron, React, Webpack -- Modern and up-to-date, with a handful of quality of life features included

I made this starter kit as most boilerplates were either out-of-date, heavy handed, or enforced a structure on me that I just didnt like. With a very select assortment of modules, this starter kit is designed to get you up and running very quickly, and to let you easily drop in your own structure and tools on top of it. The basic structure of src/ is intentionally minimal to make it easier to allow you to put your own twist on how you like things laid out.

Production builds babel-minify is used, and ES2015/ES6 transpilation is provided -- As modern node and chromium versions support 99%+ of the ES6 feature set, I feel those steps are unnecessary.

If you like this project, check out enhanced-electron-react-boilerplate which is this project with my take on additional modules (photon, redux, less, css modules etc) and my personal project structure (based on the redux ducks proposal) I suggest you give it a look if you want less of a minimalistic take on my starter kit.

To get started:

  • Run npm install
Development
  • Run npm run dev to start webpack-dev-server. Electron will launch automatically after compilation.
Production

You have two options, an automatic build or two manual steps

One Shot
  • Run npm run package to have webpack compile your application into dist/bundle.js and dist/index.html, and then an electron-packager run will be triggered for the current platform/arch, outputting to builds/
Manual

Recommendation: Update the "postpackage" script call in package.json to specify parameters as you choose and use the npm run package command instead of running these steps manually

  • Run npm run build to have webpack compile and output your bundle to dist/bundle.js
  • Then you can call electron-packager directly with any commands you choose

If you want to test the production build (In case you think Babili might be breaking something) after running npm run build you can then call npm run prod. This will cause electron to load off of the dist/ build instead of looking for the webpack-dev-server instance. Electron will launch automatically after compilation.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].