How to use pub build by command line directly from terminal? Using dart2js is easy, it works like this:
/Applications/dart-sdk/bin/dart2js --minify --out=file:/Users/muggins/my_project/web/my_project.dart.js /Users/muggins/my_project/web/my_project.dart
But this creates the my_project.dart.js file into the same directory as my_project.dart. How can I obtain the distinct directory build by command line without using a software like ItelliJ IDEA?
I can't get any result from https://www.dartlang.org/tools/pub/cmd/pub-build.html.