feat: ability to add banner (#20)

Lets you add a custom banner.

```sh
create-index src -u --banner "/* eslint-disable */"
```
```js
/* eslint-disable */

// @create-index

import xxx ...
```
This commit is contained in:
laggingreflex
2016-11-29 17:45:23 +00:00
committed by Gajus Kuizinas
parent d7e2528999
commit fdb17d0179
4 changed files with 26 additions and 4 deletions
+1
View File
@@ -86,6 +86,7 @@ Options:
files that start with "'create index';\n" (create-index index
file). Updates found index files. Does not create new index
files. [boolean] [default: false]
--banner Add a custom banner at the top of the index file [string]
Examples:
create-index ./src ./src/utilities Creates or updates an existing