@ccorcos/autoindex
v0.0.3
Published
Generate index files.
Downloads
8
Readme
Autoindex Code Generator
Create autoindex.ts files throughout your codebase and generate an index file that exports all of the siblings.
Getting Started
npm install -g @ccorcos/autoindexGiven the following directory:
src/
autoindex.ts
hello.ts
world.tsThen run autoindex src.
And src/autoindex.ts will look like:
import * as hello from "./hello"
import * as world from "./world"
export {
hello,
world,
}You can also watch as part of your build system.
autoindex src --watch