carvel-dev / ytt

YAML templating tool that works on YAML structure instead of text
https://carvel.dev/ytt
Apache License 2.0
1.66k stars 135 forks source link

NPM wrapper #542

Open daretodave opened 2 years ago

daretodave commented 2 years ago

Just sharing a wrapper I made for node: https://github.com/daretodave/node-ytt

The package fetches the latest release on post installation so ytt can be installed by just running -

$ npm i -g node-ytt-cli

$ ytt --version

cari-lynn commented 2 years ago

Wow, awesome work! Thanks for creating and sharing this with us @daretodave !

scastria commented 4 months ago

This doesn't work for me. I installed this node wrapper package, but when I try to use it in my node JS code with --help as shown in the README, I get a return code of 127. I think that means the wrapper is installed, but NOT the ytt binary itself. How do I debug that?

FYI: I am trying to do this inside Forge from Atlasssian to use their new Dynamic Pipelines feature and modify a bitbucket-pipelines.yml file dynamically

daretodave commented 4 months ago

Thanks all for bringing this to my attention, this wrapper has been fixed!

@scastria addressed this in https://github.com/daretodave/node-ytt/pull/3

npm i -g node-ytt-cli@0.0.50

then

ytt --version
# prints ytt version 0.49.0

the ci/cd will continue to autopublish any changes