Write JS Config
The JDito process structure with modularized processes does not work out of the box with a standard jsconfig.json.
The Write JS Config tool generates a working jsconfig.json file from a jsconfig.template.json by:
- analyzing your NPM dependencies,
- collecting all ADITO dependencies, and
- writing a suitable
pathssection and other configuration options into the resultingjsconfig.json.
Run this script regularly, especially after changing dependencies, to keep the paths section of your jsconfig.json up to date.
Always review the generated jsconfig.json to ensure it matches your expectations.
How it runs
This tool is executed as a postinstall script of the devtools module.
You can also run it manually via an NPM script.
Add the script to package.json
To run it manually, add the script createJsconfig with any name you prefer to your package.json:
"scripts": {
"create Jsconfig from devtools": "createJsconfig"
}
Using an existing jsconfig.json as template
If you already have a jsconfig.json, you can use it as the template:
- Rename your existing
jsconfig.jsontojsconfig.template.json. - Run the
createJsconfigscript.
All contents of jsconfig.template.json are copied into the generated jsconfig.json, and the tool adds or updates the paths section based on your dependencies.