Commit Graph

22 Commits (master)

Author SHA1 Message Date
Paul Shapiro 63132bba41 resolved npm security warnings
5 years ago
Paul Shapiro 3073a0e81c c 2018 -> 2019
5 years ago
Paul Shapiro 18b281e134 enabled asmjs as additional build target, and added code to monero_utils/MyMoneroCoreBridge.js with preliminary wasm support detection and fallback to loading separated asm.js file (and different MyMoneroCoreCpp for ASMJS) to remove need for wasm users to load asmjs and asmjs loading code; the asm.js file is separated out from MyMoneroCoreCpp_ASMJS.js with --separate-asm to improve initial load time and, more importantly here, to enable bin/package_browser_js and other webpack like builds to keep the majority of the asmjs separate from the main mymonero_core.js (or e.g. mymonero_app_browser.js) bundle, so that wasm users don't have to load the asmjs along with the main app bundle - however, the overhead of bundling MyMoneroCoreCpp_ASMJS.js into such a main bundle does still exist. in near future, it would be nice to add an option to webpack.config.browser.common.js or bin/package_browser_js or possible just inheriting/alternate versions of those which can opt to remove asmjs support and throw an exception or alert if it's simply not supported - this is probably what MyMonero will move to within a year or two as legacy browsers fade from usage
6 years ago
Paul Shapiro 319174b16d added webpack browser library bundling process
6 years ago
Paul Shapiro aa70f6c480 package.json: v 1.1.0 for ringsize 11
6 years ago
Paul Shapiro 0e48a02c29 cleaned up code around test declarations; revived a few old tests for new methods for #56, and added method scaffolds for them (incremental commit); replaced Jest with Mocha
6 years ago
Paul Shapiro 12913740af package.json: removed old async dependency - zero deps\!
6 years ago
Paul Shapiro ef830ad28a lots of moving things around; implemented promise constructor for monero_utils (which is actually MyMoneroCoreBridge, a new class to replace cnUtil).. this was chosen after trying both promises directly in the functions and async/await in one or two decent patterns in order to avoid the requirement that integrators support async/await and to retain the option for calls to monero_utils to remain synchronous - added src/module-post as a post-js in order to fix emscripten .then infinite loop ... this PR does not include any kind of support for calling from electron renderer to electron main - that is, the code to detect electron renderer, then intercept ret.err_msg and throw only if not in electron renderer, and relay ret.err_msg otherwise has been removed for the moment.. will likely be added back
6 years ago
Paul Shapiro 3a764f57ed removed old jest tests.. test which requires index.js triggers Math.random throw somehow.. crypto module / env probably not detected in emscripten.. considering dumping jest(..\?); --verbose on jest call
6 years ago
Paul Shapiro fb433f5c16 removing some now unused files and switching pid gen to monero_utils
6 years ago
Paul Shapiro ad4d8024f8 modified emcpp build script organization and added flags
6 years ago
Paul Shapiro b529bdbeaa fix ups to emscripten build procedures; swapped cryptonote_crypto_EMSCRIPTEN with MyMoneroCoreCpp.(js,wasm), and had to introduce blocking to methods which use CNCrypto var due to new async Module init; updated Readme
6 years ago
Paul Shapiro 7a7148537c initial emjs build & test chain impl - excluding it from global jest tests pending imminent wasm parent path fix PR merge
6 years ago
Paul Shapiro f69da791fc corrected package.version to 1.0.0 to resolve #36
6 years ago
HenryNguyen5 dbdc2bb6b2 Add node test env, ignore nacl for test coverage
6 years ago
HenryNguyen5 3bcaeaf330 Add code coverage command
6 years ago
HenryNguyen5 dc78f300d6 Add Jest depdendency
6 years ago
HenryNguyen5 6f3142aa1c Add prettier support
6 years ago
Paul Shapiro 5ff3d093ad async as package.json dep
6 years ago
Paul Shapiro 5e210a18a9 added index.js to support npm+package.json
6 years ago
Paul Shapiro 2e868e0eff
Amendments
6 years ago
Brad Oyler 0278cf1b66 add package.json
6 years ago