-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Custom tsconfig.json for angular apps. #2669
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2669 +/- ##
==========================================
+ Coverage 34.35% 34.36% +<.01%
==========================================
Files 389 390 +1
Lines 8747 8771 +24
Branches 907 912 +5
==========================================
+ Hits 3005 3014 +9
- Misses 5141 5150 +9
- Partials 601 607 +6
Continue to review full report at Codecov.
|
@igor-dv - Whats the API for this? |
@amcdnl just put |
@igor-dv - Can you add this in the docs here? https://storybook.js.org/basics/guide-angular/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -15,6 +16,9 @@ export default function(configType, baseConfig, configDir) { | |||
const babelConfig = loadBabelConfig(configDir); | |||
config.module.rules[0].query = babelConfig; | |||
|
|||
const tsOptions = loadTsConfig(configDir); | |||
config.module.rules[1].loaders[0].options = tsOptions; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry if it looks ugly, IMO need some work moving webpack configurations to the core.
Will add in a separate PR then (or maybe someone will add =)) ) |
is it working only for Angular? or React as well? |
Issue: one of #2645
What I did
Added ability to create custom
tsconfig.json
in the storybook config dir.How to test
Add custom
tsconfig.json
to the .storybook dir (I've added already one in angular-cli example)