{"action":"created","issue":{"url":"https://api.github.com/repos/madskristensen/NpmTaskRunner/issues/19","repository_url":"https://api.github.com/repos/madskristensen/NpmTaskRunner","labels_url":"https://api.github.com/repos/madskristensen/NpmTaskRunner/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/madskristensen/NpmTaskRunner/issues/19/comments","events_url":"https://api.github.com/repos/madskristensen/NpmTaskRunner/issues/19/events","html_url":"https://github.com/madskristensen/NpmTaskRunner/issues/19","id":141852107,"number":19,"title":"[Feature request] Nest pre- and post- script commands","user":{"login":"BrainCrumbz","id":3185573,"avatar_url":"https://avatars.githubusercontent.com/u/3185573?v=3","gravatar_id":"","url":"https://api.github.com/users/BrainCrumbz","html_url":"https://github.com/BrainCrumbz","followers_url":"https://api.github.com/users/BrainCrumbz/followers","following_url":"https://api.github.com/users/BrainCrumbz/following{/other_user}","gists_url":"https://api.github.com/users/BrainCrumbz/gists{/gist_id}","starred_url":"https://api.github.com/users/BrainCrumbz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrainCrumbz/subscriptions","organizations_url":"https://api.github.com/users/BrainCrumbz/orgs","repos_url":"https://api.github.com/users/BrainCrumbz/repos","events_url":"https://api.github.com/users/BrainCrumbz/events{/privacy}","received_events_url":"https://api.github.com/users/BrainCrumbz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/madskristensen/NpmTaskRunner/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-18T12:30:42Z","updated_at":"2016-03-18T17:51:39Z","closed_at":"2016-03-18T17:48:43Z","body":"### Installed product versions\r\n- Visual Studio: 2015 Community ed.\r\n- This extension: 1.1.44\r\n\r\n### Description\r\nWhen npm finds a script command (e.g. `bar`) that also has a related pre- or post- command (e.g. `prebar` or `postbar`), it will run those in sequence. By taking advantage of such feature, the Task Runner Explorer list quickly becomes crowded with less-than-meaningful tasks:\r\n\r\n![trx crowded](https://cloud.githubusercontent.com/assets/3185573/13877678/b5dd3bd2-ed0c-11e5-967b-33a53737f116.png)\r\n\r\nIt might make sense to reduce crowding by nesting related group of commands under the *main* one, so that they are usually not visible, but still accessible if one really wants to run those. So e.g. something like:\r\n\r\n~~~\r\n-+- build-dev\r\n |--- postbuild-dev\r\n\r\n-+- serve-prod\r\n |--- preserve-prod\r\n~~~\r\n\r\nDon't know if Task list supports nesting at the command level, although graphically there already is between `package.json` and `Scripts` items, and then with its children."},"comment":{"url":"https://api.github.com/repos/madskristensen/NpmTaskRunner/issues/comments/198469417","html_url":"https://github.com/madskristensen/NpmTaskRunner/issues/19#issuecomment-198469417","issue_url":"https://api.github.com/repos/madskristensen/NpmTaskRunner/issues/19","id":198469417,"user":{"login":"madskristensen","id":1258877,"avatar_url":"https://avatars.githubusercontent.com/u/1258877?v=3","gravatar_id":"","url":"https://api.github.com/users/madskristensen","html_url":"https://github.com/madskristensen","followers_url":"https://api.github.com/users/madskristensen/followers","following_url":"https://api.github.com/users/madskristensen/following{/other_user}","gists_url":"https://api.github.com/users/madskristensen/gists{/gist_id}","starred_url":"https://api.github.com/users/madskristensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madskristensen/subscriptions","organizations_url":"https://api.github.com/users/madskristensen/orgs","repos_url":"https://api.github.com/users/madskristensen/repos","events_url":"https://api.github.com/users/madskristensen/events{/privacy}","received_events_url":"https://api.github.com/users/madskristensen/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T17:51:39Z","updated_at":"2016-03-18T17:51:39Z","body":"It now organizes pre- and -post under their parent task:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1258877/13887090/2eced444-ecf7-11e5-9109-9ff1efdbeb2d.png)\r\n\r\nPlease download the [CI build](http://vsixgallery.com/extension/d7f89ba3-815c-4feb-89b9-68d1654e2138/) to verify the behavior."}}