Add this key in neutralino.config.json
:
"$schema": "https://raw.githubusercontent.com/benjammin4dayz/neutralino-schema/refs/heads/main/dist/neutralino.config.schema.json"
build [output_path='dist/']
- Bundle the schema and write it to
neutralino.config.schema.json
- Generate a full config file using the schema and write it to
neutralino.config.json
validate <neutralino_config_path>
- Use AJV to validate a local Neutralino config file against a freshly-bundled schema.
serve [port=5000]
- Serve a freshly-bundled JSON schema to each request on any route.
- Start the development server with
npm start
- Add
"$schema": "<SCHEMA_URL>"
to aneutralino.config.json
file- Aggressive cache-busting techniques may be required for the schema URL
- Check autocompletion and code hints in your IDE
Locate the JSON schema file for the config key that you intend to modify.
Create a JSON schema file in the directory that it should be nested within
For example, to add a new mode named foo
- Create a new JSON schema file at schema-src/modes/foo.json
- Fill out the schema according to the specification
- Rebuild - no need to require anything as it happens automatically.