{"action":"created","issue":{"url":"https://api.github.com/repos/puli/issues/issues/88","labels_url":"https://api.github.com/repos/puli/issues/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/puli/issues/issues/88/comments","events_url":"https://api.github.com/repos/puli/issues/issues/88/events","html_url":"https://github.com/puli/issues/issues/88","id":96023767,"number":88,"title":"Add Gulp Plugin for resource installation","user":{"login":"webmozart","id":176399,"avatar_url":"https://avatars.githubusercontent.com/u/176399?v=3","gravatar_id":"","url":"https://api.github.com/users/webmozart","html_url":"https://github.com/webmozart","followers_url":"https://api.github.com/users/webmozart/followers","following_url":"https://api.github.com/users/webmozart/following{/other_user}","gists_url":"https://api.github.com/users/webmozart/gists{/gist_id}","starred_url":"https://api.github.com/users/webmozart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webmozart/subscriptions","organizations_url":"https://api.github.com/users/webmozart/orgs","repos_url":"https://api.github.com/users/webmozart/repos","events_url":"https://api.github.com/users/webmozart/events{/privacy}","received_events_url":"https://api.github.com/users/webmozart/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/puli/issues/labels/Feature","name":"Feature","color":"009800"},{"url":"https://api.github.com/repos/puli/issues/labels/Help%20Wanted","name":"Help Wanted","color":"fbca04"},{"url":"https://api.github.com/repos/puli/issues/labels/Manager","name":"Manager","color":"e6e6e6"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/puli/issues/milestones/4","html_url":"https://github.com/puli/issues/milestones/1.0-beta8","labels_url":"https://api.github.com/repos/puli/issues/milestones/4/labels","id":1270498,"number":4,"title":"1.0-beta8","description":"","creator":{"login":"webmozart","id":176399,"avatar_url":"https://avatars.githubusercontent.com/u/176399?v=3","gravatar_id":"","url":"https://api.github.com/users/webmozart","html_url":"https://github.com/webmozart","followers_url":"https://api.github.com/users/webmozart/followers","following_url":"https://api.github.com/users/webmozart/following{/other_user}","gists_url":"https://api.github.com/users/webmozart/gists{/gist_id}","starred_url":"https://api.github.com/users/webmozart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webmozart/subscriptions","organizations_url":"https://api.github.com/users/webmozart/orgs","repos_url":"https://api.github.com/users/webmozart/repos","events_url":"https://api.github.com/users/webmozart/events{/privacy}","received_events_url":"https://api.github.com/users/webmozart/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":2,"state":"open","created_at":"2015-08-24T22:28:52Z","updated_at":"2015-08-25T11:53:55Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2015-07-20T09:27:40Z","updated_at":"2015-08-25T14:20:32Z","closed_at":null,"body":"The command `puli resource --install` and the installer-related functionality should be removed from Puli. Instead, this functionality should be provided by a Puli plugin for Gulp (e.g. puli/gulp-plugin). One idea to implement this is to generate a [Gulp configuration file](https://github.com/gulpjs/gulp/blob/master/docs/recipes/using-external-config-file.md) and use that in Gulpfile.js.\r\n\r\nBasically, we have the following information about public resources in Puli packages:\r\n\r\n* Paths (or globs) of public directories, e.g. `res/public`, `vendor/acme/blog/res/public`\r\n* The location of the document root(s) where they should be published, e.g. `public_html`, `ssh://...`, ...\r\n* The directory path where each directory should be published in the document root, e.g. `/`, `/blog`, ...\r\n\r\nThe Gulp plugin should move the responsibility of publishing paths to Gulp. The goal is that you can run `gulp` or `gulp watch` and have Gulp doing both your asset transformation rules (e.g. `res/scss` -> `res/public/css`, configured by hand) and the publishing (e.g. `res/public/css` => `public_html/css`, configured by the plugin) whenever a file changes.\r\n\r\nIn a first step, only publishing to local directories (e.g. `/path/to/var/www/public_html`) needs to be supported. In a second step, publishing to remote filesystems would be great."},"comment":{"url":"https://api.github.com/repos/puli/issues/issues/comments/134601927","html_url":"https://github.com/puli/issues/issues/88#issuecomment-134601927","issue_url":"https://api.github.com/repos/puli/issues/issues/88","id":134601927,"user":{"login":"WouterJ","id":749025,"avatar_url":"https://avatars.githubusercontent.com/u/749025?v=3","gravatar_id":"","url":"https://api.github.com/users/WouterJ","html_url":"https://github.com/WouterJ","followers_url":"https://api.github.com/users/WouterJ/followers","following_url":"https://api.github.com/users/WouterJ/following{/other_user}","gists_url":"https://api.github.com/users/WouterJ/gists{/gist_id}","starred_url":"https://api.github.com/users/WouterJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WouterJ/subscriptions","organizations_url":"https://api.github.com/users/WouterJ/orgs","repos_url":"https://api.github.com/users/WouterJ/repos","events_url":"https://api.github.com/users/WouterJ/events{/privacy}","received_events_url":"https://api.github.com/users/WouterJ/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T14:20:31Z","updated_at":"2015-08-25T14:20:31Z","body":"Feel free to ping me if you need help, @tgalopin"}}