Skip to content

ImOnALampshade/better-electron-quickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

better-electron-quickstart

I got fed up with the electron quickstart not having what I wanted in it, so I made my own.

This repo is a quickstart for electron, using Grunt to transpile all the code.

When you run grunt, it will:

  • Compiles pug into HTML.

  • Compiles less into CSS.

  • Compiles coffeescript into JavaScript.

  • Watch the directory for any changes and compile them.

So, just run grunt and continue your developement in the src directory. There is also a compile script in package.json that just run the compilation steps without watching the directory. You can use this with npm run compile.

FAQ

  • Why don't you include [something else]? Either because I haven't heard of it, or because I don't really like it. Either way, send me a pull request and see how it goes.

  • I hate (coffeescript|pug|less). That's not a question. But you're entitled to your opinon! I, however, do like them, and will continue to use them.

  • You just made these questions up based on what you thought people would ask, didn't you? You shut your mouth.

JSX

You can use JSX in coffeescript, and it will be converted directly into DOM elements (Which vastly reduces the typical amount of resource usage you see from using frameworks). This is done through Babel. All your render modules that use this must include jsx-dom (which is just a file in this repo):

JSXDom = require './jsx-dom'

About

Arguably a better quickstart repo for electron

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published