NPM module for generation of index.d.ts files.
Install
npm install barrel-generator
Info
NPM module for generation of index.d.ts files. Read more.
Use
NPM script examples:
"start": "barrel-generator"
"start_custom": "barrel-generator --sourceFolder=./src --barrelFileLocation=./src --barrelFileName=index.ts
--includeFile=.ts --excludeFiles=d.ts,spec.ts,index.ts"
Arguments
-
sourceFolder = ./src (Optional) Root folder of the source you want to include in the index.d.ts
-
barrelFileName = index.ts (Optional) Output file of the Generator.
-
barrelFileLocation = ./src (Optional) Output file (barrel file) location, can be relative to the --sourceFolder in this case the paths to files listed inside the generated barrel file are 'shortened' to be valid.
-
includeFile = .ts (Optional) File extension of the included inside index.d.ts files.
-
excludeFiles = d.ts,spec.ts,index.ts (Optional) Comma separated list of excluded files/file extensions.