guardian / scribe

DEPRECATED: A rich text editor framework for the web platform
http://guardian.github.io/scribe/
Apache License 2.0
3.5k stars 245 forks source link

How deep is the AMD requirement? #152

Closed philcockfield closed 10 years ago

philcockfield commented 10 years ago

I was wondering how bound Scribe is to being an AMD (require.js) module?

We're using @meteorjs which has it's own package system, and so I'm trying to see if there is a way I can get the Scribe code into my "meteor package" without taking on the cost of also including the AMD module system, that would only be used for Scribe.

Thanks a ton for this package, you guys are doing some really interesting stuff! In particular the philosophy around what you're doing with scribe has a really good smell to it.

theefer commented 10 years ago

Would it help if the library was available in CommonJS/npm format? Or ES6 modules?

cjbell commented 10 years ago

Would be great to see Scribe as a Common JS module, or something that allows us to use it in that way :thumbsup:

lord2800 commented 10 years ago

ES6 modules seem to be transpilable to CommonJS and AMD (https://github.com/square/es6-module-transpiler), so perhaps that's the way to go?

TooTallNate commented 10 years ago

175 could be of interest to you.

theefer commented 10 years ago

Scribe is now available via npm/browserify too. @philcockfield Could you use that? Otherwise, how would you want to load Scribe? If globals, have a look at #83.

Closing for now as #83 is probably where the discussion should be.