Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Unified Diff: sky/tools/skygo/sky_server.go

Issue 990493002: Make package: work like Dart expects in preparation for a Sky SDK (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Made deploy_sdk 100x faster in the --dev-environment case Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sky/tools/skygo/sky_server.go
diff --git a/sky/tools/skygo/sky_server.go b/sky/tools/skygo/sky_server.go
index a1999b948586bd1d30df2934623e6a7ef3a6b2d8..a8ca2ccc9bbac3d50fc3218bb3a4744175ab302c 100644
--- a/sky/tools/skygo/sky_server.go
+++ b/sky/tools/skygo/sky_server.go
@@ -55,13 +55,16 @@ func main() {
// and they *must* be before any unnamed arguments. There are better ones:
// https://godoc.org/github.com/jessevdk/go-flags
// but for now we're using raw-go.
- if flag.NArg() != 2 {
+ if flag.NArg() != 3 {
usage()
}
root, _ := filepath.Abs(flag.Arg(0))
port := flag.Arg(1)
+ packageRoot := flag.Arg(2)
+ // genRoot should not be needed once we figure out how mojom generation
+ // for sdk users should work.
genRoot := path.Join(root, "out", *configuration, "gen")
fmt.Fprintf(os.Stderr, "Mappings for localhost:%s:\n", port)
@@ -77,6 +80,7 @@ func main() {
})
addMapping("/gen/", genRoot)
+ addMapping("/packages/", packageRoot)
http.ListenAndServe(":" + port, nil)
}
« sky/sdk/README.md ('K') | « sky/tools/skydb ('k') | sky/tools/skygo/sky_server.sha1 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698