Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
feat(cli): add debug option to yarn dev
Browse files Browse the repository at this point in the history
  • Loading branch information
patzick committed Aug 27, 2020
1 parent 2bf210e commit 92c8601
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/cli/src/commands/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,14 @@ const command: GluegunCommand = {
await toolbox.cms.invokeRefreshCMS();
await toolbox.languages.invokeRefreshLanguages();

// for debug: node --inspect node_modules/.bin/nuxt
await spawn("yarn nuxt", {
const debugOn = toolbox.parameters.options.debug;

let spawnCommand = "yarn nuxt";
if (debugOn) {
spawnCommand = "node --inspect node_modules/.bin/nuxt";
}

await spawn(spawnCommand, {
stdio: "inherit",
});
},
Expand Down

1 comment on commit 92c8601

@vercel
Copy link

@vercel vercel bot commented on 92c8601 Aug 27, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.