Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce TS incremental builds & move src/test_utils to TS project #76082

Merged
merged 32 commits into from
Sep 3, 2020
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
d2d080a
move test_helpers to the core
mshustov Aug 25, 2020
7acf469
create base tsconfig
mshustov Aug 25, 2020
30afc81
all tsconfigs use the base one
mshustov Aug 25, 2020
6ee998b
use test_helpers exposed from the src/core
mshustov Aug 25, 2020
5b431f7
move getFieldFormatsRegistry to data plugin
mshustov Aug 25, 2020
3e13833
add test_utils project
mshustov Aug 25, 2020
3438519
compile types after checkout
mshustov Aug 25, 2020
12a0424
add a stub for platform tsconfig.json
mshustov Aug 25, 2020
eac95c9
fix broken import
mshustov Aug 27, 2020
d27a9f2
fix broken path to the base config
mshustov Aug 27, 2020
c36f09e
set tsBuildInfoFile for project without outDir
mshustov Aug 27, 2020
341a0bf
do not commit tsbuildinfo file
mshustov Aug 27, 2020
533ef62
do not check output d.ts files
mshustov Aug 27, 2020
db0acda
fix type error
mshustov Aug 28, 2020
e6c887a
use separate config to build types
mshustov Aug 28, 2020
1e265fc
rollback changes to include paths
mshustov Aug 28, 2020
05d4061
mute import zone error
mshustov Aug 28, 2020
86cfdd2
rename files to avoid references to tsd
mshustov Aug 31, 2020
bf773bc
do not use tsd for type tests
mshustov Aug 31, 2020
3aab007
include all ts files in project
mshustov Aug 31, 2020
50bdcd8
Merge branch 'master' into test-utils-ts-project
mshustov Aug 31, 2020
3279a2b
run buildRefs before type check to ensure the latest version
mshustov Aug 31, 2020
afdbfd4
store tsbuildinfo locally
mshustov Sep 1, 2020
d490fe6
update paths to base config
mshustov Sep 1, 2020
57922ee
comment out core/tsconfig.json
mshustov Sep 1, 2020
ca990c8
Merge branch 'master' into test-utils-ts-project
mshustov Sep 1, 2020
7646f19
remove ui path
mshustov Sep 1, 2020
6d351b1
Merge branch 'master' into test-utils-ts-project
mshustov Sep 2, 2020
fb19a68
Merge branch 'master' into test-utils-ts-project
mshustov Sep 3, 2020
7796510
Merge branch 'master' into test-utils-ts-project
mshustov Sep 3, 2020
dbab2ec
fix wrong tsbuildinfo path
mshustov Sep 3, 2020
9e5af02
Merge branch 'master' into test-utils-ts-project
mshustov Sep 3, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use separate config to build types
  • Loading branch information
mshustov committed Aug 28, 2020
commit e6c887a2811daecb788d2221e54845aed1acbdfd
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -64,9 +64,10 @@
"uiFramework:createComponent": "cd packages/kbn-ui-framework && yarn createComponent",
"uiFramework:documentComponent": "cd packages/kbn-ui-framework && yarn documentComponent",
"kbn:watch": "node scripts/kibana --dev --logging.json=false",
"build:refs": "tsc -b tsconfig.refs.json",
"build:types": "tsc --p tsconfig.types.json",
"docs:acceptApiChanges": "node --max-old-space-size=6144 scripts/check_published_api_changes.js --accept",
"kbn:bootstrap": "yarn build:types && node scripts/register_git_hook",
"kbn:bootstrap": "yarn build:refs && node scripts/register_git_hook",
"spec_to_console": "node scripts/spec_to_console",
"backport-skip-ci": "backport --prDescription \"[skip-ci]\"",
"storybook": "node scripts/storybook",
6 changes: 6 additions & 0 deletions tsconfig.refs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"include": [],
"references": [
{ "path": "./src/test_utils" }
]
}
5 changes: 1 addition & 4 deletions tsconfig.types.json
Original file line number Diff line number Diff line change
@@ -13,8 +13,5 @@
"src/plugins/data/server/index.ts",
"src/plugins/data/public/index.ts",
"typings"
],
"references": [
{ "path": "./src/test_utils" }
]
]
}