Chore: Remove generated .js files from version control (#9930)

pull/9940/head
Henry Heino 2024-02-13 07:33:46 -08:00 committed by GitHub
parent 9f81f4cc49
commit 6e1331e580
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 49 deletions

View File

@ -1,12 +0,0 @@
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const setupVim = (CodeMirror) => {
CodeMirror.Vim.defineAction('swapLineDown', CodeMirror.commands.swapLineDown);
CodeMirror.Vim.mapCommand('<A-j>', 'action', 'swapLineDown', {}, { context: 'normal', isEdit: true });
CodeMirror.Vim.defineAction('swapLineUp', CodeMirror.commands.swapLineUp);
CodeMirror.Vim.mapCommand('<A-k>', 'action', 'swapLineUp', {}, { context: 'normal', isEdit: true });
CodeMirror.Vim.defineAction('insertListElement', CodeMirror.commands.vimInsertListElement);
CodeMirror.Vim.mapCommand('o', 'action', 'insertListElement', { after: true }, { context: 'normal', isEdit: true, interlaceInsertRepeat: true });
};
exports.default = setupVim;
// # sourceMappingURL=setupVim.js.map

View File

@ -1,37 +0,0 @@
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
exports.toForwardSlashes = exports.fileExtension = exports.filename = exports.basename = exports.dirname = void 0;
function dirname(path) {
if (!path) { throw new Error('Path is empty'); }
const s = path.split(/\/|\\/);
s.pop();
return s.join('/');
}
exports.dirname = dirname;
function basename(path) {
if (!path) { throw new Error('Path is empty'); }
const s = path.split(/\/|\\/);
return s[s.length - 1];
}
exports.basename = basename;
function filename(path, includeDir = false) {
if (!path) { throw new Error('Path is empty'); }
const output = includeDir ? path : basename(path);
if (output.indexOf('.') < 0) { return output; }
const splitted = output.split('.');
splitted.pop();
return splitted.join('.');
}
exports.filename = filename;
function fileExtension(path) {
if (!path) { throw new Error('Path is empty'); }
const output = path.split('.');
if (output.length <= 1) { return ''; }
return output[output.length - 1];
}
exports.fileExtension = fileExtension;
function toForwardSlashes(path) {
return path.replace(/\\/g, '/');
}
exports.toForwardSlashes = toForwardSlashes;
// # sourceMappingURL=pathUtils.js.map