Add Run/Debug for framework Follow
I'd like to add Run and Debug for BlitzJS (React - NextJS) framework. It's quite like MeteorJS that it has its own command and .cmd file to start the development server.
For example, MeteorJS, you type 'meteor' on the terminal to run it. The .cmd file on Windows is C:\Users\<user>\AppData\Roaming\npm\meteor.cmd,
whilst BlitzJS, you type 'blitz dev' on the terminal to run it. The .cmd is C:\Users\<user>\AppData\Roaming\npm\blitz.cmd.
WebStorm provides a preset to add Run/Debug MeteorJS, but BlitzJS or NextJS. I'd like to know how to customly add the same for Blitz (and probably more framework) in the future.
Please sign in to leave a comment.
You can use either Node.js or NPM run configurations to run your app; in the former case, you have to specify a path to
node_modules\blitz\bin\blitzev
in the JavaScript File: field and adddev
to Application parameters:; to use NPM config, just add a script that runsblitz dev
to your package.json and start this script from a gutter (or NPM tool window). See https://www.jetbrains.com/help/webstorm/2021.2/installing-and-removing-external-software-using-node-package-manager.html#ws_npm_running_npm_scripts