-
Added error catching for Gray Matter with information about file which caused error for easier debugging.
Now whenever there is an error in Fron Matter, task will not silently ignore it nor will shut down completely. Instead, it will run all files and report all encountered errors.
If there are any errors by the end of the task, it will throw and exception.
-
Added better reporting about successfully processed and failed files.
-
Added NPM 5 lockfile.
-
Added
package.json
main
property pointing to the task file. -
Added
package.json
files
property to ensure that task directory will be always preserved. -
Added
snazzy
for betterstandard
output.
-
Raised minimum required Node version to
6.0
. -
Updated dependencies.
-
Updated Gray Matter to version
3.0.8
, which resolved gray-matter#37.No longer task will silently fail when Front Matter contains syntax errors 🎸
-
Replaced
lodash
withlodash.set
to minimize dependencies. -
Grunt and task files rewritten in pure JavaScript. Sorry, CoffeeScript 💔
-
Added
.editorconfig
.Somehow it was missing for all that time, but still I slept without nightmares.
-
Other internal cleanups and improvements.
-
Task now properly works with
expand: true
option specified infiles
. If you used expanded files in task config and still want to receive monolith JSON file, use this pattern instead:grunt.initConfig grayMatter: build: src: 'source/templates/{,**/}*.html' dest: 'data/matter.json'
- Added standard.
- Added test case for expanded files.
- Task now will work properly when
expand: true
option specified infiles
by generating standalone JSON file per each source.dest
in expanded files expect path only instead of path with filename. - Improved performance.
- When there is no
src
provided, Grunt will returnfalse
according to requirements. - Fixed wrong paths in nested fixtures.
- Fixed linting errors.
- Optimized internals with destructuring.
- Lowered minimal required Node version.
- Added Jest as tests runner.
- Added tests of basic functionality.
- Add documentation.
Initial release