Commit Graph

14 Commits

Author SHA1 Message Date
Erik Arvidsson 2c5063013b Fix missing npm dep 2015-12-09 17:34:59 -05:00
Erik Arvidsson 325eecdc48 JS: Add watch support to copying flow files 2015-12-09 16:34:03 -05:00
Erik Arvidsson f31ea22051 JS: Add support for compiling in dev mode
When in dev mode we compile async functions to generators.

We also keep features that are available in Node5 and Chrome 47.
2015-12-09 12:34:33 -05:00
Erik Arvidsson 42eb0752f5 Update flow to 0.19 and fix new errors it found 2015-12-08 19:15:09 -05:00
Erik Arvidsson edac078091 Make `Splore work in Safari and Firefox
To make this happen I updated to Babel 6 and changed to the es2015
preset since Firefox/Safari do NOT support classes, let, generators...

Now that compiled code is not ES6 any more we can run Uglify on it
too.

'Splore is 200k minimized which isn't terrible.

Towards #603
2015-11-23 10:54:55 -05:00
Erik Arvidsson 480f516048 Switch text-encoding dependency
This is to reduce code size.
2015-11-17 10:37:52 -05:00
Erik Arvidsson de5e8b8ec0 Replace isometric-fetch
This replaces the fetch polyfill with 2 more targetted functions:
fetchText and fetchArrayBuffer

There is one implementation for node and one for browsers. Browserify
picks the browser version by reading the value out of package.json

Towards #605
2015-11-16 14:48:21 -05:00
Erik Arvidsson 54425c5b0e Rename js2 to js 2015-11-12 20:53:23 -05:00
Erik Arvidsson d71018a833 Remove old js/ directory 2015-11-12 20:48:29 -05:00
Rafael Weinstein aca5bcec33 Fix JS Tests 2015-09-23 13:06:28 -07:00
Erik Arvidsson 4639ca383a JS unit tests
This uses Karma with mocha+chai and browserify+babel. The tests
currently need to be run in a browser because we currently depend on
non node.js features (Blob and FileReader)

To run the tests go to <noms>/js/ and do `npm run start-test`.

Issue #256
2015-09-03 19:50:51 -04:00
Erik Arvidsson 1db5d485a9 Use whatwg-fetch in explore 2015-07-24 14:18:41 -07:00
Rafael Weinstein e20ed5c289 Babelify within noms js module 2015-07-20 17:59:42 -07:00
Rafael Weinstein 0087a45df9 Reorg js code into common module 2015-07-20 17:14:30 -07:00