summaryrefslogtreecommitdiff
path: root/web-ui/app/js
diff options
context:
space:
mode:
authorAnike Arni <aarni@thoughtworks.com>2016-12-27 11:21:12 -0200
committerAnike Arni <aarni@thoughtworks.com>2016-12-27 11:21:12 -0200
commit411e1f8cfa06fbd049fb055a4f453b56acdb7153 (patch)
tree7c1a3cc7e5f252c9ebd5ae2bcc1b836245a21cb1 /web-ui/app/js
parent3a1dc6f2bfc70a99a6dcf761b7d62bf0d2b45345 (diff)
Adds index file for loading app with webpack
Diffstat (limited to 'web-ui/app/js')
-rw-r--r--web-ui/app/js/index.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/web-ui/app/js/index.js b/web-ui/app/js/index.js
new file mode 100644
index 00000000..081fe51c
--- /dev/null
+++ b/web-ui/app/js/index.js
@@ -0,0 +1,18 @@
+import compose from 'flight/lib/compose'
+import registry from 'flight/lib/registry'
+import advice from 'flight/lib/advice'
+import withLogging from 'flight/lib/logger'
+import debug from 'flight/lib/debug'
+import events from 'page/events'
+import initializeDefault from 'page/default'
+import 'js/monkey_patching/all'
+
+window.Pixelated = window.Pixelated || {}
+window.Pixelated.events = events
+
+compose.mixin(registry, [advice.withAdvice, withLogging])
+
+debug.enable(true)
+debug.events.logAll()
+
+initializeDefault('')