Discussion:
[dart-misc] pub: How to create local packages and add them to my local cache ?
Gen
2015-07-02 09:46:07 UTC
Permalink
Hi,

how can I create local packages and add them to my local pub cache ?

I have found no answer yet (https://www.dartlang.org/tools/pub)
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
ravi teja
2015-07-02 10:11:45 UTC
Permalink
It is termed as Path packages in Dart documentation

https://www.dartlang.org/tools/pub/dependencies.html#path-packages

Basically, you just have to provide the path to the local library like this:

dependencies: myPackage: path: /path/to/myPackage
Post by Gen
Hi,
how can I create local packages and add them to my local pub cache ?
I have found no answer yet (https://www.dartlang.org/tools/pub)
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Gen
2015-07-02 11:25:18 UTC
Permalink
Thanks for the reply.

Do you not think that pub should support a local publish and "download" of
code ?

What are the current best practices for development ?
Does one use filesystem paths like in your reply ?
Post by ravi teja
It is termed as Path packages in Dart documentation
https://www.dartlang.org/tools/pub/dependencies.html#path-packages
dependencies: myPackage: path: /path/to/myPackage
Post by Gen
Hi,
how can I create local packages and add them to my local pub cache ?
I have found no answer yet (https://www.dartlang.org/tools/pub)
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Günter Zöchbauer
2015-07-02 16:08:29 UTC
Permalink
You can run your own pub server locally.
It is still work in progress/misses some features but AFAIK some are using it successfully.
https://github.com/dart-lang/pub-dartlang
Post by Gen
Thanks for the reply.
Do you not think that pub should support a local publish and "download" of code ?
What are the current best practices for development ?
Does one use filesystem paths like in your reply ?
It is termed as Path packages in Dart documentation
https://www.dartlang.org/tools/pub/dependencies.html#path-packages
path: /path/to/myPackage
Hi,
how can I create local packages and add them to my local pub cache ?
I have found no answer yet (https://www.dartlang.org/tools/pub)
--
For other discussions, see https://groups.google.com/a/dartlang.org/
 
For HOWTO questions, visit http://stackoverflow.com/tags/dart
 
To file a bug report or feature request, go to http://www.dartbug.com/new
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Gen
2015-07-02 17:01:16 UTC
Permalink
Thanks. I will try it.
Hopefully it is simple enough because I see that it requires the App Engine
SDK <https://developers.google.com/appengine/downloads> for Python.
Post by Günter Zöchbauer
You can run your own pub server locally.
It is still work in progress/misses some features but AFAIK some are using it successfully.
https://github.com/dart-lang/pub-dartlang
Post by Gen
Thanks for the reply.
Do you not think that pub should support a local publish and "download"
of code ?
Post by Gen
What are the current best practices for development ?
Does one use filesystem paths like in your reply ?
It is termed as Path packages in Dart documentation
https://www.dartlang.org/tools/pub/dependencies.html#path-packages
Basically, you just have to provide the path to the local library like
path: /path/to/myPackage
Hi,
how can I create local packages and add them to my local pub cache ?
I have found no answer yet (https://www.dartlang.org/tools/pub)
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
Post by Gen
To unsubscribe from this group and stop receiving emails from it, send
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Don Olmstead
2015-07-02 23:06:40 UTC
Permalink
https://github.com/dart-lang/pub_server might be a better option. It
doesn't require app engine. The example directory runs a server that you
can use for testing.
Post by Gen
Thanks. I will try it.
Hopefully it is simple enough because I see that it requires the App
Engine SDK <https://developers.google.com/appengine/downloads> for Python.
Post by Günter Zöchbauer
You can run your own pub server locally.
It is still work in progress/misses some features but AFAIK some are
using it successfully.
https://github.com/dart-lang/pub-dartlang
Post by Gen
Thanks for the reply.
Do you not think that pub should support a local publish and "download"
of code ?
Post by Gen
What are the current best practices for development ?
Does one use filesystem paths like in your reply ?
It is termed as Path packages in Dart documentation
https://www.dartlang.org/tools/pub/dependencies.html#path-packages
Basically, you just have to provide the path to the local library like
path: /path/to/myPackage
Hi,
how can I create local packages and add them to my local pub cache ?
I have found no answer yet (https://www.dartlang.org/tools/pub)
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
Post by Gen
To unsubscribe from this group and stop receiving emails from it, send
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
ravi teja
2015-07-03 02:18:01 UTC
Permalink
Oh, sorry. I did not know, you wanted to run local pub server.

For development, I prefer path packages, You dont have to pub get or
upgrade every time. The changes that you make to path packages are
available immediately. It seriously reduces development time.
Post by Don Olmstead
https://github.com/dart-lang/pub_server might be a better option. It
doesn't require app engine. The example directory runs a server that you
can use for testing.
Post by Gen
Thanks. I will try it.
Hopefully it is simple enough because I see that it requires the App
Engine SDK <https://developers.google.com/appengine/downloads> for Python.
Post by Günter Zöchbauer
You can run your own pub server locally.
It is still work in progress/misses some features but AFAIK some are
using it successfully.
https://github.com/dart-lang/pub-dartlang
Post by Gen
Thanks for the reply.
Do you not think that pub should support a local publish and
"download" of code ?
Post by Gen
What are the current best practices for development ?
Does one use filesystem paths like in your reply ?
It is termed as Path packages in Dart documentation
https://www.dartlang.org/tools/pub/dependencies.html#path-packages
Basically, you just have to provide the path to the local library like
path: /path/to/myPackage
Hi,
how can I create local packages and add them to my local pub cache ?
I have found no answer yet (https://www.dartlang.org/tools/pub)
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
Post by Gen
To unsubscribe from this group and stop receiving emails from it, send
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Don Olmstead
2015-07-03 03:12:44 UTC
Permalink
I would second the path setup if you're developing a set of libraries. Pub
server is when you want to release them privately.
Post by ravi teja
Oh, sorry. I did not know, you wanted to run local pub server.
For development, I prefer path packages, You dont have to pub get or
upgrade every time. The changes that you make to path packages are
available immediately. It seriously reduces development time.
Post by Don Olmstead
https://github.com/dart-lang/pub_server might be a better option. It
doesn't require app engine. The example directory runs a server that you
can use for testing.
Post by Gen
Thanks. I will try it.
Hopefully it is simple enough because I see that it requires the App
Engine SDK <https://developers.google.com/appengine/downloads> for Python.
Post by Günter Zöchbauer
You can run your own pub server locally.
It is still work in progress/misses some features but AFAIK some are
using it successfully.
https://github.com/dart-lang/pub-dartlang
Post by Gen
Thanks for the reply.
Do you not think that pub should support a local publish and
"download" of code ?
Post by Gen
What are the current best practices for development ?
Does one use filesystem paths like in your reply ?
Am Donnerstag, 2. Juli 2015 12:11:49 UTC+2 schrieb Ravi Teja
It is termed as Path packages in Dart documentation
https://www.dartlang.org/tools/pub/dependencies.html#path-packages
Basically, you just have to provide the path to the local library
path: /path/to/myPackage
Hi,
how can I create local packages and add them to my local pub cache ?
I have found no answer yet (https://www.dartlang.org/tools/pub)
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
Post by Gen
To unsubscribe from this group and stop receiving emails from it,
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to
http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Anders Holmgren
2015-07-03 03:20:31 UTC
Permalink
Depends on if you are talking about an org that wants its own private pub repo or just one or more devs developing locally.

For the latter case I quite like path dependencies as I used to hate tracking down issues with maven caching behaving badly.

Managing these dependencies between your projects can be a pain though. That's why I created jefe

You tell it which packages are projects that you want to develop together and jefe uses that place the dependency info in your pubspecs to automate switching between path, git and hosted dependencies.

My setup for backlog.io had all 7 of my packages plus like 10 shelf ones, some dartlang ones like uri that I'm contributing to etc.

My dev loop is
jefe start myNewFeature
this creates feature branches in all the projects and sets other dependencies
jefe finish myNewFeature
Merges feature branch into develop branch and sets git dependencies between them
jefe release
Publishes hosted packages and sets hosted dependencies for those
Tags and merges to master
It looks in your main lib dart file to see what packages you export and sets tighter constraints for those

My dev loop is way easier to manage now
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Gen
2015-07-03 06:05:13 UTC
Permalink
Thank you all for your replies.

I will have a look at the proposed solutions.

Maybe I will end up writing my own build script:
- copy libraries from network and/or local cache.
- compile the project (or library)
- copy the compiled files to network and/or local cache.
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Loading...