* [codeshift] add proper ignore comments * [codeshift] apply require-to-import transform * [codeshift/fixup] remove duplicate imports * [eslint] upgrade config for react "unused" support * [codeshift] apply remove-unused-imports transform * [codeshift] apply remove-unused-basic-requires transform * [codeshift] apply remove-unused-function-arguments transform * [lintroller] fix argument list spacing * [codeshift] apply remove-unused-basic-bars transform * [codeshift/fixup] fixup unused basic var removals * manually apply remove-unused-assignments transform * [codeshift] reapply remove-unused-imports transform * [codeshift] reapply remove-unused-function-arguments transform * [eslint] autofix param spacing * manually fix remaining no-undef errors * use more descriptive file ignore pattern * add eslint-plugin-react peerDependency * replace values that looked unused in tests * remove // kibana-jscodeshift-no-babel comment * remove import statements from code required by api tests * Remove '// kibana-jscodeshift-ignore' comments * address review feedback * remove remnant of removed if condition
15 lines
421 B
JavaScript
15 lines
421 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());
|
|
});
|
|
}
|