-
Notifications
You must be signed in to change notification settings - Fork 17
Home
Francisco Ryan Tolmasky I edited this page Oct 18, 2016
·
8 revisions
DemoKit demos are just normal JavaScript modules. They automatically are passed through Babel and support Generic JSX. DemoKit also comes with many built-in utilities that you can require:
-
require("demokit")
- Base utilities -
require("demokit/window/*")
- Built-in Windows -
require("demokit/mouse")
- Controlling the mouse -
require("demokit/keyboard")
- Simulating keyboard commands -
require("demokit/execute")
- Executing arbitrary JavaScript
$ demokit new my-demo
$ demokit ./my-demo/index.js
The new
command will create a template project for you. Simply edit the index.js, or add more files, and then run using the demokit command.