Polyconseil / systematic

An opinionated ES6 toolchain for the browser.
25 stars 3 forks source link

bin.ini2js: customize boolean cast #69

Closed sebastien-nicolas closed 6 years ago

sebastien-nicolas commented 6 years ago

In EHP and production, ansible generates .ini files from .yml files using a jinja template. It produces "True" boolean value instead of "true" and "False" instead of "false". Then, while parsing .ini file in systematic, json.parse() couldn't cast these values to boolean and keep them as string.

Solution: adding a cast function.

vperron commented 6 years ago

Et attention à la PR soeur sur blease, là tel quel le ini2js ne fonctionnera as dans les Dockerfile des apps JS.

sebastien-nicolas commented 6 years ago

Oui, je l'ai bien en tête. Je suis en train de regarder, merci.