Closed dgp1130 closed 8 years ago
Updated build process to bundle the source and test directories together with a CommonJS runtime to allow for imports from tests. File paths didn't work out as well as I'd hoped, but not too big a deal. Server side tests now support debugging as well, so breakpoints should work as expected. Note that on client and server tests the stack trace is wrong. It will say the error occurred on one line when it actually occurred on another. This is due to it ignoring source maps, but it wasn't big enough of an issue for me to look into right now.
The NPM module has also been updated and publishing process has been set. It should now be possible to just increment the package version and run npm publish
to push the latest version (I own the repository though, so only I can do it, muahaha).
Need to update the test suites to use ES6 imports rather than pulling each module from the global Uniform object. This will make the tests much cleaner and clean out the global Uniform object from having unnecessary crap on it. It would also be useful for server-side tests to support debugging so we can use breakpoints throughout.
Also need to update the NPM module so it can be installed with
require("uniform-validation")
from any project.