mirror of
https://github.com/vale981/tridactyl
synced 2025-03-10 12:46:38 -04:00

Motivation: - Most test frameworks expect modules - I'm told they're the future Changes: - Every typescript source file is now an es6 module - Build system is now webpack (tho rollup makes nicer outputs) - Outputs of buildsystem are one js file per entry point (background, content, commandline_frame) - These bundled js files are generated by traversing the dependency graph of each entry point
13 lines
453 B
TypeScript
13 lines
453 B
TypeScript
/** Background script entry point. */
|
|
|
|
import * as Controller from "./controller"
|
|
import * as keydown_background from "./keydown_background"
|
|
import * as CommandLine from "./commandline_background"
|
|
|
|
// Send keys to controller
|
|
keydown_background.onKeydown.addListener(Controller.acceptKey)
|
|
// To eventually be replaced by:
|
|
// browser.keyboard.onKeydown.addListener
|
|
|
|
// Send commandline to controller
|
|
CommandLine.onLine.addListener(Controller.acceptExCmd)
|