From 4ff654ab7dd448e867fa95ed36e7e05abcdfdf7b Mon Sep 17 00:00:00 2001 From: Nils Knappmeier Date: Mon, 19 Dec 2016 12:06:20 +0100 Subject: [PATCH] Fix configuration-schema --- schema.js | 62 ++++++++++++++++++++++--------------------------------- 1 file changed, 25 insertions(+), 37 deletions(-) diff --git a/schema.js b/schema.js index 5bd72c3..c35c077 100644 --- a/schema.js +++ b/schema.js @@ -3,47 +3,35 @@ */ module.exports = { description: 'The configuration schema of the "customize-engine-uglify"', - definitions: { - 'stringArray': { - type: 'array', - items: { - type: 'string' - } - } - }, + type: 'object', properties: { - 'uglify': { + 'files': { + description: 'A name-path mapping of javascript-files', + additionalProperties: { + type: 'string', + description: 'The path to the javascript-file. The key of the property is assumed to be the internal name for customize-overrides.' + } + }, + 'dependencies': { + description: 'A one-to-multiple mapping of filenames to their dependencies. Both keys and items of the value array must be keys in the "files" property. ' + + 'Dependencies of a file will always be included into the bundle before the file itself.', + additionalProperties: { + type: 'array', + items: { + description: 'The filename of a dependency', + type: 'string' + } + } + }, + 'options': { + description: 'Options to pass to uglify. (see https://github.com/mishoo/UglifyJS2#api-reference)', type: 'object', properties: { - 'files': { - description: 'A name-path mapping of javascript-files', - additionalProperties: { - type: 'string', - description: 'The path to the javascript-file. The key of the property is assumed to be the internal name for customize-overrides.' - } - }, - 'dependencies': { - description: 'A one-to-multiple mapping of filenames to their dependencies. Both keys and items of the value array must be keys in the "files" property. ' + - 'Dependencies of a file will always be included into the bundle before the file itself.', - additionalProperties: { - type: 'array', - items: { - description: 'The filename of a dependency', - type: 'string' - } - } + 'outSourceMap': { + type: 'string' }, - 'options': { - description: 'Options to pass to uglify. (see https://github.com/mishoo/UglifyJS2#api-reference)', - type: 'object', - properties: { - 'outSourceMap': { - type: 'string' - }, - 'outFileName': { - type: 'string' - } - } + 'outFileName': { + type: 'string' } } }