angad-k / wawesome

Script for compiling cpp files to wasm along with recompilation on modification

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wawesome ⚡

Episode 2 of a number of experiments I have been doing to figure out the ease of coding and benefits of using emscripten to compile C++ to Wasm.


This script implements :

⚡ Setting target directories, exports and input files through a JSON file

⚡ Recompilation on modification

🕒 Will add more features as I stumble upon more usecases


How to use :

  • Use node .\wawesome.js setup to setup required node modules for recompilation (and anything else that I might add in the future).
  • Use node .\wawesome.js start to compile the code to wasm and start a http server (this is for current experimentation, will eventually start the server for whatever frontend framework we're using; could also make this a configurable command) The script shall now look for code changes and recompile if it detects any.

About

Script for compiling cpp files to wasm along with recompilation on modification


Languages

Language:JavaScript 54.5%Language:C++ 41.3%Language:HTML 4.2%