Seriously.js
Seriously.js copied to clipboard
npm it
Hey @brianchirls it has been a while! Could we get this library on npm?
Sure. I need to figure out the best way to handle plugins though. Right now, everything uses UMD and depends on either a globally declared Seriously object or requirejs, which I think is not the best way.
Do you have any suggestions on what would work for your use case?
Hmm...
const Seriously = require('seriously') // or import
const accumulator = require('seriously/effects/seriously.accumulator')
const ascii = require('seriously/effects/seriously.ascii')
const mySeriously = new Seriously({plugins: [accumulator, ascii]})
?
I like that approach. The plugins shouldn't need a reference to the main lib
I was thinking something like that as well. It'd be a breaking change, but I could have it still register the plugin globally if the window.Seriously object is there.
@brianchirls you can check out the Lebab project, to convert requirejs AMD to the ES6 "imports". https://lebab.io/
UMD has some handy module wrappers. https://github.com/umdjs/umd
any progress on this?
ugliest javsascript repository i have seen ever
😂😂😂
Hi, It's been a while and I haven't seen an npm/yarn installation. I found a solution to the problem on stackoverflow. It originally discusses meteor but the solution also applies to npm/yarn https://stackoverflow.com/questions/37739097/am-trying-to-import-seriously-js-into-a-meteor-application-am-receiving-an-obje/64550800#64550800