25 Commits
Author SHA1 Message Date
James LewisandGajus Kuizinas ed8e1d0699 feat: using writeIndex programatically was not respecting passed options configuration (#41)
* Create .gitattributes

* pass full options object to createIndexCode in writeIndex
2017-12-08 15:15:38 +00:00
Dawid KarabinandGajus Kuizinas bf45925380 feat: add ignore option (fix #31) (#37)
- Add functionality to ignore files based on provided
regular expressions
- Support writeIndex and writeIndexCli
- in index.js config must be specified as below

    // @create-index {"ignore":["/foo.js"]}
2017-03-13 20:42:46 +00:00
Guillaume BoddaertandGajus Kuizinas 5fea5e63d7 feat: add --extension/-x parameter overwrite default .js extension parser (#35) 2017-01-30 09:56:50 +00:00
Guillaume BoddaertandGajus Kuizinas 65892e3bb8 feat: use es2015 syntax to re-export default export (#32)
BREAKING CHANGE:

This changes the output generated by create-index and can effect CI if it runs linting tests against create-index.
2017-01-27 14:44:07 +00:00
RaidokandGajus Kuizinas 893d9931d4 fix: correct a copy-paste error in a log message (#29) 2017-01-24 11:56:57 +00:00
laggingreflexandGajus Kuizinas 2bafc5bb85 chore: fix typo (#25) 2016-11-30 15:47:42 +00:00
laggingreflexandGajus Kuizinas 219f546c67 feat: add --resursive and --ignore options (#24)
`--resursive`: Create/update index files recursively. Halts on any unsafe "index.js" files.

`--ignore-unsafe`: Ignores unsafe "index.js" files instead of halting.
2016-11-30 05:30:34 +00:00
Gajus Kuizinas 1f0a517797 style: fix style issues 2016-11-29 17:49:05 +00:00
Gajus Kuizinas 9cfc2ad367 Merge branch 'master' of github.com:gajus/create-index 2016-11-29 17:45:58 +00:00
Gajus Kuizinas ab6c399241 fix: correct all the references to @create-index 2016-11-29 17:45:54 +00:00
laggingreflexandGajus Kuizinas fdb17d0179 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 ...
```
2016-11-29 17:45:23 +00:00
laggingreflexandGajus Kuizinas d7e2528999 fix: rename --update-index to --update (fixes #10) (#15) 2016-11-28 15:36:37 +00:00
laggingreflexandGajus Kuizinas 974142c38c fix: use comment to target files (fixes #5) (#17) 2016-11-28 15:35:43 +00:00
Gajus Kuizinas 91c2e4eae3 feat: use comment to target files (fixes #5) 2016-11-01 15:58:31 +00:00
Gajus Kuizinas d05b635834 feat: add alias -u to --update (fixes #10) 2016-11-01 15:50:18 +00:00
Gajus Kuizinas 9278b25dcd feat: rename --update-index to --update (fixes #10) 2016-11-01 15:50:02 +00:00
Gajus Kuizinas 858085656b style: fix code style 2016-11-01 15:26:29 +00:00
Gajus Kuizinas a8a5332d5c Code style preferences. 2016-03-19 13:01:04 +02:00
Gajus Kuizinas 36ea8228ee Name can include an underscore character. 2016-01-29 21:40:16 +00:00
Gajus Kuizinas 31df6215a7 Scan all descending directories for index.js with 'create index'; (fixes #2) 2016-01-29 12:54:31 +00:00
Gajus Kuizinas 03d68cbe7a More descriptive bin program output (fixes #1) 2016-01-29 11:21:04 +00:00
Gajus Kuizinas 69825b59c6 Change the index file format to use "export ... from" (fixes #3) 2016-01-29 09:40:35 +00:00
Gajus Kuizinas a91f9b8ead Missing files. 2016-01-06 17:55:09 +00:00
Gajus Kuizinas 25097cc509 First version. 2016-01-06 17:54:19 +00:00
Gajus Kuizinas 8d9475c610 first commit 2016-01-06 13:53:54 +00:00