What Is -O Flag in Yarn?

I am getting through Nuxt installation guide and starting the app is done with this command:

yarn dev -o

What is the -o?

1

2 Answers

From the yarn run page:

yarn run test -o --watch

Running this command will execute jest -o --watch

From the yest documentation

Run tests related to changed files based on hg/git (uncommitted files):

jest -o

So looks like it runs test against the changed files in your workspace not against the commited files in your repository

yarn dev -o is actually related to the commands in the scripts in package.json. To be more specific it's related to this line: "dev": "nuxt dev". Exploring Nuxt documentation on commands there is this option --open, -o, which means Open URL in browser.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest