Created
January 17, 2016 18:19
-
-
Save andon/bdf061e607f68def26fa to your computer and use it in GitHub Desktop.
Custom rn-cli configuration that configures project roots for React Packager
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
'use strict'; | |
var path = require('path'); | |
var config = { | |
getProjectRoots() { | |
return getRoots(); | |
}, | |
getAssetRoots() { | |
return getRoots(); | |
}, | |
}; | |
function getRoots() { | |
return [ | |
__dirname, | |
path.resolve(__dirname, 'modules/awesome-components'), | |
path.resolve(__dirname, 'modules/awesome-core') | |
]; | |
} | |
module.exports = config; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment