Skip to content
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

Wrong way to start watchify in readme #56

Open
roosmaa opened this issue Mar 25, 2017 · 0 comments
Open

Wrong way to start watchify in readme #56

roosmaa opened this issue Mar 25, 2017 · 0 comments

Comments

@roosmaa
Copy link

roosmaa commented Mar 25, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant