Skip to content
This repository has been archived by the owner on Oct 22, 2018. It is now read-only.

brocode/fbarrel

Repository files navigation

fbarrel

Given

test/a.tsx (export function fkbr(){})
test/b.tsx (export class Yolo{})

then running fbarrel -n cool -p test will write

test/barrel.ts
test/cool.ts

with barrel.ts:

export * from './a';
export * from './b';

and cool.ts:

import * as Cool from './barrel';
export { Cool };

So now you can do:

import {Cool} from './test/cool'

Cool.fkbr()

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages