]> git.wincent.com - wincent.git/commit
feat(fig): support dynamic variables
authorGreg Hurrell <greg@hurrell.net>
Sun, 19 Apr 2020 23:16:05 +0000 (01:16 +0200)
committerGreg Hurrell <greg@hurrell.net>
Sun, 19 Apr 2020 23:16:05 +0000 (01:16 +0200)
commit307a3ef8d06b50010471fa7524c2fc5587469e49
treeb79ef493fd7f93abec77e133f2aa39c14df79739
parent182c83ac28bc46caa0e8575f03e14f4ed4f91b51
feat(fig): support dynamic variables

At two levels: global, and per-aspect. I think that should have us
covered. We don't want JSON to be anything but static so the two escape
hatches are:

- variables.ts (global).
- per-aspect `variables()` DSL.
16 files changed:
aspects/dotfiles/aspect.json
aspects/dotfiles/index.ts
aspects/dotfiles/templates/.gitconfig.erb [moved from roles/dotfiles/templates/.gitconfig with 79% similarity]
group_vars/all.yml
package.json
roles/dotfiles/defaults/main.yml
src/Compiler.ts
src/Fig/Context.ts
src/Fig/VariableRegistry.ts [new file with mode: 0644]
src/Fig/index.ts
src/Fig/task.ts
src/Fig/variables.ts [new file with mode: 0644]
src/main.ts
src/template.ts
tsconfig.json
variables.ts [new file with mode: 0644]