|
1 | | -# Electron Starter |
| 1 | +# electron-starter |
2 | 2 |
|
3 | | -This is my own personal electron starter kit. |
| 3 | +This is a electron starter kit from some random guy on the Internet. |
4 | 4 |
|
5 | | -I will be bikeshedding with myself. I'm going to change my mind quite a bit. You might prefer something more stable. |
| 5 | +[Check out the docs](https://skellock.github.io/electron-starter) for all the gory details. |
6 | 6 |
|
7 | | -Still here? Ok, let's do this. |
| 7 | +### Why? |
8 | 8 |
|
9 | | -# Test Drive |
| 9 | +I've got dozens of Electron apps started and not finished. They die before they can leave the bikeshed. |
10 | 10 |
|
11 | | -Want to try this out? Clone & run. There's a small sample project included. |
| 11 | +This is my attempt to fix that. |
12 | 12 |
|
13 | | -```sh |
14 | | -git clone [email protected]:skellock/electron-starter.git |
15 | | -cd electron-starter |
16 | | -npm i |
17 | | -npm start |
18 | | -``` |
19 | 13 |
|
20 | | -_Requires `node@>=8.1` and `npm@>=5.2`._ |
| 14 | +### Why Not? |
21 | 15 |
|
22 | | -# Start Your Own Project |
| 16 | +Oh man... lots of reasons. There's other starter ones out there. That use things like WebPack, Babel, Flow, and Redux. |
23 | 17 |
|
24 | | -Ready to start your project? |
| 18 | +This pack o' tools is slightly off the main stream. I mean, don't get me wrong, it's not full on hipster, but does have hipster-like tendencies. It's not as far as say, `reason`, `elm`, or `purescript`. I'm not that crazy or brave yet. |
25 | 19 |
|
26 | | -I'm still deciding on a simple way, but there will be a script you can run. |
| 20 | +The tools in this pack do **less**. They have less config. Less API. Less plugins. |
27 | 21 |
|
28 | | -```sh |
29 | | -npm run time-to-shine |
30 | | -``` |
| 22 | +I need more **less** in my life. |
31 | 23 |
|
32 | | -# Using |
33 | 24 |
|
34 | | -Your source files will live in the `src/main` and `src/renderer` directories. |
| 25 | +### License |
35 | 26 |
|
36 | | -To build your apps, first bundle it: |
| 27 | +MIT. A tip of the hat is always nice, but I'm more interested in hearing what you do with it. |
37 | 28 |
|
38 | | -```sh |
39 | | -npm run compile |
40 | | -``` |
41 | | - |
42 | | -Then you can `pack` a copy to see what it will look like assembled: |
43 | | - |
44 | | -```sh |
45 | | -npm run pack |
46 | | -npm run dist |
47 | | -``` |
48 | | - |
49 | | -And when you're ready to ship: |
50 | | - |
51 | | -```sh |
52 | | -npm run dist |
53 | | -``` |
54 | | - |
55 | | -To create a .zip and .dmg. |
56 | | - |
57 | | - |
58 | | -# What's Inside? |
59 | | - |
60 | | -libs | why |
61 | | ------|------ |
62 | | -**react**, **react-dom** | Can't imagine doing web differently to be honest. I'm sure we will soon, but for mid-2017, this is dominating. |
63 | | -**mobx**, **mobx-state-tree**, **mobx-react** | It brings the same things to the table as Redux, but with considerably less typing. |
64 | | -**ramda** | Lodash/fp is also a good choice here. I like ramda because I'm comfortable with it. `pipe` for life. |
65 | | -**typescript**, **tslint** | Such a well polished and wonderful typing system. I know this is a stepping stone to a better language, but JavaScript is really comfortable at this point. TypeScript dials the safety part in. |
66 | | -**fuse-box** | A fantastic bundler. WebPack always rubbed me wrong. Maybe it's the config? Maybe it's the way they name things? I'm not sure. What I do know is, once I started playing with FuseBox, I was sold. I like the devs behind this too. |
67 | | -**husky**, **lint-staged**, **prettier** | Some automation so I stop checking in crap looking code. |
68 | | -**ava** | This is my favourite testing framework. I've tried them all. The devs behind this are very talented, helpful, and friendly. |
69 | | -**npm-scripts-info**, **npm-run-all** | Quality-of-life utilities for npm. |
70 | | - |
71 | | -# License |
72 | | - |
73 | | -MIT |
0 commit comments