mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
* [canvas] move yarn scripts to node scripts
* [canvas/eslint] allow scripts to access devDeps
* [canvas/eslint] remove packageDir override
* [x-pack] move babel-register to deps for canvas
* [canvas] rename scripts from : to _
* [canvas] update readme with correct script paths
* [canvas] remove yarn.lock file
* Remove redundant require
(cherry picked from commit cfaa1783c3
)
19 lines
625 B
JavaScript
19 lines
625 B
JavaScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License;
|
|
* you may not use this file except in compliance with the Elastic License.
|
|
*/
|
|
|
|
const { resolve } = require('path');
|
|
|
|
exports.runGulpTask = function(name) {
|
|
process.chdir(resolve(__dirname, '../../..'));
|
|
process.argv.splice(2, 0, name);
|
|
require('gulp/bin/gulp');
|
|
};
|
|
|
|
exports.runKibanaScript = function(name, args = []) {
|
|
process.chdir(resolve(__dirname, '../../../..'));
|
|
process.argv.splice(2, 0, ...args);
|
|
require('../../../../scripts/' + name);
|
|
};
|