Add package link to custom folder
I created a folder (named webapp) in the Dart project where I put some server side classes. When I run pub install
(or pub update
) to import the libraries that I use in the project, the dependencies are loaded correctly, and some link to this folder is created in some default folders (for example: web, out ecc).
is there a way to automatically create a link to the package folder in my webapp folder (or any custom folder)?
source to share
I don't think there is anything that can be done to pub
generate packages
in a custom directory.
In the pub install documentation you can read the Related packages
Directories section :
It assumes that your package is laid out according to the packaging guidelines and creates a linked directory
packages
inbin/
,test/
andexample/
, as well as their subdirectories.
source to share