mirror of
https://github.com/apache/superset.git
synced 2026-04-28 04:25:07 +00:00
feat(extensions-cli): Add .gitignore generation to init command (#36768)
This commit is contained in:
committed by
GitHub
parent
5920cb57ea
commit
d36ddbbb33
@@ -484,6 +484,11 @@ def init(
|
||||
(target_dir / "extension.json").write_text(extension_json)
|
||||
click.secho("✅ Created extension.json", fg="green")
|
||||
|
||||
# Create .gitignore
|
||||
gitignore = env.get_template(".gitignore.j2").render(ctx)
|
||||
(target_dir / ".gitignore").write_text(gitignore)
|
||||
click.secho("✅ Created .gitignore", fg="green")
|
||||
|
||||
# Initialize frontend files
|
||||
if include_frontend:
|
||||
frontend_dir = target_dir / "frontend"
|
||||
|
||||
Reference in New Issue
Block a user