{"action":"created","issue":{"url":"https://api.github.com/repos/openlayers/ol3/issues/3542","labels_url":"https://api.github.com/repos/openlayers/ol3/issues/3542/labels{/name}","comments_url":"https://api.github.com/repos/openlayers/ol3/issues/3542/comments","events_url":"https://api.github.com/repos/openlayers/ol3/issues/3542/events","html_url":"https://github.com/openlayers/ol3/pull/3542","id":67964636,"number":3542,"title":"Generate example index and rebuild examples on source changes","user":{"login":"tschaub","id":41094,"avatar_url":"https://avatars.githubusercontent.com/u/41094?v=3","gravatar_id":"","url":"https://api.github.com/users/tschaub","html_url":"https://github.com/tschaub","followers_url":"https://api.github.com/users/tschaub/followers","following_url":"https://api.github.com/users/tschaub/following{/other_user}","gists_url":"https://api.github.com/users/tschaub/gists{/gist_id}","starred_url":"https://api.github.com/users/tschaub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tschaub/subscriptions","organizations_url":"https://api.github.com/users/tschaub/orgs","repos_url":"https://api.github.com/users/tschaub/repos","events_url":"https://api.github.com/users/tschaub/events{/privacy}","received_events_url":"https://api.github.com/users/tschaub/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-12T21:55:24Z","updated_at":"2015-04-12T23:41:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openlayers/ol3/pulls/3542","html_url":"https://github.com/openlayers/ol3/pull/3542","diff_url":"https://github.com/openlayers/ol3/pull/3542.diff","patch_url":"https://github.com/openlayers/ol3/pull/3542.patch"},"body":"With this change, `tasks/build-examples.js` generates the `example/index.js` file in addition to generating the rest of the examples.\r\n\r\nWhen `tasks/serve.js` is run (which is launched by `npm start`), the examples are built before the server is started.  Then, whenever an example source file changes, the examples are rebuilt (and any attached clients reload).\r\n\r\nThis is one step toward #3532.\r\n\r\nI'd like to move the generated `examples` directory out of the root, as I think all generated files should go in `build`.  But this will involve more changes to `build.py`, and I'd rather handle it separately.\r\n\r\nFixes #3529.\r\n"},"comment":{"url":"https://api.github.com/repos/openlayers/ol3/issues/comments/92152085","html_url":"https://github.com/openlayers/ol3/pull/3542#issuecomment-92152085","issue_url":"https://api.github.com/repos/openlayers/ol3/issues/3542","id":92152085,"user":{"login":"tschaub","id":41094,"avatar_url":"https://avatars.githubusercontent.com/u/41094?v=3","gravatar_id":"","url":"https://api.github.com/users/tschaub","html_url":"https://github.com/tschaub","followers_url":"https://api.github.com/users/tschaub/followers","following_url":"https://api.github.com/users/tschaub/following{/other_user}","gists_url":"https://api.github.com/users/tschaub/gists{/gist_id}","starred_url":"https://api.github.com/users/tschaub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tschaub/subscriptions","organizations_url":"https://api.github.com/users/tschaub/orgs","repos_url":"https://api.github.com/users/tschaub/repos","events_url":"https://api.github.com/users/tschaub/events{/privacy}","received_events_url":"https://api.github.com/users/tschaub/received_events","type":"User","site_admin":false},"created_at":"2015-04-12T23:41:25Z","updated_at":"2015-04-12T23:41:25Z","body":"This is ready for review."}}