create-browser-app 0.1.13__tar.gz → 0.1.14__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: create-browser-app
3
- Version: 0.1.13
3
+ Version: 0.1.14
4
4
  Summary: Start your Stagehand project with a single command
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -68,32 +68,17 @@ def main(name, template):
68
68
  else:
69
69
  console.print(f"[yellow]⚠[/yellow] Could not fetch template, using basic template")
70
70
 
71
- # Create main.py (from template or default)
72
- main_file = project_path / "main.py"
73
- main_file.write_text(template_files.get("main.py", TEMPLATE_BASIC))
74
-
75
- # Create requirements.txt or pyproject.toml (prefer template's version)
76
- if "pyproject.toml" in template_files:
77
- (project_path / "pyproject.toml").write_text(template_files["pyproject.toml"])
78
- elif "requirements.txt" in template_files:
79
- (project_path / "requirements.txt").write_text(template_files["requirements.txt"])
71
+ # Write all template files to the project
72
+ if template_files:
73
+ for filename, content in template_files.items():
74
+ (project_path / filename).write_text(content)
80
75
  else:
76
+ # Fallback to basic template defaults
77
+ (project_path / "main.py").write_text(TEMPLATE_BASIC)
81
78
  (project_path / "requirements.txt").write_text(TEMPLATE_REQUIREMENTS)
82
-
83
- # Create README.md (prefer template's version)
84
- readme_file = project_path / "README.md"
85
- if "README.md" in template_files:
86
- readme_file.write_text(template_files["README.md"])
87
- else:
88
- readme_file.write_text(TEMPLATE_README.format(project_name=project_name))
89
-
90
- # Create .env.example (prefer template's version)
91
- env_file = project_path / ".env.example"
92
- env_file.write_text(template_files.get(".env.example", TEMPLATE_ENV))
93
-
94
- # Create .gitignore (always use default)
95
- gitignore_file = project_path / ".gitignore"
96
- gitignore_file.write_text(TEMPLATE_GITIGNORE)
79
+ (project_path / "README.md").write_text(TEMPLATE_README.format(project_name=project_name))
80
+ (project_path / ".env.example").write_text(TEMPLATE_ENV)
81
+ (project_path / ".gitignore").write_text(TEMPLATE_GITIGNORE)
97
82
 
98
83
  # Success message
99
84
  console.print(f"[green]✓[/green] Find your project at [cyan]{project_path}[/cyan]\n")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: create-browser-app
3
- Version: 0.1.13
3
+ Version: 0.1.14
4
4
  Summary: Start your Stagehand project with a single command
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "create-browser-app"
7
- version = "0.1.13"
7
+ version = "0.1.14"
8
8
  description = "Start your Stagehand project with a single command"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"