Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

[expo-cli] Improve readability of asyncActionProjectDir #1989

Merged
merged 3 commits into from
Apr 28, 2020

Conversation

EvanBacon
Copy link
Contributor

  • asyncActionProjectDir accepts three parameters, we've been adding comment blocks to tell what those parameters do. This is bad practice.
  • Mostly we disable the validation checks that are done, so I've flipped the condition where you enable the check instead of disabling it.
  • Auth check wasn't being used so I removed it.

@EvanBacon EvanBacon added the enhancement New feature or request label Apr 24, 2020
@@ -117,9 +123,7 @@ export default function(program: Command) {
...options,
dev: typeof options.dev === 'undefined' ? false : options.dev,
});
},
/* skipProjectValidation: */ false,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Im purposefully skipping this check now as it doesn't need to happen.

Copy link
Member

@brentvatne brentvatne left a comment

Choose a reason for hiding this comment

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

nice work! this is a lot better than having unnamed boolean params with defaults that need to be overridden more often than not :)

@codecov-io
Copy link

codecov-io commented Apr 26, 2020

Codecov Report

Merging #1989 into master will increase coverage by 0.39%.
The diff coverage is n/a.

Flag Coverage Δ
#babelPresetCli 100.00% <ø> (ø)
#config 60.64% <ø> (ø)
#expoCli 29.09% <ø> (+5.56%) ⬆️
#expoCodemod 83.81% <ø> (ø)
#jsonFile 65.49% <ø> (ø)
#metroConfig 58.83% <ø> (ø)
#packageManager 16.67% <ø> (ø)
#plist 70.64% <ø> (ø)
#pwa 34.32% <ø> (ø)
#schemer 69.88% <ø> (ø)
#uriScheme 32.05% <ø> (ø)
#webpackConfig 53.41% <ø> (ø)
#xdl 23.37% <ø> (?)
@@            Coverage Diff             @@
##           master    #1989      +/-   ##
==========================================
+ Coverage   44.52%   44.90%   +0.39%     
==========================================
  Files          99      103       +4     
  Lines        3956     4283     +327     
  Branches      976     1036      +60     
==========================================
+ Hits         1761     1923     +162     
- Misses       1513     1635     +122     
- Partials      682      725      +43     

@EvanBacon EvanBacon merged commit f6d426a into master Apr 28, 2020
@EvanBacon EvanBacon deleted the @evanbacon/expo-cli/project-validation branch April 28, 2020 03:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants