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

feat(storybook): choose to generate ts config #10572

Merged
merged 1 commit into from Jun 3, 2022

Conversation

mandarini
Copy link
Member

@mandarini mandarini commented Jun 3, 2022

ISSUES CLOSED: #10394

Current Behavior

Right now, we are generating .js configuration files for Storybook (main.js/preview.js).

Expected Behavior

Allow user to choose if they want to generate TS Configuration files for Storybook (main.ts/preview.ts).
If the root configuration is in TS, then Nx will generate TS configuration for all following projects as well.
If the root configuration is in JS, and the user tries to generate TS config for some project, then they will get a warning and Nx will still generate JS config.

Here's the Storybook docs for TS configs

Related Issue(s)

Fixes #10394

@nx-cloud
Copy link

nx-cloud bot commented Jun 3, 2022

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 30bac82. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 12 targets

Sent with 💌 from NxCloud.

@vercel
Copy link

vercel bot commented Jun 3, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
nx-dev ✅ Ready (Inspect) Visit Preview Jun 3, 2022 at 3:04PM (UTC)

@mandarini mandarini changed the title draft: feat(storybook): choose to generate ts config feat(storybook): choose to generate ts config Jun 3, 2022
@mandarini mandarini self-assigned this Jun 3, 2022
@mandarini mandarini force-pushed the fix/choose-ts-storybook-config branch from b620acf to 41f9be8 Compare June 3, 2022 14:33
@mandarini mandarini force-pushed the fix/choose-ts-storybook-config branch from 41f9be8 to d756dc2 Compare June 3, 2022 14:44
@mandarini mandarini enabled auto-merge (squash) June 3, 2022 14:46
@mandarini mandarini disabled auto-merge June 3, 2022 14:48
@mandarini mandarini force-pushed the fix/choose-ts-storybook-config branch from d756dc2 to a724286 Compare June 3, 2022 14:56
@mandarini mandarini enabled auto-merge (squash) June 3, 2022 14:56
@mandarini mandarini force-pushed the fix/choose-ts-storybook-config branch from a724286 to 6825d0c Compare June 3, 2022 14:59
@mandarini mandarini disabled auto-merge June 3, 2022 14:59
@mandarini mandarini enabled auto-merge (squash) June 3, 2022 15:00
@github-actions
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@nrwl/angular:storybook-configuration schematic creates preview and main files as javascript
1 participant