patniko / vsmobilepr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VSTS Mobile Pull Request

Currently Visual Studio Team Services (VSTS) has support for Pull Requests on desktop view only. Sometime, we just want to take a sneak peek on a pull request on a mobile device. GitHub has a good support for that, but VSTS is lacking this functionality. This project aims to add this feature to VSTS by creating a react native mobile app that will use the existing VSTS's APIs to show pull requests on mobile devices.

Prerequisites:

  1. Install node/watchman: https://facebook.github.io/react-native/docs/getting-started.html#node-watchman
  2. Install react native cli: https://facebook.github.io/react-native/docs/getting-started.html#the-react-native-cli
  3. Install XCode: https://facebook.github.io/react-native/docs/getting-started.html#xcode
  4. Install typescript: https://github.com/cyounes/Oldcyounes.ruhoh.com/blob/master/posts/how-to-install-typescript-on-mac-os-x.md

Running the app

After cloning the repo, and inside the project folder run:

  1. npm install
  2. gulp build
  3. react-native run-ios

Running the app on vscode

Required VSCode extension:

  1. React Native Tools

After cloning the repo, and inside the project folder run:

  1. npm install
  2. Choose the Debug iOS option in VSCode and Run it.

#running tests

  1. npm install
  2. npm test or npm run testwatch Note: Currently there is no support for vscode debugging.

Enable Live Reload in iOS

On the simulator, while the iOS app is running, click Command+D and choose Enable Live Reload. Now every time, you save a js file, it will automatically update the release. To enable it to work with typescript files run:

  1. gulp watch

About


Languages

Language:TypeScript 88.2%Language:Objective-C 6.8%Language:Python 2.7%Language:Java 2.1%Language:Shell 0.2%