1.0.0 • Published 5 years ago

minecraft-addon-toolchain-jsonvalidator v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

minecraft-addon-toolchain-jsonvalidator

JSON validator for minecraft-addon-toolchain. Validates each json file in the add-on. Build is halted if there are errors.

Currently this only checks for parse errors using jsonlint.

Installing

npm install --save-dev minecraft-addon-toolchain-jsonvalidator

Adding to the toolchain

const MinecraftAddonBuilder = require('minecraft-addon-toolchain/v1')
const JSONValidator = require('minecraft-addon-toolchain-jsonvalidator')

const builder = new MinecraftAddonBuilder(<youraddonname>)
builder.addPlugin(new JSONValidator())

module.exports = builder.configureEverythingForMe();

Usage

There is nothing you need to do. Your JSON files will be automatically validated during the build task.