diff options
| author | Alon Levy <alon@pobox.com> | 2014-12-16 17:37:42 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-12-16 17:37:42 +0200 |
| commit | ade19de410e0a789a921ec1666b278b2a64176d6 (patch) | |
| tree | c4c54b106de93609ca7bb70a20fd4be696715dbe /src/client/app.js | |
| parent | c7d026b1d504323a8c61d51b726e5e8d2337fc4b (diff) | |
moving files around after repository merger
Diffstat (limited to 'src/client/app.js')
| -rw-r--r-- | src/client/app.js | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/client/app.js b/src/client/app.js new file mode 100644 index 00000000..39acdde7 --- /dev/null +++ b/src/client/app.js @@ -0,0 +1,31 @@ +(function() { + var lib_path = '../lib/'; + var config = { + paths: { + jquery: lib_path + 'jquery', + 'jquery-ui': lib_path + 'jquery-ui', + 'd3': lib_path + 'd3/d3', + FileSaver: lib_path + 'FileSaver', + caret: lib_path + 'caret', + autocomplete: lib_path + 'autocomplete', + Bacon: lib_path + 'Bacon', + } + } + + config.urlArgs = (typeof local_config != 'undefined') && local_config.urlArgs; + +if (window.is_node) { + // Testing path only + console.log('app: running under node'); + config.baseUrl = '../src/'; + window.rhizi_require_config = config; +} else { + // Main app path + require.config(config); + + requirejs(['main'], function(main) { + console.log('starting rhizi logic'); + main.main(); + }); +} +}()); |
