summaryrefslogtreecommitdiff
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
parent3a1dc6f2bfc70a99a6dcf761b7d62bf0d2b45345 (diff)
Adds index file for loading app with webpack
-rw-r--r--web-ui/app/js/index.js18
-rw-r--r--web-ui/webpack.config.js1
2 files changed, 19 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('')
diff --git a/web-ui/webpack.config.js b/web-ui/webpack.config.js
index 1a97c78d..230b50ea 100644
--- a/web-ui/webpack.config.js
+++ b/web-ui/webpack.config.js
@@ -23,6 +23,7 @@ module.exports = {
'features': path.join(__dirname, '/app/js/features/features'),
'user_settings': path.join(__dirname, '/app/js/user_settings')
},
+ extensions: ['', '.js'],
moduleDirectories: ['app/js']
}
}