musictheory / NilScript

Objective-C-style language superset of JavaScript with a tiny, simple runtime
Other
50 stars 5 forks source link

Add API to get runtime.js #121

Closed iccir closed 8 years ago

iccir commented 8 years ago

Currently, in our build script, we hardcode the location to runtime.js

    build_library_header({
        output_file: sub_soil_js,
        input_files: [
            "ext/lodash/lodash.custom.min.js",
            "node_modules/ojc/lib/runtime.js" // <--- hardcoded!  Bad Ricci!!!
        ]
    });

There should be actual API to get the runtime.js file:

const ojc = require("ojc");
let runtime = ojc.getRuntimePath();