mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
* [eslint] update eslint config to 0.3.0 * [eslint] autofix * [fixtures/hits] reformat to comply with max-len lint rule * [eslint] enable no-var and autofix * [eslint] enable prefer-const and autofix * [eslint] fix autofix-incompatible no-var and prefer-const violations * [eslint] enable quotes+no-extra-semi and autofix
15 lines
453 B
JavaScript
15 lines
453 B
JavaScript
import filesToCommit from './utils/files_to_commit';
|
|
import { resolve } from 'path';
|
|
|
|
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());
|
|
});
|
|
}
|