TypeScript Indexer
Generates an index file depending on the configuration.
- You can export or import files from the index.
- The order of the imports/exports can be determined.
- Indexes are grouped according to their pattern.
Config indexer.config.json
You can create a new configuration file via the command: TS Indexer: Index Directory.
Property |
Description |
output |
The file to write the indexes to. Default: './index.ts' |
imports |
An array of patterns to match files to import. |
exports |
An array of patterns to match files to export. |
exclude |
An array of patterns to match files to exclude from imports and exports. |
Commands
Command |
Description |
Index Directory |
Indexes the directory or creates an indexer.config.json file. |
Update Index |
Searches any parent directories for an indexer.config.json file and indexes the directory. |
Index |
Executes the indexer against the indexer.config.json file. |
| |