barrel-generator

1.0.9 • Public • Published

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.

Package Sidebar

Install

npm i barrel-generator

Weekly Downloads

19

Version

1.0.9

License

ISC

Unpacked Size

254 kB

Total Files

97

Last publish

Collaborators

  • hivaga