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...
I am getting through Nuxt installation guide and starting the app is done with this command:
yarn dev -o
What is the -o?
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.