{"action":"created","issue":{"url":"https://api.github.com/repos/ClinGen/clincoded/issues/721","repository_url":"https://api.github.com/repos/ClinGen/clincoded","labels_url":"https://api.github.com/repos/ClinGen/clincoded/issues/721/labels{/name}","comments_url":"https://api.github.com/repos/ClinGen/clincoded/issues/721/comments","events_url":"https://api.github.com/repos/ClinGen/clincoded/issues/721/events","html_url":"https://github.com/ClinGen/clincoded/pull/721","id":160786993,"number":721,"title":"Connects to #653 Dev tooling -- grunt watch for js and css compile, mods to \"make\" command","user":{"login":"kilodalton","id":1878194,"avatar_url":"https://avatars.githubusercontent.com/u/1878194?v=3","gravatar_id":"","url":"https://api.github.com/users/kilodalton","html_url":"https://github.com/kilodalton","followers_url":"https://api.github.com/users/kilodalton/followers","following_url":"https://api.github.com/users/kilodalton/following{/other_user}","gists_url":"https://api.github.com/users/kilodalton/gists{/gist_id}","starred_url":"https://api.github.com/users/kilodalton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kilodalton/subscriptions","organizations_url":"https://api.github.com/users/kilodalton/orgs","repos_url":"https://api.github.com/users/kilodalton/repos","events_url":"https://api.github.com/users/kilodalton/events{/privacy}","received_events_url":"https://api.github.com/users/kilodalton/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-17T00:00:15Z","updated_at":"2016-06-17T05:17:11Z","closed_at":"2016-06-17T05:16:54Z","pull_request":{"url":"https://api.github.com/repos/ClinGen/clincoded/pulls/721","html_url":"https://github.com/ClinGen/clincoded/pull/721","diff_url":"https://github.com/ClinGen/clincoded/pull/721.diff","patch_url":"https://github.com/ClinGen/clincoded/pull/721.patch"},"body":"## Dev tooling enhancements\r\n\r\n- `bin/grunt dev` - watch for js and scss changes and browserify bundle minimal js files or compass compile  \r\n- `make clean-css` - clean all compiled style.css and versioned style files\r\n- `make clean-js`  - remove all previous browserify compiled js files and versioned bundle files\r\n\r\n\r\n\r\nAdded npm packages:\r\n - grunt-contrib-compass\r\n - grunt-contrib-watch\r\n\r\n\r\nRemoved npm package:\r\n - watchify\r\n\r\n\r\n**TO USE:**\r\n - Run `bin/buildout -c buildout-dev.cfg` at least once to get the additional npm packages if you don't run it regularly\r\n - Run `bin/grunt dev` to watch js and css changes. This will also remove the dependency on versioned files (i.e. you must run this command *at least one time* to set the js bundle to point to an unversioned style.css even if you want to use `bin/compass compile` separately)\r\n\r\n## Other Tips\r\n**Browser auto-refresh**\r\n - If you use a Chrome plugin like [ChromeReloadPlus](https://chrome.google.com/webstore/detail/chromereloadplus/nbbpjdmdkcmpimmhloehkojhbhjlboog) you can set a browser tab in focus to to refresh at some time interval that you set (example 15 sec)\r\n\r\n\r\n**Shortcut: Open localhost in a new window in Chrome (bash on Macs)**\r\n- Add to your `.bash_profile`:\r\n - `alias ocl='open -a \"Google Chrome\" --new --args --new-window http://localhost:6543'`\r\n- run: `source ~/.bash_profile`\r\n- type: `ocl` at commandline  (hint: open chrome localhost)\r\n\r\n\r\n\r\n## Notes\r\n\r\n**NOTE** js bundle re-gen currently takes ~50 seconds. It is unknown (to me) if the `watch` task can listen to and queue events while it is working on a task (i.e. can it \"hear\" and queue a rebuild for js changes while a browserify task is already going? [prob not, but not tested here])\r\n\r\n**NOTE2** for `bin/grunt dev` to work you should have compass installed as a ruby gem, i.e. `compass` at the commandline should work for you. (There is a local version of compass in the project [`bin/compass` which is really a bash executable file that point to the local ruby and ruby gems], but it doesn't seem to work with the plugin properly\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ClinGen/clincoded/issues/comments/226682491","html_url":"https://github.com/ClinGen/clincoded/pull/721#issuecomment-226682491","issue_url":"https://api.github.com/repos/ClinGen/clincoded/issues/721","id":226682491,"user":{"login":"kilodalton","id":1878194,"avatar_url":"https://avatars.githubusercontent.com/u/1878194?v=3","gravatar_id":"","url":"https://api.github.com/users/kilodalton","html_url":"https://github.com/kilodalton","followers_url":"https://api.github.com/users/kilodalton/followers","following_url":"https://api.github.com/users/kilodalton/following{/other_user}","gists_url":"https://api.github.com/users/kilodalton/gists{/gist_id}","starred_url":"https://api.github.com/users/kilodalton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kilodalton/subscriptions","organizations_url":"https://api.github.com/users/kilodalton/orgs","repos_url":"https://api.github.com/users/kilodalton/repos","events_url":"https://api.github.com/users/kilodalton/events{/privacy}","received_events_url":"https://api.github.com/users/kilodalton/received_events","type":"User","site_admin":false},"created_at":"2016-06-17T05:17:11Z","updated_at":"2016-06-17T05:17:11Z","body":"Merged #653."}}
{"actor":{"display_login":"kilodalton"}}