-
Notifications
You must be signed in to change notification settings - Fork 24.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust rnpm link to colorize skipped linking steps
Summary: Sometimes when working with a team of developers, someone adds a library but does not link it. To identify if this required linking, you have to type react-native link and then read a wall of text to see if rnpm handled the issue. This can be sped up with a friendly logging level for previously linked messages. Continuation of #9507 ![image](https://cloud.githubusercontent.com/assets/997157/17908676/119884a2-6947-11e6-8297-818fefed26a0.png) ![image](https://cloud.githubusercontent.com/assets/997157/17908687/1bad1b56-6947-11e6-9cf5-b8eec1f2d6ef.png) Closes #9551 Differential Revision: D3821468 Pulled By: bestander fbshipit-source-id: 3e83bf46454519debdd95cf3d5e8561e3c77364a
- Loading branch information
Showing
3 changed files
with
61 additions
and
5 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/** | ||
* Copyright (c) 2015-present, Facebook, Inc. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
*/ | ||
'use strict'; | ||
|
||
const mockColor = () => { | ||
return { | ||
bold: () => { return { }; }, | ||
}; | ||
}; | ||
|
||
mockColor.bold = function() { | ||
return {}; | ||
}; | ||
|
||
module.exports = { | ||
dim: s => s, | ||
magenta: mockColor, | ||
white: mockColor, | ||
blue: mockColor, | ||
yellow: mockColor, | ||
green: mockColor, | ||
bold: mockColor, | ||
red: mockColor, | ||
cyan: mockColor, | ||
gray: mockColor, | ||
black: mockColor, | ||
}; |
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
db870f8
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.
Special thanks to the FB team who helped get this PR through internals. @grabbou et al.