godo icon indicating copy to clipboard operation
godo copied to clipboard

Wrong way to start watchify in readme

Open roosmaa opened this issue 7 years ago • 0 comments

In the README the assets? task definition is a bit wrong.

    p.Task("assets?", nil,  func(c *do.Context) {
        // The "?" tells Godo to run this task ONLY ONCE regardless of
        // how many tasks depend on it. In this case watchify watches
        // on its own.
	    c.Run("watchify public/js/index.js d -o dist/js/app.bundle.js")
    }).Src("public/**/*.{css,js,html}")

It should use c.Start(..) instead of regular run, otherwise this task would never finish as the watchify process will only exit when killed.

roosmaa avatar Mar 25 '17 17:03 roosmaa