Closed twolfson closed 9 years ago
I think it's safe to say that a lot of this vision has changed. It's more CLI oriented now and I believe that breaking things down too much would be unnecessary.
We should still build things like:
get-version
However for the rest, I am going to mark this as closed.
We are about to make the README useful. This means relocating the grand vision. However, for quick reference I am opening this issue.
https://github.com/twolfson/foundry/tree/0.16.0
Grand vision:
bin
scripts for individual invocation)~/.foundry/config.json
foundry-manager
? (e.g. what about upgrades)unlink
foundry-release - Discovers installed release scripts, determines flavors that match, compares and upgrades semvers.
release
)Templater will see:
git-tag
?// TODO: Initial release could forego increasing of versions and go with a set-only approach.
// TODO: Consider safeguards (e.g. don't release unless on
master
, probably inside of hooks)release
command will need to acceptmajor
,minor
,patch
,pre-release <name>
,<semver>
(e.g.0.1.0
).There will be the option to add
metadata
via--metadata <metadata>
.The commands above were provided by http://semver.org/
// TODO: $EDITOR opening should be another node module Optionally, a message can be provided via
-m, --message
. If not provided, a prompt will open in $EDITOR (config can override this).Each release script must have the following export functions
// TODO: We are worrying about other formats beyond semver but we don't know what they look like. It is silly to try to future proof for something we cannot predit. Consider it YAGNI.
config will accept a mustache template for formatting
We might want standalone functions for register and publish
Maybe even register/publish with callouts to specific releasers
This leads to the question of
get-version
and such as well