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 May 15, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+64-2Lines changed: 64 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,9 @@ For those that haven't used or seen dat.GUI before, it's basically a GUI for upd
11
11
-[Usage](#usage)
12
12
-[Docs](#docs)
13
13
*[`DatGui`](#datgui)
14
+
+[props](#props)
14
15
*[Components](#components)
16
+
+[Common props](#common-props)
15
17
+[`DatBoolean`](#datboolean)
16
18
+[`DatButton`](#datbutton)
17
19
+[`DatColor`](#datcolor)
@@ -20,14 +22,26 @@ For those that haven't used or seen dat.GUI before, it's basically a GUI for upd
20
22
+[`DatPresets`](#datpresets)
21
23
+[`DatSelect`](#datselect)
22
24
+[`DatString`](#datstring)
25
+
-[Scripts](#scripts)
26
+
+[`build`](#build)
27
+
+[`dev`](#dev)
28
+
+[`dev:migrate`](#devmigrate)
29
+
+[`dev:promote`](#devpromote)
30
+
+[`example`](#example)
31
+
+[`example:deploy`](#exampledeploy)
32
+
+[`test`](#test)
33
+
+[`test:watch`](#testwatch)
34
+
+[`lint`](#lint)
35
+
+[`lint:fix`](#lintfix)
36
+
+[`toc`](#toc)
23
37
-[What's missing](#whats-missing)
24
38
-[Roadmap](#roadmap)
25
39
26
40
## Demo
27
41
28
-
[Checkout the demo!](http://rohandeshpande.com/react-dat-gui)
42
+
[Checkout the demo!](https://rohan-deshpande.github.io/react-dat-gui/)
29
43
30
-
The demo is a deployed version of the latest production build of `./example`.
44
+
The demo is a deployed version of the latest production build of `./example`. There's also a `dev` directory where you can prototype changes to the source code easily. Both of these have been bootstrapped with `create-react-app`.
31
45
32
46
## Installation
33
47
@@ -183,6 +197,54 @@ A select component for updating a value with one of the options supplied via the
183
197
184
198
A simple text input component that can be used to mutate strings.
185
199
200
+
## Scripts
201
+
202
+
There are a few NPM scripts in the root `package.json` for developing changes to the repo's source code as well as running tests and deploying the demo.
203
+
204
+
#### `build`
205
+
206
+
Builds the package for publishing.
207
+
208
+
#### `dev`
209
+
210
+
Runs the app in `./dev`.
211
+
212
+
#### `dev:migrate`
213
+
214
+
Migrates the code in `./src` to `./dev/src/react-dat-gui`. Handy for making sure you're developing with the latest source code.
215
+
216
+
#### `dev:promote`
217
+
218
+
Promotes the code in `./dev/src/react-dat-gui` back up to the root of the repo. Use this when you're happy with the changes you've been developing.
219
+
220
+
#### `example`
221
+
222
+
Runs the app in `./example`.
223
+
224
+
#### `example:deploy`
225
+
226
+
Deploys the production build of the app in `./example` to the `gh-pages` branch of this repo.
227
+
228
+
#### `test`
229
+
230
+
Runs unit tests.
231
+
232
+
#### `test:watch`
233
+
234
+
Runs unit tests and watches for changes.
235
+
236
+
#### `lint`
237
+
238
+
Runs `eslint` on the supplied path.
239
+
240
+
#### `lint:fix`
241
+
242
+
Runs `eslint --fix` on the supplied path.
243
+
244
+
#### `toc`
245
+
246
+
Prints the `README.md` table of contents into the console.
247
+
186
248
## What's missing
187
249
188
250
There are still a few features from the original implementation missing from this package. These are mainly related to saving and loading data as well as local storage. Animations for folder expanding/collapsing is also not currently implemented, but shouldn't be too hard to do.
0 commit comments