gajus / create-index

Creates ES6 ./index.js file in target directories that imports and exports all sibling files and directories.
Other
278 stars 87 forks source link

Add ability to add banner to the generated file #14

Closed gajus closed 7 years ago

gajus commented 8 years ago

Example:

create-index --update --banner '/* eslint-disable */\n\n' ./src/queries ./src/utilities ./src/utilities/database

This would add /* eslint-disable */ comment above // @create-index.

This is a solution for https://github.com/gajus/create-index/issues/5.