Use Ember CLI with a forked library


#1

So, I just forked a project on github, which builds with grunt. I thought I was being smart and just edited the .Brocfile to include the relative path on my file system to the compiled js files instead of the path to vendor/my-library/something.js.

This actually kind of works… sometimes… ok, if I delete the tmp folder. If I don’t delete the tmp folder, I get this error message every time ember CLI reloads (when running ember server )

EEXIST, file already exists '/Users/user/Code/ember/project/tmp/my-lib/dist/my-lib.js'
Error: EEXIST, file already exists '/Users/user/Code/ember/project/tmp/my-lib/dist/my-lib.js'
    at Object.fs.openSync (fs.js:432:18)
    at Object.fs.writeFileSync (fs.js:971:15)

Is there a way to make ember CLI work with a forked library?


#2

Add the github repo to the bower.json like

$ bower install --save git://github.com/user/package.git#branch-or-version

and then import the vendor dist file described here http://www.ember-cli.com/#managing-dependencies