Closed guybedford closed 11 years ago
There is # support for referencing a directory or file within a project:
volo add ace#lib/ace
I think that addresses the concern, but if not, we can reopen as needed.
Perfect, that works great. It would be good to document this a bit more clearly as it is incredibly useful. Perhaps include the 'path/to/folder' as a variation as well in the documentation for Volo add.
Good suggestion, reopening as a doc task for add.
I was just looking at how I would go about installing the ACE editor with Volo.
Basically, the entire subfolder, 'lib/ace' within the repo should be downloaded, but nothing else is necessary.
If there was a config option, say
baseDir
, the package.json could setbaseDir: 'lib/ace'
. This could either directly download the folder (just like theurl
property points to a file), or it could even imply running any directory checks, downloads and cleaning on that folder, based on the same package.json file. Themain
property in package.json points directly to this directory as well, so another option would be if themain
property is a directory to allow this to imply the directory download.Just some ideas on how to get this working for the repo. Any others welcome.