Repository
Current version released
3 years ago
JsConf
Generate configuration with javascript
Screencast from 2022-12-22 12-09-40.webm
Usage
Create a config file in javascript, under
$configDir/jsconf- The config should have a default export of a
JsConfigvariable. You can get the type by importing https://deno.land/x/jsconf/api.ts?s=JsConfig
- The config should have a default export of a
Now you can run
jsconf
deno run -r https://deno.land/x/jsconf/jsconf.ts- It will automaticly detect configs under the aforementioned location, or you
can specify a config with
--config - The next part is interactive, jsconf will print the generated configuration and ask to save it, and the saving location
Example
You can test drive with a helix example
deno run -r https://deno.land/x/jsconf/jsconf.ts --config https://deno.land/x/jsconf/helix_config_example.tsCan this be useful right now ?
I use it to generate helix configuration local to a project, I have tsserver lsp and deno configurations
TODO
- Generate other formats then toml ? (lua ?)