now-sync
Version:
A tool to help developers sync their JavaScript resources with ServiceNow.
19 lines (14 loc) • 377 B
JavaScript
const _ = require('lodash');
const FILE_CONFIGS = require('./file-configs');
const defaultConfig = {
config: {},
filePath: '',
records: {}
};
_.forEach(FILE_CONFIGS, (configObj, tableName) => {
defaultConfig.config[tableName] = configObj;
if (!defaultConfig.records[tableName]) {
defaultConfig.records[tableName] = [];
}
});
module.exports = defaultConfig;