{"action":"created","issue":{"url":"https://api.github.com/repos/phpro/grumphp/issues/250","repository_url":"https://api.github.com/repos/phpro/grumphp","labels_url":"https://api.github.com/repos/phpro/grumphp/issues/250/labels{/name}","comments_url":"https://api.github.com/repos/phpro/grumphp/issues/250/comments","events_url":"https://api.github.com/repos/phpro/grumphp/issues/250/events","html_url":"https://github.com/phpro/grumphp/issues/250","id":197500568,"number":250,"title":"Impossible to run custom NPM scripts","user":{"login":"Anahkiasen","id":1321596,"avatar_url":"https://avatars.githubusercontent.com/u/1321596?v=3","gravatar_id":"","url":"https://api.github.com/users/Anahkiasen","html_url":"https://github.com/Anahkiasen","followers_url":"https://api.github.com/users/Anahkiasen/followers","following_url":"https://api.github.com/users/Anahkiasen/following{/other_user}","gists_url":"https://api.github.com/users/Anahkiasen/gists{/gist_id}","starred_url":"https://api.github.com/users/Anahkiasen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anahkiasen/subscriptions","organizations_url":"https://api.github.com/users/Anahkiasen/orgs","repos_url":"https://api.github.com/users/Anahkiasen/repos","events_url":"https://api.github.com/users/Anahkiasen/events{/privacy}","received_events_url":"https://api.github.com/users/Anahkiasen/received_events","type":"User","site_admin":false},"labels":[{"id":189109299,"url":"https://api.github.com/repos/phpro/grumphp/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-25T13:11:25Z","updated_at":"2016-12-26T09:13:32Z","closed_at":null,"body":"| Q               | A\r\n| --------------- | ---\r\n| Branch          | 0.11.0 \r\n| Bug?            | yes\r\n| New feature?    | no\r\n| Question?       | no\r\n| Documentation?  | no\r\n| Related tickets | \r\n\r\n**My configuration**\r\n```yaml\r\nparameters:\r\n    git_dir: .\r\n    bin_dir: ./vendor/bin\r\n    tasks:\r\n        npm_script:\r\n            script: run lint\r\n            triggered_by: [js]\r\n            working_directory: \"./\"\r\n```\r\n\r\n**Steps to reproduce:**\r\n\r\nRun Grumphp\r\n\r\n**Result:**\r\n\r\nIn NPM, you can add custom scripts to the `package.json` file. Custom being any scripts that are not core scripts (npm build, npm test, etc). To run those, you call `npm run {name of script}`.\r\n\r\nIssue is currently Grumphp runs `npm 'run lint'` instead of `npm run lint`, which fails."},"comment":{"url":"https://api.github.com/repos/phpro/grumphp/issues/comments/269188592","html_url":"https://github.com/phpro/grumphp/issues/250#issuecomment-269188592","issue_url":"https://api.github.com/repos/phpro/grumphp/issues/250","id":269188592,"user":{"login":"Anahkiasen","id":1321596,"avatar_url":"https://avatars.githubusercontent.com/u/1321596?v=3","gravatar_id":"","url":"https://api.github.com/users/Anahkiasen","html_url":"https://github.com/Anahkiasen","followers_url":"https://api.github.com/users/Anahkiasen/followers","following_url":"https://api.github.com/users/Anahkiasen/following{/other_user}","gists_url":"https://api.github.com/users/Anahkiasen/gists{/gist_id}","starred_url":"https://api.github.com/users/Anahkiasen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anahkiasen/subscriptions","organizations_url":"https://api.github.com/users/Anahkiasen/orgs","repos_url":"https://api.github.com/users/Anahkiasen/repos","events_url":"https://api.github.com/users/Anahkiasen/events{/privacy}","received_events_url":"https://api.github.com/users/Anahkiasen/received_events","type":"User","site_admin":false},"created_at":"2016-12-26T09:13:32Z","updated_at":"2016-12-26T09:13:32Z","body":"Could Grumphp recognize if the custom script starts with `\"run \"`, it's always either going to or not going to anyway no?"}}
{"actor":{"display_login":"Anahkiasen"}}