emmetio / codemirror

Emmet plugin for CodeMirror online editor
http://emmet.io
162 stars 43 forks source link

Build without Lodash? #9

Open chriscoyier opened 10 years ago

chriscoyier commented 10 years ago

Is there a way to build emmet.js without lodash being baked right into the file? Like lodash is already available globally so it just uses that?

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/2969098-build-without-lodash?utm_campaign=plugin&utm_content=tracker%2F438327&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F438327&utm_medium=issues&utm_source=github).
sergeche commented 10 years ago

Yeah, I think so. Recent Emmet core is written with AMD/Require.js modules and uses almond for compiling it into a single file.

You can try to install Emmet as NPM module (npm install emmet) into your project, create your own builder similar to this one but provide shim for Lodash

chriscoyier commented 10 years ago

Thanks we'll give it a shot as soon as we can!

chriscoyier commented 10 years ago

Howdy!

You don't have to leave this issue open since it's not really a bug, but I never had any luck with this but still have a need for it.

I figured I'd put a bounty on it, which I wrote up here: https://gist.github.com/chriscoyier/f9315fbbe0b5ad80673d

I see you have Bountysource on here, so if you'd rather I use that, lemme know.