You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve the `swift package init` experience using the following criteria:
- Simplify the templates to include only the minimum necessary to get started
without making assumptions.
- Use documentation links instead of arbitrary template content to teach people
about Swift.
- Improve the "front door" experience with the help usage.
Detailed list of changes:
- Remove the `system-module` template.
- Remove the `manifest` template - it's emptier than `empty` and isn't
providing a lot of value on its own. Make the `empty` template only generate
a manifest instead.
- Remove README generation.
- Don't generate empty directories.
- Don't emit empty dependencies array in manifests.
- Update `library` template content:
- Remove struct definition, use a simple public function instead.
- Include documentation links for TSPL and the Standard Library.
- Include documentation links for XCTest in the generated test case.
- Update `executable` template content
- Use simpler top-level code instead of an `@main` struct.
- Remove executable tests.
- Put sources directly in `./Sources`.
- Clean up and align `type` argument help text
- Update Usage.md documentation
- Update CHANGELOG to reflect init template changes in #6144
rdar://98999734
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,10 @@ Swift Next
17
17
}
18
18
```
19
19
20
+
*[#6144]
21
+
22
+
Remove the `system-module` and `manifest` templates and clean up the remaining `empty`, `library`, and `executable` templates so they include the minimum information needed to get started, with links to documentation in the generated library, executable, and test content.
0 commit comments