{"action":"opened","issue":{"url":"https://api.github.com/repos/driftyco/ionic-cli/issues/463","labels_url":"https://api.github.com/repos/driftyco/ionic-cli/issues/463/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic-cli/issues/463/comments","events_url":"https://api.github.com/repos/driftyco/ionic-cli/issues/463/events","html_url":"https://github.com/driftyco/ionic-cli/issues/463","id":85511560,"number":463,"title":"`ionic emulate` doesn't populate the `CORDOVA_PLATORMS` environment variable for `before_prepare` hook.","user":{"login":"markomarkovic","id":99233,"avatar_url":"https://avatars.githubusercontent.com/u/99233?v=3","gravatar_id":"","url":"https://api.github.com/users/markomarkovic","html_url":"https://github.com/markomarkovic","followers_url":"https://api.github.com/users/markomarkovic/followers","following_url":"https://api.github.com/users/markomarkovic/following{/other_user}","gists_url":"https://api.github.com/users/markomarkovic/gists{/gist_id}","starred_url":"https://api.github.com/users/markomarkovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markomarkovic/subscriptions","organizations_url":"https://api.github.com/users/markomarkovic/orgs","repos_url":"https://api.github.com/users/markomarkovic/repos","events_url":"https://api.github.com/users/markomarkovic/events{/privacy}","received_events_url":"https://api.github.com/users/markomarkovic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-05T11:29:34Z","updated_at":"2015-06-05T11:29:34Z","closed_at":null,"body":"I've noticed this with the `before_prepare` hook, but it's possible that others are also affected. See [this gist](https://gist.github.com/markomarkovic/adcae0aae5b356561b5f) for a simple test.\r\n\r\n```\r\nCordova CLI: 5.0.0\r\nGulp version:  CLI version 3.9.0\r\nGulp local:  \r\nIonic Version: 1.0.0\r\nIonic CLI Version: 1.5.0\r\nIonic App Lib Version: 0.1.0\r\nios-deploy version: Not installed\r\nios-sim version: 3.1.1 \r\nOS: Mac OS X Yosemite\r\nNode Version: v0.12.4\r\nXcode version: Xcode 6.3.2 Build version 6D2105 \r\n``` "}}