kibana/tasks/collect_files_to_commit.js
Spencer 98a1c5a0f1
[6.x] Upgrade to eslint 4 (#14862) (#14951)
* [eslint] upgrade to 4.10.0

* [eslint-config-kibana] limit jest config to jest test files

* [ui_framework] remove trailing comma from rest-spreads

* [dashboard/tests] tag jest helpers with .test.js suffix

* explicitly import expect.js where used

* [eslint] apply auto-fixes

* [eslint] manually add/wrap some parens for compliance

* [npm] point to local packages for testing/review

* [jest] remove .test extension from jest helpers

* [ui_framework] fix trailing comma removal from 3bc661a1c8

* [packages] upgrade eslint packages
2017-11-14 20:20:37 -07:00

15 lines
431 B
JavaScript

import filesToCommit from './utils/files_to_commit';
export default function registerCollectFilesToCommit(grunt) {
const root = grunt.config.get('root');
grunt.registerTask('collectFilesToCommit', function () {
filesToCommit(root)
.then(files => {
grunt.log.ok(`${files.length} files with changes to commit`);
grunt.config.set('filesToCommit', files);
})
.nodeify(this.async());
});
}