Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
Revert "[7.x] build immutable bundles for new platform plugins (elast…
Browse files Browse the repository at this point in the history
…ic#53976) (elastic#57528)"

This reverts commit 9f94c39.
  • Loading branch information
spalger committed Apr 7, 2020
1 parent e4da166 commit dadd76b
Show file tree
Hide file tree
Showing 179 changed files with 1,874 additions and 7,609 deletions.
6 changes: 0 additions & 6 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
[production]
last 2 versions
> 5%
Safari 7 # for PhantomJS support: https://github.com/elastic/kibana/issues/27136

[dev]
last 1 chrome versions
last 1 firefox versions
last 1 safari versions
16 changes: 7 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@
"@kbn/test-subj-selector": "0.2.1",
"@kbn/ui-framework": "1.0.0",
"@kbn/ui-shared-deps": "1.0.0",
"@types/tar": "^4.0.3",
"JSONStream": "1.3.5",
"abortcontroller-polyfill": "^1.4.0",
"angular": "^1.7.9",
Expand All @@ -147,12 +146,11 @@
"angular-route": "^1.7.9",
"angular-sanitize": "^1.7.9",
"angular-sortable-view": "^0.0.17",
"autoprefixer": "^9.7.4",
"autoprefixer": "9.6.1",
"babel-loader": "^8.0.6",
"bluebird": "3.5.5",
"boom": "^7.2.0",
"brace": "0.11.1",
"browserslist-useragent": "^3.0.2",
"cache-loader": "^4.1.0",
"chalk": "^2.4.2",
"check-disk-space": "^2.1.0",
Expand Down Expand Up @@ -221,7 +219,7 @@
"opn": "^5.5.0",
"oppsy": "^2.0.0",
"pegjs": "0.10.0",
"postcss-loader": "^3.0.0",
"postcss-loader": "3.0.0",
"prop-types": "15.6.0",
"proxy-from-env": "1.0.0",
"pug": "^2.0.4",
Expand Down Expand Up @@ -254,7 +252,7 @@
"script-loader": "0.7.2",
"seedrandom": "^3.0.5",
"semver": "^5.5.0",
"style-loader": "^1.1.3",
"style-loader": "0.23.1",
"symbol-observable": "^1.2.0",
"tar": "4.4.13",
"terser-webpack-plugin": "^2.3.4",
Expand All @@ -274,7 +272,7 @@
"vega-schema-url-parser": "1.0.0",
"vega-tooltip": "^0.12.0",
"vision": "^5.3.3",
"webpack": "^4.41.5",
"webpack": "4.41.0",
"webpack-merge": "4.2.2",
"whatwg-fetch": "^3.0.0",
"yauzl": "2.10.0"
Expand All @@ -292,7 +290,6 @@
"@kbn/eslint-import-resolver-kibana": "2.0.0",
"@kbn/eslint-plugin-eslint": "1.0.0",
"@kbn/expect": "1.0.0",
"@kbn/optimizer": "1.0.0",
"@kbn/plugin-generator": "1.0.0",
"@kbn/test": "1.0.0",
"@kbn/utility-types": "1.0.0",
Expand All @@ -306,7 +303,6 @@
"@types/babel__core": "^7.1.2",
"@types/bluebird": "^3.1.1",
"@types/boom": "^7.2.0",
"@types/browserslist-useragent": "^3.0.0",
"@types/chance": "^1.0.0",
"@types/cheerio": "^0.22.10",
"@types/chromedriver": "^2.38.0",
Expand Down Expand Up @@ -365,6 +361,7 @@
"@types/react-router-dom": "^5.1.3",
"@types/react-virtualized": "^9.18.7",
"@types/recompose": "^0.30.6",
"@types/redux": "^3.6.31",
"@types/redux-actions": "^2.6.1",
"@types/request": "^2.48.2",
"@types/selenium-webdriver": "^4.0.5",
Expand All @@ -374,6 +371,7 @@
"@types/styled-components": "^4.4.2",
"@types/supertest": "^2.0.5",
"@types/supertest-as-promised": "^2.0.38",
"@types/tar": "^4.0.3",
"@types/testing-library__react": "^9.1.2",
"@types/testing-library__react-hooks": "^3.1.0",
"@types/type-detect": "^4.0.1",
Expand Down Expand Up @@ -462,7 +460,7 @@
"pixelmatch": "^5.1.0",
"pkg-up": "^2.0.0",
"pngjs": "^3.4.0",
"postcss": "^7.0.26",
"postcss": "^7.0.5",
"postcss-url": "^8.0.0",
"prettier": "^1.19.1",
"proxyquire": "1.8.0",
Expand Down
7 changes: 6 additions & 1 deletion packages/kbn-dev-utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@
*/

