Skip to content

Tags: gajus/create-index

Tags

v2.6.0

Toggle v2.6.0's commit message
fix: update dependencies

v2.5.0

Toggle v2.5.0's commit message
feat: cannot use create-index for short folders (#51)

* feat: file cannot be started from _ and be one symbol
* test: add children-directories-short-name for readDirectory

v2.4.0

Toggle v2.4.0's commit message
feat: add option to exclude directories from index.js (#50)

* Add option to exclude directories from index.js
* Update readDirectory.js
* Update writeIndexCli.js
* Update readDirectory.js
* Update README

v2.3.0

Toggle v2.3.0's commit message
feat: using writeIndex programatically was not respecting passed opti…

…ons configuration (#41)

* Create .gitattributes

* pass full options object to createIndexCode in writeIndex

v2.2.0

Toggle v2.2.0's commit message
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"]}

v2.1.0

Toggle v2.1.0's commit message
feat: add --extension/-x parameter overwrite default .js extension pa…

…rser (#35)

v2.0.0

Toggle v2.0.0's commit message
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.

v1.2.2

Toggle v1.2.2's commit message
fix: correct a copy-paste error in a log message (#29)

v1.2.1

Toggle v1.2.1's commit message
fix: update stopped working with banner (#22)

With the addition of `--banner` option index files no longer start with '// @create-index'

This new regex looks for '// @create-index' that are either at the beginning of the file (old behavior) or if it is followed by a newline.
Basically it just checks whether it exists in a file or not.

Added a test for it now.

# Conflicts:
#	src/utilities/validateTargetDirectory.js

v1.2.0

Toggle v1.2.0's commit message
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.