opal/opal
gitter chat history into one text file, if you want search something , please visit https://zw963.github.io and download chat file.
@elia Hi Elia,
I'm trying to work with D3 and Opal.
I found your article (written in 2014): https://dev.mikamai.com/2014/06/04/learning-d3js-basics-with-ruby-and-opal/
And I also found a library: https://github.com/taw/opal-d3
What is your opinion and your advice in order to get Opal and D3 working well ? Tx.
rake http
, following is error message:Building http
running
module.js:471
throw err;
^
Error: Cannot find module 'glob'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at singleton_class_alloc.$$node_require [as $node_require] (/home/public/Dropbox/others/Project/opal/0.11/opal-node/http.js:22699:63)
at /home/public/Dropbox/others/Project/opal/0.11/opal-node/http.js:23016:26
at Opal.modules.nodejs/dir (/home/public/Dropbox/others/Project/opal/0.11/opal-node/http.js:23057:5)
at Object.Opal.load (/home/public/Dropbox/others/Project/opal/0.11/opal-node/http.js:2192:7)
at Object_alloc.Opal.require [as $require] (/home/public/Dropbox/others/Project/opal/0.11/opal-node/http.js:2216:17)
at Opal.modules.nodejs (/home/public/Dropbox/others/Project/opal/0.11/opal-node/http.js:23214:8)
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