{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/fsevents/issues/59","labels_url":"https://api.github.com/repos/strongloop/fsevents/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/fsevents/issues/59/comments","events_url":"https://api.github.com/repos/strongloop/fsevents/issues/59/events","html_url":"https://github.com/strongloop/fsevents/pull/59","id":63426547,"number":59,"title":"Support for node-pre-gyp","user":{"login":"indieisaconcept","id":640613,"avatar_url":"https://avatars.githubusercontent.com/u/640613?v=3","gravatar_id":"","url":"https://api.github.com/users/indieisaconcept","html_url":"https://github.com/indieisaconcept","followers_url":"https://api.github.com/users/indieisaconcept/followers","following_url":"https://api.github.com/users/indieisaconcept/following{/other_user}","gists_url":"https://api.github.com/users/indieisaconcept/gists{/gist_id}","starred_url":"https://api.github.com/users/indieisaconcept/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indieisaconcept/subscriptions","organizations_url":"https://api.github.com/users/indieisaconcept/orgs","repos_url":"https://api.github.com/users/indieisaconcept/repos","events_url":"https://api.github.com/users/indieisaconcept/events{/privacy}","received_events_url":"https://api.github.com/users/indieisaconcept/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-03-21T16:54:16Z","updated_at":"2015-08-14T17:37:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/strongloop/fsevents/pulls/59","html_url":"https://github.com/strongloop/fsevents/pull/59","diff_url":"https://github.com/strongloop/fsevents/pull/59.diff","patch_url":"https://github.com/strongloop/fsevents/pull/59.patch"},"body":"This change introduces node-pre-gyp which removes the need for end users to compile when installing fsevents. This means faster installs.\r\n\r\n## Publishing a binary\r\nThere are 2 possible ways in which a binary can published.\r\n\r\n### Locally\r\n```bash\r\n> node-pre-gyp rebuild\r\n> node-pre-gyp package\r\n> node-pre-gyp publish\r\n```\r\n### Travis\r\n\r\n#### via a tag\r\nWhen a new tag is created, as part of the travis build a binary will be created and published to a remote s3 bucket.\r\n\r\n#### via a custom commit message\r\nSpecifying [publish binary] in the commit message will publish a binary if it has not already been published.\r\n\r\n```bash\r\n> git commit --allow-empty -m \"[publish binary]\"\r\n> git push\r\n```\r\n## Binary Hosting\r\nThis is presently facilitated using s3. I am using a free-tier account for the purpose of testing this change end-to-end. If this change is to be accepted then the test s3 endpoint should be switched to one under Strongloop's control.\r\n\r\n### Changing s3 hosting\r\nThe settings for s3 are managed in two places. Package.json & .travis.yaml\r\n\r\n#### Package.json\r\n\r\n```javascript\r\n  \"binary\": {\r\n    ... ...\r\n    \"host\"        : \"https://fsevents-binary.s3.amazonaws.com\"\r\n  },\r\n```\r\nReplace the host parameter with a non-test endpoint.\r\n\r\n#### .travis.yaml\r\nEncrypted amazon keys are stored in this file and are used by node-pre-gyp for publishing. \r\n\r\n```bash\r\n> gem install travis\r\n> travis encrypt node_pre_gyp_accessKeyId=\"<key>\"  \r\n> travis encrypt node_pre_gyp_secretAccessKey=\"<secret-key>\"\r\n```\r\nThese values should replace.\r\n\r\n```yaml\r\nenv:\r\n  global:\r\n    - secure:  ........\r\n    - secure:  ........\r\n```\r\n## node version\r\n\r\nAs part of this change I also introduced node 0.12.0. This was intentional in order to test the scenario when a version of node may share the same \"NODE_MODULE_VERSION\". Presently later versions of 0.11 share the same value as 0.12, which is 14. In this instance node-pre-gyp will use the node version for the package name.\r\n"},"comment":{"url":"https://api.github.com/repos/strongloop/fsevents/issues/comments/131191207","html_url":"https://github.com/strongloop/fsevents/pull/59#issuecomment-131191207","issue_url":"https://api.github.com/repos/strongloop/fsevents/issues/59","id":131191207,"user":{"login":"rmg","id":17978,"avatar_url":"https://avatars.githubusercontent.com/u/17978?v=3","gravatar_id":"","url":"https://api.github.com/users/rmg","html_url":"https://github.com/rmg","followers_url":"https://api.github.com/users/rmg/followers","following_url":"https://api.github.com/users/rmg/following{/other_user}","gists_url":"https://api.github.com/users/rmg/gists{/gist_id}","starred_url":"https://api.github.com/users/rmg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmg/subscriptions","organizations_url":"https://api.github.com/users/rmg/orgs","repos_url":"https://api.github.com/users/rmg/repos","events_url":"https://api.github.com/users/rmg/events{/privacy}","received_events_url":"https://api.github.com/users/rmg/received_events","type":"User","site_admin":false},"created_at":"2015-08-14T17:37:58Z","updated_at":"2015-08-14T17:37:58Z","body":"credentials to add to .travis.yml:\r\n```\r\nsecure: \"gve1nkeKkwFEG1VAT3i+JwYyAdF0gKXwKx0uxbkBTsmm2M+0MDusohQdFLoEIkSIFktXBIDefoa7iGpLKRfG2VsZLpwJgnvnD0HqbnuR+k+W+bu7BHt4CAaR6GTllsDCjyq9zNyhUThzSnf2WNIpOEF5kHspZlbGfawURuUJH/U=\"\r\nsecure: \"jqVpmWxxBVXu2X8+XJMpKH0cooc2EKz9xKL2znBfYdNafJORSXcFAVbjCX5mZmVDcgIMwDtm2+gIG4P73hzJ2e3S+y2Z9ROJGyXHa3AxUTvXHQsxqzH8coHHqB8vTvfr0t2O5aKfpvpICpSea39r0hzNoMv6Ie5SwBdqj1YY9K0=\"\r\n```\r\npackage.json snippet:\r\n```\r\n...\r\n\"binary\": {\r\n  ...\r\n  \"host\": \"https://fsevents-binaries.s3-us-west-2.amazonaws.com\"\r\n},\r\n...\r\n```\r\n\r\n@indieisaconcept do you need anything else to revive this PR?"}}