Skip to content

Instantly share code, notes, and snippets.

@andon
Created January 17, 2016 18:19
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save andon/bdf061e607f68def26fa to your computer and use it in GitHub Desktop.
Save andon/bdf061e607f68def26fa to your computer and use it in GitHub Desktop.
Custom rn-cli configuration that configures project roots for React Packager
'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