-
Notifications
You must be signed in to change notification settings - Fork 904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Standardise configuration mechanism #254
Merged
Merged
Changes from 48 commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
f5f6271
Initial commit
grabbou 9734a8f
Clean up main entry point
grabbou 3ab1c46
Fixes some typos
orta 703098f
Update configuration
grabbou 4f17675
Resolve conflicts
grabbou 32da7cf
update
grabbou 942db96
Tweaks to types
grabbou dcb0362
types and tweaks
grabbou 93090f8
Save another chunk of work
grabbou 933512a
WIP part 2'
grabbou 9815ff2
Simplify diff by removing things we can tweak later
grabbou e50001a
Wip 3: Legacy link config
grabbou 2b3e016
Updates
grabbou bfc9ed7
Update name:
grabbou 2180a5a
Add deprecation messages for soon-to-be-deprecated rnpm configuration
grabbou 7abcaeb
Both array and string were acceptable in rnpm configuration
grabbou 225d739
Share root
grabbou 623b643
Documentation and refining the code
grabbou 3c7f36b
Start wrapping it up
grabbou b3cbf3b
Fix some simple flow errors
grabbou db90f50
Fix flow errors except for tests
grabbou 4b67b8b
Override configuration
grabbou 34224eb
Simplify typing changes
grabbou 717687b
Fix remaining flow errors
grabbou 50674d7
Validate dependencies separately
grabbou 752104b
Use Joi to validate schema
grabbou 8a491a8
Read Joi validated config
grabbou 1f1da28
Rewrite configuration once again
grabbou 089669b
Further simplification
grabbou c2c30e7
Simplify code again
grabbou d71658b
Print deprecation warning
grabbou 5c13c1a
Fix flow
grabbou a575d6c
Add basic error handling of Joi errors
grabbou 7b67f2e
wip
grabbou 6005390
chore: setup e2e tests (#264)
thymikee 5941d8f
Add first snapshot test using e2e utils
grabbou 8d08a00
Test for root too
grabbou b6e97cd
Merge remote-tracking branch 'origin/master' into feat/config
thymikee bf370c4
Add two more tests
grabbou 7cbb0a3
Merge branch 'feat/config' of github.com:react-native-community/react…
grabbou 3ca95eb
Add more tests and fix ESLint environment
grabbou 44ec987
Test for RNPM compatibility
grabbou 730257d
Smaller snapshots and one extra test
grabbou 953d53f
Address feedback
grabbou c77a13b
Fix tests
grabbou ed103db
Fix the tests - again
grabbou b8afacd
revert eslint change and remove unused 'union' var
thymikee 441fc74
Address feedback
grabbou 1ba2c80
Update snapshot names
grabbou e5a5a94
Update types
grabbou File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* @flow | ||
*/ | ||
import {type ContextT} from '../../tools/types.flow'; | ||
export default { | ||
name: 'config', | ||
description: 'Print CLI configuration', | ||
func: async (argv: string[], ctx: ContextT) => { | ||
console.log(JSON.stringify(ctx, null, 2)); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: time to drop
getLegacyConfig
- doing it here.