Replies: 2 comments 17 replies
-
I don't know what are the specifics of your use case, but, at least in my intensive use of LiquidJS, it is a very nice template engine and less a configuration tool.
Yes, this sounds like a configuration tool.
I have no experience with LiquidJS plugins. What do you need to do to install them?
No, in the xPack design, managing dependencies and build steps (done by xpm) is distinct from managing configurations (done by xcdl). Do you have an example of such helper? |
Beta Was this translation helpful? Give feedback.
-
So, what you basically suggest is to have a configuration property in package.json, to define an array of strings, that are imported and passed when creating the engine? At a second thought I'm not sure that this is realistic, for this to work the packages with the plugins must already be available in For this to work, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am thinking about moving the
npm install
option parsing from ad-hoc code inmeson
and theconanfile.py
to a specialised LiquidJS plugin. It will read thenpm_config_*
variables, it will read theconfig
section in thepackage.json
and then it will generate strings with the command-line options formeson
andconan
. This will remove lots of custom code exposed to the end user and it will provide a single centrally managed configuration tool.LiquidJS has already very good support for plugins, the only thing missing is some custom item in the
xpm
part of thepackage.json
that auto-loads the listed plugins. Currently there is no way to register a new helper or a plugin in the engine?Beta Was this translation helpful? Give feedback.
All reactions