app.min.js
and one index.html
, awesome!
Opal has the best code ever, this one for example: throw #$!;
https://github.com/opal/opal/blob/master/opal/corelib/kernel.rb#L1048-L1052
app.min.js
and index.html
, and threw it into my site. how to bundle inspire by @barriehadfield another project.
export
a class in opal such that I can use it from a typescript file?# foo.rb
class Foo
def bar
"barbar!"
end
end
// otherfile.ts
import { Foo } from './foo'
console.log((new Foo).bar());
console.log(Opal.Foo.$new().$bar());
but I'm guessing, I don't know TS
npm install opal
:)