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

feature(create) - re-generate ws config files on bit create #7808

Merged
merged 6 commits into from
Aug 22, 2023

Conversation

GiladShoham
Copy link
Member

@GiladShoham GiladShoham commented Aug 20, 2023

Proposed Changes

  • Install missing envs upon bit create (if it's the first component created from this env and the env is not available yet, we will install it).
  • New slot OnComponentCreate is now available from the Generator aspect
  • Automatically re-generate workspace config files (tsconfig, eslint config, prettier config) when creating new components.
  • Adding new config to enable/disable re-generate config files during bit create
  "teambit.workspace/workspace-config-files": {
    "enableWorkspaceConfigWrite": true
  },
  • This is disabled by default (for old workspaces), but added as enabled to a new workspace.jsonc during bit init

guysaar223
guysaar223 previously approved these changes Aug 20, 2023
@GiladShoham GiladShoham merged commit 8e6d6d8 into master Aug 22, 2023
@GiladShoham GiladShoham deleted the create-ws-config-write branch August 22, 2023 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants