Skip to content

feat: improve progress indicator for iOS builds without xcpretty#1254

Merged
thymikee merged 3 commits intoreact-native-community:masterfrom
Swor71:refactor-building-indicator
Aug 21, 2020
Merged

feat: improve progress indicator for iOS builds without xcpretty#1254
thymikee merged 3 commits intoreact-native-community:masterfrom
Swor71:refactor-building-indicator

Conversation

@Swor71
Copy link
Copy Markdown
Contributor

@Swor71 Swor71 commented Aug 21, 2020

Summary:

Hey,
So I had a look at #963 and switched out the dots for an Ora spinner and a message about building the app.

The spinner on its own didn't make much sense as for the initial build, which can take up more time, it could give the wrong impression that the build hang. To remedy that I opted for a build message with a few dots, which clearly indicates that it's running the process.

note: This is only visible if the user doesn't have xcpretty installed, otherwise the output is formatted through it.

build indicator

Fixes #963

Let me know that you think, thanks!

Test Plan:

  • tested with and without xcpretty installed.
  • ran for the initial build and subsequent ones.
  • ran all the tests and eslint

Copy link
Copy Markdown
Member

@thymikee thymikee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I see it as an improvement 👍

@safethecode
Copy link
Copy Markdown

thx 😎 We will now be able to build iOS more conveniently.

@thymikee thymikee changed the title refactor: build indicator for ios feat: improve progress indicator for iOS builds without xcpretty Aug 21, 2020
@thymikee thymikee merged commit fbfb055 into react-native-community:master Aug 21, 2020
getDefaultUserTerminal,
} from '@react-native-community/cli-tools';
import {Device} from '../../types';
import ora from 'ora';
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolute import should be before relative ones I guess ;)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't care as long as linter is happy :)

thymikee added a commit that referenced this pull request Sep 17, 2020
* origin/master: (81 commits)
  chore(deps): bump node-fetch from 2.6.0 to 2.6.1 (#1267)
  v4.13.0
  chore: remove await in getLatestFile function call from downloadProfile file. (#1266)
  Augment react-native info with out of tree platform packages info (#1264)
  feat: add a command to download the Hermes Sampling Profiler to a local machine (#1246)
  chore(deps): bump lodash from 4.17.15 to 4.17.19 (#1221)
  Fix package name for main activity when appId set (#1242)
  Just use the users default browser (#1257)
  feat: improve progress indicator for iOS builds without xcpretty (#1254)
  fix: 🐛 executableFolderPath to run app name in iOS 14.0 (#1236)
  chore(deps): bump elliptic from 6.5.2 to 6.5.3 (#1233)
  v4.12.0
  Add Windows info to react-native info (#1227)
  add new version RN Podfile link, autolinking docs. (#1245)
  docs: add linkage instructions for `yarn` v2 (#1237)
  v4.11.0
  fix: adjust range on react-native peer dep to support 0.63 (#1234)
  chore: update jest config (#1241)
  Use new chrome based edge if the user is already running it, and not running chrome (#1222)
  Add windows logic to guess the users preferred editor for launchEditor (#1216)
  ...
thymikee added a commit to imoans/cli that referenced this pull request Sep 17, 2020
* origin/master: (47 commits)
  chore(breaking): use Node 10 as compile target (react-native-community#1072)
  chore(deps): bump node-fetch from 2.6.0 to 2.6.1 (react-native-community#1267)
  v4.13.0
  chore: remove await in getLatestFile function call from downloadProfile file. (react-native-community#1266)
  Augment react-native info with out of tree platform packages info (react-native-community#1264)
  feat: add a command to download the Hermes Sampling Profiler to a local machine (react-native-community#1246)
  chore(deps): bump lodash from 4.17.15 to 4.17.19 (react-native-community#1221)
  Fix package name for main activity when appId set (react-native-community#1242)
  Just use the users default browser (react-native-community#1257)
  feat: improve progress indicator for iOS builds without xcpretty (react-native-community#1254)
  fix: 🐛 executableFolderPath to run app name in iOS 14.0 (react-native-community#1236)
  chore(deps): bump elliptic from 6.5.2 to 6.5.3 (react-native-community#1233)
  v4.12.0
  Add Windows info to react-native info (react-native-community#1227)
  add new version RN Podfile link, autolinking docs. (react-native-community#1245)
  docs: add linkage instructions for `yarn` v2 (react-native-community#1237)
  v4.11.0
  fix: adjust range on react-native peer dep to support 0.63 (react-native-community#1234)
  chore: update jest config (react-native-community#1241)
  Use new chrome based edge if the user is already running it, and not running chrome (react-native-community#1222)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use loading spinner instead of dots when building iOS

4 participants