change name convention for modules

Summary:
Following our internal discussion we want to change previously used name convention.
Now it looks like:
```
#import <FBReactNativeTestSpec/FBReactNativeTestSpec.h>
```

Name is a param of `rn_codegen` and `rn_library`. Also, I found it the easiest to move replacing `::_IMPORT_::` into buck rule

Reviewed By: fkgozali

Differential Revision: D16646616

fbshipit-source-id: 2c33c5b4d1c42b0e6f5a42d9a318bd8bda9745f4
This commit is contained in:
Michał Osadnik
2019-08-08 11:09:30 -07:00
committed by Facebook Github Bot
parent 52c86a96b8
commit 0da4612f03
37 changed files with 160 additions and 67 deletions
@@ -158,7 +158,11 @@ function getClassExtendString(component): string {
}
module.exports = {
generate(libraryName: string, schema: SchemaType): FilesOutput {
generate(
libraryName: string,
schema: SchemaType,
moduleSpecName: string,
): FilesOutput {
const files = new Map();
Object.keys(schema.modules).forEach(moduleName => {
const components = schema.modules[moduleName].components;