JSON, TOML & YAML support #86
Replies: 4 comments 6 replies
|
Hi @PurpleBooth thanks for raising this discussion. I agree that regex can be a pain to write. I have quite a few ideas that I want to implement in this area of uplift to improve the whole file bumping concept. I really like this suggestion! I have been toying with the idea of having uplift auto-detect common files and bump them automatically without the need to provide configuration. But this feels like a good natural first step |
|
I'll raise some issues in the coming days to capture these approaches. I will look at JSON paths first, then YAML and TOML. I will have a look around and see if there are some good quality libraries that I can make use of |
|
Raised the first issue to support the inclusion of JSON paths: #89 From the back of this ticket, I will look into YAML and TOML files |
|
Cool! I am enjoying using the tool at the moment, it was easy to setup, and felt intuitive to use, so nice work! |
Uh oh!
There was an error while loading. Please reload this page.
Along side regex it would be really powerful to be able to specify a path to update in JSON or TOML or YAML
- file: ./package.json json: 'version' - file: ./package.json json: 'some-key.something.version'It sort of sucked writing a regex to update my package JSON (not un-doable, just a bit of a faff). Most languages use one of those 3 file formats for their package details file, so it might be worth making it easier to bump with that.
All reactions