mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
chore(NA): move bin scripts into build (#67568)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
parent
4fde7a69d4
commit
7201e9c9cc
11 changed files with 54 additions and 1 deletions
|
@ -30,6 +30,7 @@ import {
|
|||
CleanTypescriptTask,
|
||||
CleanNodeBuildsTask,
|
||||
CleanTask,
|
||||
CopyBinScriptsTask,
|
||||
CopySourceTask,
|
||||
CreateArchivesSourcesTask,
|
||||
CreateArchivesTask,
|
||||
|
@ -110,6 +111,7 @@ export async function buildDistributables(options) {
|
|||
* run platform-generic build tasks
|
||||
*/
|
||||
await run(CopySourceTask);
|
||||
await run(CopyBinScriptsTask);
|
||||
await run(CreateEmptyDirsAndFilesTask);
|
||||
await run(CreateReadmeTask);
|
||||
await run(TranspileBabelTask);
|
||||
|
|
31
src/dev/build/tasks/bin/copy_bin_scripts_task.js
Normal file
31
src/dev/build/tasks/bin/copy_bin_scripts_task.js
Normal file
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import { copyAll } from '../../lib';
|
||||
|
||||
export const CopyBinScriptsTask = {
|
||||
description: 'Copying bin scripts into platform-generic build directory',
|
||||
|
||||
async run(config, log, build) {
|
||||
await copyAll(
|
||||
config.resolveFromRepo('src/dev/build/tasks/bin/scripts'),
|
||||
build.resolvePath('bin')
|
||||
);
|
||||
},
|
||||
};
|
20
src/dev/build/tasks/bin/index.js
Normal file
20
src/dev/build/tasks/bin/index.js
Normal file
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
export { CopyBinScriptsTask } from './copy_bin_scripts_task';
|
|
@ -42,7 +42,6 @@ export const CopySourceTask = {
|
|||
'!src/es_archiver/**',
|
||||
'!src/functional_test_runner/**',
|
||||
'!src/dev/**',
|
||||
'bin/**',
|
||||
'typings/**',
|
||||
'webpackShims/**',
|
||||
'config/kibana.yml',
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
export * from './bin';
|
||||
export * from './build_packages_task';
|
||||
export * from './clean_tasks';
|
||||
export * from './copy_source_task';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue