mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-22 16:24:48 -06:00
fa9ae9437c
The gitbook install has been incredibly flaky due to it's dependency on npm. This commit simply vendors the node_modules so that each time we build the site the process doesn't have to re-run gitbook install. Signed-off-by: Torin Sandall <torinsandall@gmail.com>
25 lines
811 B
JavaScript
25 lines
811 B
JavaScript
'use strict';
|
|
|
|
var shorthandParser = require('../parsers').shorthandParser;
|
|
var shorthandSetter = require('../parsers').shorthandSetter;
|
|
var shorthandGetter = require('../parsers').shorthandGetter;
|
|
|
|
var shorthand_for = {
|
|
'background-color': require('./backgroundColor'),
|
|
'background-image': require('./backgroundImage'),
|
|
'background-repeat': require('./backgroundRepeat'),
|
|
'background-attachment': require('./backgroundAttachment'),
|
|
'background-position': require('./backgroundPosition')
|
|
};
|
|
|
|
module.exports.isValid = function isValid(v) {
|
|
return shorthandParser(v, shorthand_for) !== undefined;
|
|
};
|
|
|
|
module.exports.definition = {
|
|
set: shorthandSetter('background', shorthand_for),
|
|
get: shorthandGetter('background', shorthand_for),
|
|
enumerable: true,
|
|
configurable: true
|
|
};
|