mirror of https://github.com/ColorlibHQ/gentelella
31 lines
619 B
JavaScript
31 lines
619 B
JavaScript
'use strict';
|
|
|
|
|
|
module.exports = function(app) {
|
|
if (!app.isUpdate) return;
|
|
|
|
var config = require('base-config');
|
|
app.use(config());
|
|
|
|
app.config
|
|
.map('addViews')
|
|
.map('addView')
|
|
.map('helpers')
|
|
.map('asyncHelpers')
|
|
.map('plugins', function(val) {
|
|
app.visit('plugin', val);
|
|
})
|
|
.map('data', function(val) {
|
|
app.visit('data', val);
|
|
})
|
|
.map('collections', function(val) {
|
|
app.visit('create', val);
|
|
})
|
|
.map('reflinks', function(val) {
|
|
app.data({reflinks: val});
|
|
})
|
|
.map('related', function(val) {
|
|
app.data({related: val});
|
|
});
|
|
};
|