export { withProcRunner, ProcRunner } from './proc_runner';
export * from './tooling_log';
export {
ToolingLog,
ToolingLogTextWriter,
pickLevelFromFlags,
ToolingLogCollectingWriter,
} from './tooling_log';
export { createAbsolutePathSerializer } from './serializers';
export {
CA_CERT_PATH,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
* under the License.
*/

import { REPO_ROOT } from '../repo_root';

export function createAbsolutePathSerializer(rootPath: string = REPO_ROOT) {
export function createAbsolutePathSerializer(rootPath: string) {
return {
print: (value: string) => value.replace(rootPath, '<absolute path>').replace(/\\/g, '/'),
test: (value: any) => typeof value === 'string' && value.startsWith(rootPath),
Expand Down
2 changes: 1 addition & 1 deletion packages/kbn-dev-utils/src/tooling_log/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@

export { ToolingLog } from './tooling_log';
export { ToolingLogTextWriter, ToolingLogTextWriterConfig } from './tooling_log_text_writer';
export { pickLevelFromFlags, parseLogLevel, LogLevel } from './log_levels';
export { pickLevelFromFlags, LogLevel } from './log_levels';
export { ToolingLogCollectingWriter } from './tooling_log_collecting_writer';
24 changes: 9 additions & 15 deletions packages/kbn-dev-utils/src/tooling_log/tooling_log_text_writer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,28 +82,20 @@ export class ToolingLogTextWriter implements Writer {
}
}

write(msg: Message) {
if (!shouldWriteType(this.level, msg.type)) {
write({ type, indent, args }: Message) {
if (!shouldWriteType(this.level, type)) {
return false;
}

const prefix = has(MSG_PREFIXES, msg.type) ? MSG_PREFIXES[msg.type] : '';
ToolingLogTextWriter.write(this.writeTo, prefix, msg);
return true;
}

static write(writeTo: ToolingLogTextWriter['writeTo'], prefix: string, msg: Message) {
const txt =
msg.type === 'error'
? stringifyError(msg.args[0])
: format(msg.args[0], ...msg.args.slice(1));
const txt = type === 'error' ? stringifyError(args[0]) : format(args[0], ...args.slice(1));
const prefix = has(MSG_PREFIXES, type) ? MSG_PREFIXES[type] : '';

(prefix + txt).split('\n').forEach((line, i) => {
let lineIndent = '';

if (msg.indent > 0) {
if (indent > 0) {
// if we are indenting write some spaces followed by a symbol
lineIndent += ' '.repeat(msg.indent - 1);
lineIndent += ' '.repeat(indent - 1);
lineIndent += line.startsWith('-') ? '└' : '│';
}

Expand All @@ -113,7 +105,9 @@ export class ToolingLogTextWriter implements Writer {
lineIndent += PREFIX_INDENT;
}

writeTo.write(`${lineIndent}${line}\n`);
this.writeTo.write(`${lineIndent}${line}\n`);
});

return true;
}
}
2 changes: 1 addition & 1 deletion packages/kbn-eslint-import-resolver-kibana/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"glob-all": "^3.1.0",
"lru-cache": "^4.1.5",
"resolve": "^1.7.1",
"webpack": "^4.41.5"
"webpack": "^4.41.0"
}
}
10 changes: 5 additions & 5 deletions packages/kbn-interpreter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
"@kbn/dev-utils": "1.0.0",
"babel-loader": "^8.0.6",
"copy-webpack-plugin": "^5.0.4",
"css-loader": "^3.4.2",
"css-loader": "2.1.1",
"del": "^5.1.0",
"getopts": "^2.2.4",
"pegjs": "0.10.0",
"sass-loader": "^8.0.2",
"style-loader": "^1.1.3",
"sass-loader": "^7.3.1",
"style-loader": "0.23.1",
"supports-color": "^5.5.0",
"url-loader": "2.2.0",
"webpack": "^4.41.5",
"webpack-cli": "^3.3.10"
"webpack": "4.41.0",
"webpack-cli": "^3.3.9"
}
}
110 changes: 0 additions & 110 deletions packages/kbn-optimizer/README.md

This file was deleted.

23 changes: 0 additions & 23 deletions packages/kbn-optimizer/babel.config.js

This file was deleted.

20 changes: 0 additions & 20 deletions packages/kbn-optimizer/index.d.ts

This file was deleted.

Loading

0 comments on commit dadd76b

Please sign in to comment.