diff options
Diffstat (limited to 'scripts/app.js')
| -rw-r--r-- | scripts/app.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/scripts/app.js b/scripts/app.js new file mode 100644 index 00000000..2ad7d5c0 --- /dev/null +++ b/scripts/app.js @@ -0,0 +1,28 @@ +(function() { +var config = { + //urlArgs: "bust=" + (new Date()).getTime(), // NOTE: useful for debugging + paths: { + jquery: 'external/jquery', + 'jquery-ui': 'external/jquery-ui', + 'd3': 'external/d3/d3', + FileSaver: 'external/FileSaver', + caret: 'external/caret', + autocomplete: 'external/autocomplete', + } +} + +if (window.is_node) { + // Testing path only + console.log('app: running under node'); + config.baseUrl = '../scripts/'; + window.rhizi_require_config = config; +} else { + // Main app path + require.config(config); + + requirejs(['main'], function(main) { + console.log('starting rhizi logic'); + main.main(); + }); +} +}()); |
