build-replica

0.1.4 • Public • Published

Replica 0.1v

Replica is in early stages for being both JavaScript static analyser and native compiler. Any code that is not statically written (eval, dynamic code loading) is not supported and will net compilation errors. Currently code is compiled to C++ and piggybacks on C++ compiler work.

Why

  • Smaller executables and not reliant on WebView packages
  • More granular control over memory and performance
  • Ability to compile back to WASM and potentially better minifying & uglifying options when recompiling back to JavaScript.

Usage

npm install
npm run dev

Open http://localhost:8090 and in console compiled code(located in data/index.js) will be outputed out. Runtime library (replica.cpp) is located in libs/replica.cpp.

Next Milestone

  • Support for missing basic features
  • Texture loading & support
  • Input support
  • CLI tools
  • Online sandbox

License

MIT License

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i build-replica

    Weekly Downloads

    89

    Version

    0.1.4

    License

    MIT

    Unpacked Size

    111 kB

    Total Files

    34

    Last publish

    Collaborators

    • tenjou