-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: Reorg the x-pack gulp tasks (#22785)
- Removes deprecated, non-functional lint scripts - Removes some unused (and barely used) dependencies - Replaces deprecated `gulp-util` dependency - Adds eslint rule to prevent future use of deprecated `gulp-util` dependency - Moves all gulp tasks into `tasks` path - Moves `gulp_helpers` into `tasks/helpers` - All tasks in `gulpfile.js` were moved into `tasks` and broken up by domain This is basically a no-op moving files around PR. All the existing tasks appear to work the same with these changes. <img width="334" alt="screenshot 2018-09-06 15 42 45" src="https://user-images.githubusercontent.com/404731/45188971-8618c000-b1eb-11e8-9b26-b072ccc7ddb7.png">
- Loading branch information
Showing
15 changed files
with
206 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
import { resolve } from 'path'; | ||
import { writeFileSync } from 'fs'; | ||
import pluginHelpers from '@kbn/plugin-helpers'; | ||
import { ToolingLog } from '@kbn/dev-utils'; | ||
import { generateNoticeFromSource } from '../../src/dev'; | ||
|
||
export default (gulp, { buildTarget }) => { | ||
gulp.task('build', ['clean', 'report', 'prepare'], async () => { | ||
await pluginHelpers.run('build', { | ||
skipArchive: true, | ||
buildDestination: buildTarget, | ||
}); | ||
|
||
const buildRoot = resolve(buildTarget, 'kibana/x-pack'); | ||
const log = new ToolingLog({ | ||
level: 'info', | ||
writeTo: process.stdout | ||
}); | ||
|
||
writeFileSync( | ||
resolve(buildRoot, 'NOTICE.txt'), | ||
await generateNoticeFromSource({ | ||
productName: 'Kibana X-Pack', | ||
log, | ||
directory: buildRoot | ||
}) | ||
); | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* 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. | ||
*/ | ||
import del from 'del'; | ||
|
||
export default (gulp, { coverageDir, buildDir, packageDir, log }) => { | ||
gulp.task('clean-test', () => { | ||
log('Deleting', coverageDir); | ||
return del([coverageDir]); | ||
}); | ||
|
||
gulp.task('clean', ['clean-test'], () => { | ||
const toDelete = [ | ||
buildDir, | ||
packageDir, | ||
]; | ||
log('Deleting', toDelete.join(', ')); | ||
return del(toDelete); | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.