{"action":"opened","issue":{"url":"https://api.github.com/repos/darthtrevino/savey-wavey/issues/5","repository_url":"https://api.github.com/repos/darthtrevino/savey-wavey","labels_url":"https://api.github.com/repos/darthtrevino/savey-wavey/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/darthtrevino/savey-wavey/issues/5/comments","events_url":"https://api.github.com/repos/darthtrevino/savey-wavey/issues/5/events","html_url":"https://github.com/darthtrevino/savey-wavey/issues/5","id":168352807,"number":5,"title":"Dynamic .on-save.json location","user":{"login":"heruan","id":851745,"avatar_url":"https://avatars.githubusercontent.com/u/851745?v=3","gravatar_id":"","url":"https://api.github.com/users/heruan","html_url":"https://github.com/heruan","followers_url":"https://api.github.com/users/heruan/followers","following_url":"https://api.github.com/users/heruan/following{/other_user}","gists_url":"https://api.github.com/users/heruan/gists{/gist_id}","starred_url":"https://api.github.com/users/heruan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heruan/subscriptions","organizations_url":"https://api.github.com/users/heruan/orgs","repos_url":"https://api.github.com/users/heruan/repos","events_url":"https://api.github.com/users/heruan/events{/privacy}","received_events_url":"https://api.github.com/users/heruan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-29T15:38:24Z","updated_at":"2016-07-29T15:38:24Z","closed_at":null,"body":"Instead of having `.on-save.json` in the root of the project, one may want to have it one level up, outside the project, to handle multiple projects at once. E.g.\r\n\r\n```json\r\n{\r\n    \"commands\": [\r\n        {\r\n            \"watch\": \"foo-project/src/**/*.js\",\r\n            \"command\": \"rsync -r ${project}/dist/ /somewhere/else/foo-project/\"\r\n        },\r\n        {\r\n            \"watch\": \"bar-project/src/**/*.js\",\r\n            \"command\": \"rsync -r ${project}/dist/ /somewhere/else/bar-project/\"\r\n        }\r\n    ]\r\n}\r\n```\r\n\r\nFor this purpose (and similar) I'd suggest to search for the first `.on-save.json` file in the current directory (where the file was saved) up to the filesystem tree."}}
{"actor":{"display_login":"heruan"}}