diff options
Diffstat (limited to 'javascript/videojs/build/docs-only.js')
| -rw-r--r-- | javascript/videojs/build/docs-only.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/javascript/videojs/build/docs-only.js b/javascript/videojs/build/docs-only.js deleted file mode 100644 index c8abcb9..0000000 --- a/javascript/videojs/build/docs-only.js +++ /dev/null @@ -1,19 +0,0 @@ -const sh = require('shelljs'); -const path = require('path'); - -module.exports = function(commit, commitRange) { - const SINGLE_COMMIT = `git diff-tree --no-commit-id --name-only -r ${commit}`; - const COMMIT_RANGE = `git diff --name-only ${commitRange}`; - - let command = SINGLE_COMMIT; - - if (commitRange) { - command = COMMIT_RANGE; - } - - const output = sh.exec(command, {async: false, silent: true}).stdout; - - const files = output.split('\n').filter(Boolean); - - return files.every((file) => file.startsWith('docs') || path.extname(file) === '.md'); -}; |
