You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pub serve and pub run are used for launching web and/or command line apps. These are the commands that make most sense to be bound to F5.
[ ] Allow user to set startup object
[ ] If the "startup item" is set to something in the web folder, use pub serve
[ ] If the "startup item" is set to an html file in the test folder, use pub serve test
[ ] If the "startup item" is set to a dart file, then pub run should be used
[ ] Allow the user to set browser to use for pub serve, including Dartium user-data-dir
pub serve
Execute pub serve from the project root (if it is not already running)
Launch the default browser for the pub site (localhost:8080/ *) with the startup file tagged on the end
A port number can be provided, which might be best, to avoid clashes with multiple projects open
pub serve should be run like IIS Express; the process should be kept live, even if the user closes the browser and is not debugging; as the development cycle will involve changing files in VS, alt+tabing back to the browser and hitting refresh. Unlike IIS Express, there is no systray icon or any indication for the user that it's running; so we must stop the process on exist/project unload, and seamlessly reuse the process if it's already running and the user hits F5.
pub serve test
This is the same as pub serve but points at the test folder; allowing tests to be executed in the browser.
pub run
Execute pub run {path to file} from the project root
pub run executes the provided Dart script, but will automatically restore packages, run transformers (etc.) before running. Although we could instead use dart.exe {path to file} I think using pub would be more user-friendly, as if the user has opened a project they've cloned from the web, they wouldn't need to remember to run pub get first.
The text was updated successfully, but these errors were encountered:
DanTup
changed the title
Add an option to execute "pub get" and other useful pub commands
Implement "pub get", "pub serve", "pub build" etc.
Jul 7, 2014
pub serve
andpub run
are used for launching web and/or command line apps. These are the commands that make most sense to be bound toF5
.[ ] Allow user to set startup object
[ ] If the "startup item" is set to something in the
web
folder, usepub serve
[ ] If the "startup item" is set to an html file in the
test
folder, usepub serve test
[ ] If the "startup item" is set to a dart file, then
pub run
should be used[ ] Allow the user to set browser to use for
pub serve
, including Dartiumuser-data-dir
pub serve
pub serve
from the project root (if it is not already running)localhost:8080/
*) with the startup file tagged on the endpub serve
should be run like IIS Express; the process should be kept live, even if the user closes the browser and is not debugging; as the development cycle will involve changing files in VS,alt+tab
ing back to the browser and hitting refresh. Unlike IIS Express, there is no systray icon or any indication for the user that it's running; so we must stop the process on exist/project unload, and seamlessly reuse the process if it's already running and the user hits F5.pub serve test
This is the same as
pub serve
but points at thetest
folder; allowing tests to be executed in the browser.pub run
pub run {path to file}
from the project rootpub run
executes the provided Dart script, but will automatically restore packages, run transformers (etc.) before running. Although we could instead usedart.exe {path to file}
I think usingpub
would be more user-friendly, as if the user has opened a project they've cloned from the web, they wouldn't need to remember to runpub get
first.The text was updated successfully, but these errors were encountered: