Currently, I am attempting to incorporate Raphael.js into my project in a highly modular manner. Since Raphael has a registered bower component, utilizing that option seemed like the most logical choice.
Following some instructions from the Snap.svg readme (which eventually enabled me to install Snap), I have made progress with the following steps (starting from the root directory of my project):
bower install raphael --save
cd dev/components/raphael/
npm install -g grunt-cli
cd dev/
npm install
grunt
The final step seems to initiate the building process for the component but encounters an immediate failure:
Running "build:dist" (build) task
Warning: Unable to read "../eve/eve.js" file (Error code: ENOENT). Use --force to continue.
Aborted due to warnings.
The error is understandable as there is no eve.js
file at the specified path. I understand that it is a dependency of Raphael, but where and how should I go about installing it?
For what it's worth, my knowledge of bower and grunt is limited, so there may be a simple step that I am overlooking. Despite several hours of trial and error, I have been unable to find a solution using my best Google search skills.