For the project I'm doing, I'm writing each layer as reusable modules. The layers are:
User interface (general purpose library for connecting buttons and such)
Timer and event emitter
State machine
Curve generation and output processing
Output transmission (I2C)
I need to know how these should best be assembled. I've read the modules page but I still have questions.
Does the web IDE perform all the minification? Do I stand to gain any improvements/optimizations by using uglify-js2?
Is CommonJS the most efficient approach for Espruino builds using multiple custom modules? If you look at the output generated by a CommonJS system like Browserify, you'll see that a lot of junk has to be wrapped around each module to recreate the CommonJS system within a concatenated file.
When it comes time to sell Espruino Picos flashed with my code, how do I setup the production process?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
For the project I'm doing, I'm writing each layer as reusable modules. The layers are:
I need to know how these should best be assembled. I've read the modules page but I still have questions.
Does the web IDE perform all the minification? Do I stand to gain any improvements/optimizations by using uglify-js2?
Is CommonJS the most efficient approach for Espruino builds using multiple custom modules? If you look at the output generated by a CommonJS system like Browserify, you'll see that a lot of junk has to be wrapped around each module to recreate the CommonJS system within a concatenated file.
When it comes time to sell Espruino Picos flashed with my code, how do I setup the production process?