mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
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:
parent
b5b81791a1
commit
c9c4f7930d
3 changed files with 0 additions and 43 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
);
|
||||
})
|
||||
);
|
||||
},
|
||||
};
|
||||
|
|
|
@ -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'],
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue