You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 5, 2019. It is now read-only.
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.
Provides a sandbox to work on your components with whatever props you can dream of wanting set to make sure your components are in tip top shape before and during use in your application. If you are writing a component you should be writing stories about it.
The main menu in electron has keyboard accelators, but we still need one in the renderer for convenience.
91
114
92
115
Mousetrap fills that gap. It's a pretty decent little library despite not being maintained any more (lol@js). Does the job though. I've tried a couple of others but keep coming back to this one.
@@ -96,13 +119,17 @@ Mousetrap fills that gap. It's a pretty decent little library despite not being
96
119
97
120
> **ramda**
98
121
122
+
[ramda - github](https://github.com/ramda/ramda)
123
+
99
124
There's so much awesome packed in here. `pipe` for days. I'll be honest, it took me a long time get comfortable with `ramda`. Nowadays, you can pry it from my cold dead hands. PRECIOUS!!!
Copy file name to clipboardExpand all lines: docs/using.md
+20-1Lines changed: 20 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ I'm still deciding on a simple way, but there will be a script you can run.
19
19
20
20
```sh
21
21
# this does exist yet
22
-
npm run time-to-shine
22
+
npm run time-to-shine
23
23
```
24
24
25
25
@@ -75,6 +75,25 @@ npm run watch:tests
75
75
76
76
Now when you edit your files, it'll recompile & re-run the relevant tests on the fly. And it's quick!
77
77
78
+
If you are ready to see how much of your codebase is covered simply run:
79
+
80
+
```sh
81
+
npm run coverage
82
+
```
83
+
84
+
and check out the output in the coverage folder.
85
+
86
+
87
+
## Writing Components
88
+
89
+
When you are adding new components to your app you typically will want to write stories in `storybook`. You do this by simply creating a `<component name>.story.tsx` file along side your component and then writing stories that outline the different prop usage and put it in all the states that it could be in. While you are working on the component you will want to run
90
+
91
+
```sh
92
+
npm run storybook
93
+
```
94
+
95
+
and then switch to the storybook view from the `view` menu in your app so you can get a live preview of the component you are working on.
0 commit comments