These are chat archives for brunch/brunch

1st
Sep 2016
Matthew Miller
@MasterKale
Sep 01 2016 00:26
Is there a way to generate a map of files to names so when I require() a file it's not dependent on the position of the file in the filesystem?
I'm wondering if it's possible to associate an index name with path/to/folder/index/index.ts so I can just do require('index') instead of require('path/to/folder/index/index.ts')
I have a nameCleaner defined that strips out path/to/folder but that will still require me to update require statements manually if I ever reorganize the codebase
Matthew Miller
@MasterKale
Sep 01 2016 00:39
er, the require() statements are used in my HTML to actually call those modules