Repository navigation
Releases
Releases · SandSoftwareSolutions/Foundry
v0.5.1
v0.5.0
Added
- Placeholders are asked for. A template can declare them in
.foundry.yaml(vars:with a prompt and a
default); in a terminal Foundry asks, with--non-interactivethe default is used, and any other used-but-missing
placeholder is asked for too.--strictstops before writing anything when a placeholder has no value, which is
what you want in CI. foundry template init <folder>creates the skeleton of a new template (--addsaves it right away).foundry template add <name> <git-address>keeps a copy of a template from Git (--branch);
template updatefast-forwards it,template removedeletes the copy. Setup commands of such templates are
never run.- The
.debpackages install shell completions for bash, zsh and fish. foundry template showandtemplate varsshow the source of a template and the placeholders that are asked for.
v0.4.0
Added
- Templates can declare their own setup steps and next steps in a
.foundry.yaml(seedocs/templates.md),
for examplepnpm installinstead of the defaultnpm install.post: []means "no setup at all". Placeholders
such as{{PROJECT_NAME_KEBAB}}work in these lines. The file is not copied into projects, and the commands are
not run for templates fetched with--git.
v0.3.0
Added
- Built-in templates that ship inside the binary:
go-basic,go-http,node-basic,node-http,
typescript-basic,python-basic,python-http,rust-basic,static-siteandblank.foundry newworks
right after installing;--languageuses the built-in template of that language unless you set another. foundry template export <name> <folder>copies a built-in template so you can change it.foundry template list --builtinand--saved; built-in templates can be the default of a language.scripts/test-templates.shand a CI job that create a project from every built-in template and run its
own build and tests.
Changed
foundry template listshows built-in and saved templates (before: only saved ones). A template you saved
hides a built-in one with the same name.- The example templates under
examples/became built-in templates.
v0.2.0
Security
- Post-create steps no longer go through
bash -lcwith the project directory pasted into the
command line. A project name containing quotes could run arbitrary commands. Steps now start
the tool directly with the project as working directory. --gitand--branchvalues starting with-are refused, andgit cloneis called with--.- File names are checked after placeholder replacement: a value that would write outside the project
(/,\or..) is refused. Project names with path separators are rejected. - Symbolic links in a template are skipped (before, the content of the link target was copied).
Fixed
- The first run never created the config or detected tools; it does now.
foundry newno longer runsnpm run devorpython main.pyafter creating a project (these
blocked the command forever).foundry config <language> ""clears a default, as the README always said.- Removing a template that was a language default no longer leaves a dangling default.
- Placeholder replacement is deterministic and single-pass;
--varvalues override built-ins in a
fixed way. Before, the result depended on map iteration order. .foundryignoresupports what its documentation promised:/dist/,**,!and?.
Leading slashes did not work before.- Language detection no longer treats a
Makefileas a language and breaks ties alphabetically. - A failed run removes the partial project instead of leaving it behind.
--gitnow uses the repository as a template (placeholders, ignore rules, fresh history).- Commands no longer read or create the config at start-up, so
--versionand--helphave no
side effects. The config file is written atomically. - The first commit works on machines where git has no
user.nameset. .gitignorefiles are built in. Nocurland no network are needed.
Added
- CI/CD: test matrix (Linux, macOS, Windows; oldest and newest Go) with the race detector and coverage,
gofmt, vet,go mod tidycheck, staticcheck, govulncheck, cross-compile check, end-to-end smoke
test, CodeQL, Dependabot, and a tag-driven release workflow that builds archives and.deb
packages, attests build provenance and creates a draft release. Seedocs/releasing.md. foundry template update,editandvars;foundry version;foundry config --json --path.foundry new --dry-run --json,--branch,--no-open; warnings for placeholders without a value.- Placeholders
{{LICENSE}},{{YEAR}},{{DATE}}and{{PROJECT_NAME_SNAKE|KEBAB|PASCAL|CAMEL}}. - Placeholders in file and directory names.
foundry template list --json.- Case-insensitive language and template lookup.
- Tests for every package and for the command line; CI workflow; release workflow that creates a draft.
- Cross-platform release script (
scripts/dist.sh) andMakefile.
Changed
- The program now lives in
cmd/foundry, sogo install github.com/SandSoftwareSolutions/Foundry/cmd/foundry@latestinstalls a binary calledfoundry(before, it would have been calledFoundry). The command line code moved tointernal/cli. - Minimum Go version is now 1.25 (needed for the patched
golang.org/x/sys; older Go releases are out of support). - Dependencies updated:
golang.org/x/textandgolang.org/x/sys(govulncheck reported vulnerabilities in the old versions; the code did not call them). - The Go module path is now
github.com/SandSoftwareSolutions/Foundry. - Library code lives under
internal/; commands return errors instead of exiting. - Build scripts no longer rewrite source files or contain machine specific paths.
.foundryignoreis no longer copied into new projects.