Skip to content

Commit

Permalink
Fix configuration-schema
Browse files Browse the repository at this point in the history
  • Loading branch information
nknapp committed Dec 19, 2016
1 parent e491ba0 commit 4ff654a
Showing 1 changed file with 25 additions and 37 deletions.
62 changes: 25 additions & 37 deletions schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}
}
Expand Down

0 comments on commit 4ff654a

Please sign in to comment.