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
+3 -1
View File
@@ -35,7 +35,9 @@ export default (directoryPaths, options = {}) => {
const siblings = readDirectory(directoryPath);
const indexCode = createIndexCode(siblings);
const indexCode = createIndexCode(siblings, {
banner: options.banner
});
const indexFilePath = path.resolve(directoryPath, 'index.js');