{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/vscode-react-native/pulls/comments/71810835","id":71810835,"diff_hunk":"@@ -115,4 +155,31 @@ export class CommandPaletteHandler {\n             });\n         });\n     }\n+\n+    /**\n+     * Publish project to exponent server. In order to do this we need to make sure the user is logged in exponent and the packager is running.\n+     */\n+    private executePublishToExpHost(): Q.Promise<boolean> {\n+        Log.logMessage(\"Publishing app to Exponent server. This might take a moment.\");\n+        return Q(XDL.User.getCurrentUserAsync()).then(user => {\n+            if (!user) {\n+                Log.logWarning(\"You're not logged in to exponent. Please login before trying to publish.\");\n+                return false;\n+            }\n+            Log.logMessage(`Publishing as ${user.username}...`);\n+            return this.startExponentPackager()\n+                .then(() =>\n+                    XDL.Project.publishAsync(this.workspaceRoot))\n+                .then(response => {\n+                    if (response.err || !response.url) {\n+                        return false;\n+                    }\n+                    Log.logMessage(`App successfully published to ${response.url}`);","path":"src/extension/commandPaletteHandler.ts","position":120,"original_position":120,"commit_id":"e1f6cd8d18366fbc9089bc40101fc04be544a5af","original_commit_id":"e1f6cd8d18366fbc9089bc40101fc04be544a5af","user":{"login":"PatoBeltran","id":2132567,"avatar_url":"https://avatars.githubusercontent.com/u/2132567?v=3","gravatar_id":"","url":"https://api.github.com/users/PatoBeltran","html_url":"https://github.com/PatoBeltran","followers_url":"https://api.github.com/users/PatoBeltran/followers","following_url":"https://api.github.com/users/PatoBeltran/following{/other_user}","gists_url":"https://api.github.com/users/PatoBeltran/gists{/gist_id}","starred_url":"https://api.github.com/users/PatoBeltran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PatoBeltran/subscriptions","organizations_url":"https://api.github.com/users/PatoBeltran/orgs","repos_url":"https://api.github.com/users/PatoBeltran/repos","events_url":"https://api.github.com/users/PatoBeltran/events{/privacy}","received_events_url":"https://api.github.com/users/PatoBeltran/received_events","type":"User","site_admin":false},"body":"I agree, specifically this will be shown after a big pile of packager messages, so it can be easy to miss.","created_at":"2016-07-22T00:23:53Z","updated_at":"2016-07-22T00:23:53Z","html_url":"https://github.com/Microsoft/vscode-react-native/pull/267#discussion_r71810835","pull_request_url":"https://api.github.com/repos/Microsoft/vscode-react-native/pulls/267","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/vscode-react-native/pulls/comments/71810835"},"html":{"href":"https://github.com/Microsoft/vscode-react-native/pull/267#discussion_r71810835"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/vscode-react-native/pulls/267"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/vscode-react-native/pulls/267","id":78403450,"html_url":"https://github.com/Microsoft/vscode-react-native/pull/267","diff_url":"https://github.com/Microsoft/vscode-react-native/pull/267.diff","patch_url":"https://github.com/Microsoft/vscode-react-native/pull/267.patch","issue_url":"https://api.github.com/repos/Microsoft/vscode-react-native/issues/267","number":267,"state":"open","locked":false,"title":"Exponentjs integration","user":{"login":"PatoBeltran","id":2132567,"avatar_url":"https://avatars.githubusercontent.com/u/2132567?v=3","gravatar_id":"","url":"https://api.github.com/users/PatoBeltran","html_url":"https://github.com/PatoBeltran","followers_url":"https://api.github.com/users/PatoBeltran/followers","following_url":"https://api.github.com/users/PatoBeltran/following{/other_user}","gists_url":"https://api.github.com/users/PatoBeltran/gists{/gist_id}","starred_url":"https://api.github.com/users/PatoBeltran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PatoBeltran/subscriptions","organizations_url":"https://api.github.com/users/PatoBeltran/orgs","repos_url":"https://api.github.com/users/PatoBeltran/repos","events_url":"https://api.github.com/users/PatoBeltran/events{/privacy}","received_events_url":"https://api.github.com/users/PatoBeltran/received_events","type":"User","site_admin":false},"body":"User can now test and publish apps with exponent.\r\n\r\nTo be able to use exponent a user must have a project that is setup for it. This includes, registering the entry component as `main`, adding an `exp.json` file, using exponentjs fork of react native and starting up the exponent stack when the packager is started.\r\n\r\nThis PR enables the user to start a packager as exponent, publish to exponent server and debug remotly an exponent application.\r\n\r\nIt is done by creating an entrypoint by guessing the name of the current react-native entrypoint (looks for `index.ios.js` or `index.android.js`) and the name of the entry component (by default the name of the app). \r\n\r\nIf the user wants to specify different values from the ones guessed, they can be changed on `.vscode/vscodeExponent.json`. Where you can also set the option `createOrOverrideExpJson` to `false` to stop `exp.json` from being overwritten. \r\n\r\n","created_at":"2016-07-21T23:21:15Z","updated_at":"2016-07-22T00:23:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f3a680c02bca933cc403728f0e123e2fc8d4524d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/vscode-react-native/pulls/267/commits","review_comments_url":"https://api.github.com/repos/Microsoft/vscode-react-native/pulls/267/comments","review_comment_url":"https://api.github.com/repos/Microsoft/vscode-react-native/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/vscode-react-native/issues/267/comments","statuses_url":"https://api.github.com/repos/Microsoft/vscode-react-native/statuses/e1f6cd8d18366fbc9089bc40101fc04be544a5af","head":{"label":"Microsoft:exponentjs-integration","ref":"exponentjs-integration","sha":"e1f6cd8d18366fbc9089bc40101fc04be544a5af","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":50060429,"name":"vscode-react-native","full_name":"Microsoft/vscode-react-native","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/vscode-react-native","description":"vscode extension for react native","fork":false,"url":"https://api.github.com/repos/Microsoft/vscode-react-native","forks_url":"https://api.github.com/repos/Microsoft/vscode-react-native/forks","keys_url":"https://api.github.com/repos/Microsoft/vscode-react-native/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/vscode-react-native/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/vscode-react-native/teams","hooks_url":"https://api.github.com/repos/Microsoft/vscode-react-native/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/vscode-react-native/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/vscode-react-native/events","assignees_url":"https://api.github.com/repos/Microsoft/vscode-react-native/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/vscode-react-native/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/vscode-react-native/tags","blobs_url":"https://api.github.com/repos/Microsoft/vscode-react-native/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/vscode-react-native/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/vscode-react-native/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/vscode-react-native/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/vscode-react-native/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/vscode-react-native/languages","stargazers_url":"https://api.github.com/repos/Microsoft/vscode-react-native/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/vscode-react-native/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/vscode-react-native/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/vscode-react-native/subscription","commits_url":"https://api.github.com/repos/Microsoft/vscode-react-native/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/vscode-react-native/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/vscode-react-native/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/vscode-react-native/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/vscode-react-native/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/vscode-react-native/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/vscode-react-native/merges","archive_url":"https://api.github.com/repos/Microsoft/vscode-react-native/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/vscode-react-native/downloads","issues_url":"https://api.github.com/repos/Microsoft/vscode-react-native/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/vscode-react-native/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/vscode-react-native/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/vscode-react-native/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/vscode-react-native/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/vscode-react-native/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/vscode-react-native/deployments","created_at":"2016-01-20T21:10:07Z","updated_at":"2016-07-22T00:21:37Z","pushed_at":"2016-07-21T23:44:42Z","git_url":"git://github.com/Microsoft/vscode-react-native.git","ssh_url":"git@github.com:Microsoft/vscode-react-native.git","clone_url":"https://github.com/Microsoft/vscode-react-native.git","svn_url":"https://github.com/Microsoft/vscode-react-native","homepage":null,"size":3918,"stargazers_count":587,"watchers_count":587,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":33,"forks":29,"open_issues":33,"watchers":587,"default_branch":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"996ff91364b85c880dc40f6d5da4f414463639d5","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":50060429,"name":"vscode-react-native","full_name":"Microsoft/vscode-react-native","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/vscode-react-native","description":"vscode extension for react native","fork":false,"url":"https://api.github.com/repos/Microsoft/vscode-react-native","forks_url":"https://api.github.com/repos/Microsoft/vscode-react-native/forks","keys_url":"https://api.github.com/repos/Microsoft/vscode-react-native/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/vscode-react-native/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/vscode-react-native/teams","hooks_url":"https://api.github.com/repos/Microsoft/vscode-react-native/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/vscode-react-native/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/vscode-react-native/events","assignees_url":"https://api.github.com/repos/Microsoft/vscode-react-native/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/vscode-react-native/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/vscode-react-native/tags","blobs_url":"https://api.github.com/repos/Microsoft/vscode-react-native/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/vscode-react-native/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/vscode-react-native/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/vscode-react-native/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/vscode-react-native/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/vscode-react-native/languages","stargazers_url":"https://api.github.com/repos/Microsoft/vscode-react-native/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/vscode-react-native/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/vscode-react-native/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/vscode-react-native/subscription","commits_url":"https://api.github.com/repos/Microsoft/vscode-react-native/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/vscode-react-native/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/vscode-react-native/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/vscode-react-native/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/vscode-react-native/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/vscode-react-native/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/vscode-react-native/merges","archive_url":"https://api.github.com/repos/Microsoft/vscode-react-native/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/vscode-react-native/downloads","issues_url":"https://api.github.com/repos/Microsoft/vscode-react-native/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/vscode-react-native/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/vscode-react-native/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/vscode-react-native/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/vscode-react-native/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/vscode-react-native/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/vscode-react-native/deployments","created_at":"2016-01-20T21:10:07Z","updated_at":"2016-07-22T00:21:37Z","pushed_at":"2016-07-21T23:44:42Z","git_url":"git://github.com/Microsoft/vscode-react-native.git","ssh_url":"git@github.com:Microsoft/vscode-react-native.git","clone_url":"https://github.com/Microsoft/vscode-react-native.git","svn_url":"https://github.com/Microsoft/vscode-react-native","homepage":null,"size":3918,"stargazers_count":587,"watchers_count":587,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":33,"forks":29,"open_issues":33,"watchers":587,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/vscode-react-native/pulls/267"},"html":{"href":"https://github.com/Microsoft/vscode-react-native/pull/267"},"issue":{"href":"https://api.github.com/repos/Microsoft/vscode-react-native/issues/267"},"comments":{"href":"https://api.github.com/repos/Microsoft/vscode-react-native/issues/267/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/vscode-react-native/pulls/267/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/vscode-react-native/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/vscode-react-native/pulls/267/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/vscode-react-native/statuses/e1f6cd8d18366fbc9089bc40101fc04be544a5af"}}}}
{"actor":{"display_login":"PatoBeltran"}}