forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reviewed By: frantic Differential Revision: D2561344 fb-gh-sync-id: 651b8a199069f78e1ace2897ba4c0352aab7e3ea
- Loading branch information
1 parent
8e7cfcd
commit c6c97cb
Showing
5 changed files
with
59 additions
and
30 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
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,44 @@ | ||
'use strict'; | ||
|
||
var blacklist = require('../packager/blacklist'); | ||
var path = require('path'); | ||
|
||
/** | ||
* Default configuration for the CLI. | ||
* | ||
* If you need to override any of this functions do so by defining the file | ||
* `rn-cli.config.js` on the root of your project with the functions you need | ||
* to tweak. | ||
*/ | ||
var config = { | ||
getProjectRoots() { | ||
if (__dirname.match(/node_modules[\/\\]react-native[\/\\]local-cli$/)) { | ||
// packager is running from node_modules of another project | ||
return [path.resolve(__dirname, '../../..')]; | ||
} else if (__dirname.match(/Pods[\/\\]React[\/\\]packager$/)) { | ||
// packager is running from node_modules of another project | ||
return [path.resolve(__dirname, '../../..')]; | ||
} else { | ||
return [path.resolve(__dirname, '..')]; | ||
} | ||
}, | ||
|
||
/** | ||
* Specify where to look for assets that are referenced using | ||
* `image!<image_name>`. Asset directories for images referenced using | ||
* `./<image.extension>` don't require any entry in here. | ||
*/ | ||
getAssetRoots() { | ||
return []; | ||
}, | ||
|
||
/** | ||
* Returns a regular expression for modules that should be ignored by the | ||
* packager on a given platform. | ||
*/ | ||
getBlacklistRE(platform) { | ||
return blacklist(platform); | ||
} | ||
}; | ||
|
||
module.exports = config; |
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 was deleted.
Oops, something went wrong.
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