These are chat archives for biojs/biojs

23rd
Jun 2016
David Dao
@daviddao
Jun 23 2016 10:12
@fayeli nice video, looks almost like a pretty cool halloween costume : ) . To answer your question: Almost every BioJS component uses CommonJS format for loading (because that is how node does it). But you can still keep RequireJS for your module and publish it as node module (so no refactoring needed). Have a look at http://requirejs.org/docs/node.html#nodeModules . Looking forward to more videos !
Sebastian Wilzbach
@wilzbach
Jun 23 2016 10:21
@daviddao that's not entirely right, you need to bundle your component into one file. You can't just publish AMD modules on npm - no one would be able to use it. There are some transformers from AMD to CJS that might be worth looking at. Moreover you can also use es6 modules if you want to be a bit more modern, AMD is an outdated technology anyhows.