New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pub command to deploy a web dir #6006
Comments
Added this to the Later milestone. |
Marked this as blocking #8263. |
Issue #8102 has been merged into this issue. |
Can you give us an idea of what this will do? Thanks! |
The immediate goal is just to bake all the external dependencies in to a directory with no outgoing symlinks. This directory can then be (relatively) easily copied to a server and served statically, or run locally without fear of being disrupted by e.g. deletion of the pub cache. |
Will it handle static assets that come in from a package? e.g. dart.js ? (not sure what you mean by "external dependencies") |
We've talked this over a little more, and we have a more specific idea of what it's going to do. It'll copy everything in "web" into a deploy directory, run dart2dart and dart2js on all the entrypoints, and clean up the Dart source files. This will produce a directory that can be served without any additional steps. |
By copy, you mean "if it's symlinked in, it'll get actually copied to this build directory". So, to get 3rd party assets like dart.js, just make sure they are in their own lib directory. ? |
The deploy directory won't have any package symlinks. All the Dart code will be compiled together using dart2dart or dart2js. For the first iteration of this, we don't plan to support assets. |
Thanks, I understand the deploy dir won't have symlinks. Was wondering how dart.js will get into my deploy dir. Sounds like I can add a manual copy step to get that and other static assets into deploy dir. |
Pub will need to access dart2js, but currently the relative path from pub to dart2js differs between the repo and the SDK. Marked this as being blocked by #6619. |
Issue #10544 has been merged into this issue. |
Added Fixed label. |
This comment was originally written by mdem...@google.com Any details on why this is "fixed"? I assume there's a "pub deploy" command or something now, but I'm not having any luck Googling for details about it. Also, http://pub.dartlang.org/doc/ including the "Docs" drop down menu don't mention any deploy commands. |
This issue has been moved to dart-lang/pub#221. |
I need to deploy a web/ dir that's inside my pub package. It would be great if pub had some command to make this easy. Perhaps, create a tar.gz of web/ with the correct packages/ copy or symlink.
The text was updated successfully, but these errors were encountered: