Closed mttwc closed 7 years ago
The main issue is with browserify, that is running super slowly. I'm investigating an incremental bundling process with watchify that will hopefully allow for super quick build times after the first one.
I found that watchify would not be suitable for our needs as it requires the starting of some sort of watch process. https://github.com/jsdf/browserify-incremental looks like it will allow us to cache browserified results between explicit build commands, so I'll try and make that work.
Testing browserifyinc on the cmd line on clipper.js yields a roughly 5.3x speedup. I'm trying to get it to work in our gulp :(
Got it to work, but when sharing the same cache, the speedup isn't as great as what was reflected in my initial testing on the command line. I'm going to try and find out why this is so.
This might be because each test file is built seperately into its own output, so there's a lot of repeated imports going on. I'll investigate if we can build a single test file with all the tests inside.