Pergunta

I have create a folder (named webapp) in a 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 correctly download and some link to this folder are created in some default folders ( eg: web, out ecc ).

there is a way to generate automatically a link to the package folder in my webapp ( or any custom folder ) folder?

Foi útil?

Solução

I don't think it is possible to make pub generate packages in a not standard directory.

In pub install documentation you can read the section Linked packages directories :

It assumes your package is laid out according to the package layout guide, and creates a linked packages directory in bin/, test/, and example/, as well as their subdirectories.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top