Skip to content

Replace tsc compilation with transpile with babel on kbn plugin helpers for typescript#36769

Merged
mistic merged 16 commits intoelastic:masterfrom
mistic:typescript-with-babel7-for-kbn-plugin-helpers
May 31, 2019
Merged

Replace tsc compilation with transpile with babel on kbn plugin helpers for typescript#36769
mistic merged 16 commits intoelastic:masterfrom
mistic:typescript-with-babel7-for-kbn-plugin-helpers

Conversation

@mistic
Copy link
Contributor

@mistic mistic commented May 21, 2019

Closes #35373

It replaces the call to the typescript compiler with a transpile with babel function (split by client and server code) everytime we found a tsconfig file in a kbn plugin helpers build.

@mistic mistic requested a review from spalger May 21, 2019 13:12
@mistic mistic self-assigned this May 21, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations

@elasticmachine

This comment has been minimized.

@elasticmachine

This comment has been minimized.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

…ils. chore(NA): change globs definitions to match the overall convention.
@mistic
Copy link
Contributor Author

mistic commented May 21, 2019

That would fail until #36815 get merged

@elasticmachine

This comment has been minimized.

@mistic
Copy link
Contributor Author

mistic commented May 22, 2019

jenkins test this

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@spalger spalger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@elasticmachine

This comment has been minimized.

@elasticmachine

This comment has been minimized.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@mistic mistic merged commit 62453fe into elastic:master May 31, 2019
mistic added a commit to mistic/kibana that referenced this pull request May 31, 2019
…rs for typescript (elastic#36769)

* chore(NA): add transpile with babel the typescript files on xpack when build.

* chore(NA): fix the globs for public folders inside server paths

* docs(NA): add comments to explain globs.

* chore(NA): use pipeline instead of async pipeline promise from dev utils. chore(NA): change globs definitions to match the overall convention.

* chore(NA): apply documented way to use stream pipeline.

* chore(NA): exclude test files from the build transpilation.

* chore(NA): add ignore for eslint complexity warning

* chore(na): fix bad added type files.

* fix(NA): unused type exports
@mistic
Copy link
Contributor Author

mistic commented May 31, 2019

7.x: 60f852b

mistic added a commit that referenced this pull request May 31, 2019
…rs for typescript (#36769) (#37642)

* chore(NA): add transpile with babel the typescript files on xpack when build.

* chore(NA): fix the globs for public folders inside server paths

* docs(NA): add comments to explain globs.

* chore(NA): use pipeline instead of async pipeline promise from dev utils. chore(NA): change globs definitions to match the overall convention.

* chore(NA): apply documented way to use stream pipeline.

* chore(NA): exclude test files from the build transpilation.

* chore(NA): add ignore for eslint complexity warning

* chore(na): fix bad added type files.

* fix(NA): unused type exports
"license": "Apache-2.0",
"dependencies": {
"@babel/core": "^7.4.4",
"@kbn/babel-preset": "1.0.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: with this change on the latest master I'm getting error Couldn't find package "@kbn/babel-preset@1.0.0" required by "@kbn/plugin-helpers@link:../../kibana/packages/kbn-plugin-helpers" on the "npm" registry. on yarn kbn bootstrap (right after yarn kbn clean). Am I doing something wrong? :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That package is still at 1.0.0 locally, and it works for me, but we've been doing a fair amount of upgrades lately and I've had to wipe out my node_modules directory more frequently than desired because yarn isn't able to properly patch the directory correctly.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's weird, yarn kbn clean should remove node_modules, but that still doesn't help. Anyway, if it becomes annoying, I'll try to investigate and give you folks more details :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[build] Build Typescript using Babel 7 plugin helpers

4 participants