Remove all code associated with node-ctags (#51405)

This was only used by the code plugin, which was removed in 7.5.0.
This commit is contained in:
Court Ewing 2019-11-22 07:39:03 -05:00 committed by GitHub
parent b5b81791a1
commit c9c4f7930d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 43 deletions

View file

@ -30,7 +30,6 @@ import {
CleanTypescriptTask,
CleanNodeBuildsTask,
CleanTask,
CleanCtagBuildTask,
CopySourceTask,
CreateArchivesSourcesTask,
CreateArchivesTask,
@ -133,7 +132,6 @@ export async function buildDistributables(options) {
await run(CleanExtraBinScriptsTask);
await run(CleanExtraBrowsersTask);
await run(CleanNodeBuildsTask);
await run(CleanCtagBuildTask);
await run(PathLengthTask);

View file

@ -20,9 +20,6 @@
import minimatch from 'minimatch';
import { deleteAll, deleteEmptyFolders, scanDelete } from '../lib';
import { resolve } from 'path';
const RELATIVE_CTAGS_BUILD_DIR = 'node_modules/@elastic/node-ctags/ctags/build';
export const CleanTask = {
global: true,
@ -256,39 +253,3 @@ export const CleanEmptyFoldersTask = {
]);
},
};
export const CleanCtagBuildTask = {
description: 'Cleaning extra platform-specific files from @elastic/node-ctag build dir',
async run(config, log, build) {
const getPlatformId = platform => {
if (platform.isWindows()) {
return 'win32';
} else if (platform.isLinux()) {
return 'linux';
} else if (platform.isMac()) {
return 'darwin';
}
};
await Promise.all(
config.getTargetPlatforms().map(async platform => {
if (build.isOss()) {
return;
}
const ctagsBuildDir = build.resolvePathForPlatform(platform, RELATIVE_CTAGS_BUILD_DIR);
await deleteAll(
[
resolve(ctagsBuildDir, '*'),
`!${resolve(
ctagsBuildDir,
`ctags-node-v${process.versions.modules}-${getPlatformId(platform)}-x64`
)}`,
],
log
);
})
);
},
};

View file

@ -105,6 +105,4 @@ export const LICENSE_OVERRIDES = {
// TODO can be removed once we upgrade the use of walk dependency past or equal to v2.3.14
'walk@2.3.9': ['MIT'],
'@elastic/node-ctags@1.0.2': ['Nuclide software'],
};