angular-livescript-seed icon indicating copy to clipboard operation
angular-livescript-seed copied to clipboard

Dependency examples

Open Fresheyeball opened this issue 11 years ago • 2 comments

It would rock if you put up some examples of how to include dependencies, specifically prelude.ls. I've been boxing to get prelude.ls in for hours now, and its been a bit of a rabbit hole.

Fresheyeball avatar Jul 07 '14 03:07 Fresheyeball

Generally you can add js to bower.json.ls, but it seems the prelude versions on bower don't play nicely with our commonjs-require module :/

clkao avatar Sep 07 '14 16:09 clkao

+1 I'd love to see how to include prelude-ls !

edit:

the following worked for me: download prelude-ls with npm or bower, include bower_components/prelude-ls/browser/prelude-browser-min.js in the gulpfile, and to use prelude in a source file, either require it entirely:

prelude = require 'prelude-ls'

or just the functions needed:

{map, sum} = require 'prelude-ls'

just like says the doc: http://www.preludels.com/#installation

that worked for me with Angularjs and gulp.

vindarel avatar Oct 27 '15 14:10 vindarel