brackets-nodejs icon indicating copy to clipboard operation
brackets-nodejs copied to clipboard

Parse the package.json "scripts":[] for the Run as ... menu

Open Jackbennett opened this issue 10 years ago • 4 comments

Is it possible to just parse the projects Package.json scripts section for the menu actions to go in brackets?

There's an open ticket for npm debug I assume at some point someone will ask for custom tasks so is it possible to just skip to using the defined commands in the package?

For instance my project looks like;

  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start-dev": "nodemon server",
    "start": "node server.js"
  },

So I could get the "start dev" listed in the brackets menu.

Jackbennett avatar Aug 27 '14 21:08 Jackbennett

Yes, that's possible. Reading put the package.json shouldn't be a problem. In addition you have to watch for changes to reload the menu (I experienced some problem here in the past) and also update it when the project directory is changes.

Acconut avatar Aug 27 '14 21:08 Acconut

Is this project still alive? I would love to see this one implemented as I do all my work via npm scripts. But seems this one is open for over a year.

sagiegurari avatar Nov 03 '15 09:11 sagiegurari

I am not using Brackets as my main editor anymore but still kind of maintain this project. This mostly includes fixing bugs but not bigger features due to time issues. I am sorry. :(

Acconut avatar Nov 03 '15 21:11 Acconut

I can understand that. Anyway, thanks for the reply.

sagiegurari avatar Nov 03 '15 21:11 sagiegurari