skypager-project
Version:
skypager project framework
206 lines (156 loc) • 5.26 kB
JavaScript
exports.ids = [6];
exports.modules = {
/***/ "./src/project-types/application.js":
/***/ function(module, exports) {
;
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.use = use;
exports.attach = attach;
function use() {
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var next = arguments[2];
var _context$project = context.project;
var project = _context$project === undefined ? this : _context$project;
attach(project, options, next);
}
function attach(project) {
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var next = arguments[2];
next();
}
/***/ },
/***/ "./src/project-types/library.js":
/***/ function(module, exports, __webpack_require__) {
;
/* harmony export (immutable) */ exports["use"] = use;
/* harmony export (immutable) */ exports["attach"] = attach;
function use (options = {}, context = {}, next) {
const { project = this } = context
attach(project, options, next)
}
function attach (project, options = {}, next) {
next()
}
/***/ },
/***/ "./src/project-types/mobile-app.js":
/***/ function(module, exports) {
;
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.use = use;
exports.attach = attach;
function use() {
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var next = arguments[2];
var _context$project = context.project;
var project = _context$project === undefined ? this : _context$project;
attach(project, options, next);
}
function attach(project) {
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var next = arguments[2];
next();
}
/***/ },
/***/ "./src/project-types/portfolio.js":
/***/ function(module, exports) {
;
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.use = use;
exports.attach = attach;
function use() {
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var next = arguments[2];
var _context$project = context.project;
var project = _context$project === undefined ? this : _context$project;
attach(project, options, next);
}
function attach(project) {
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var next = arguments[2];
next();
}
/***/ },
/***/ "./src/project-types/website.js":
/***/ function(module, exports) {
;
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.use = use;
exports.attach = attach;
function use() {
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var next = arguments[2];
var _context$project = context.project;
var project = _context$project === undefined ? this : _context$project;
attach(project, options, next);
}
function attach(project) {
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var next = arguments[2];
decorate(project, options);
typeof next === 'function' && next();
return project;
}
var helpers = exports.helpers = {
selectors: 'website/sitemap'
};
var decorate = exports.decorate = function decorate(project) {
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
project.selectors.register('website/sitemap', function () {
return function (chain) {
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var _options$prefix = options.prefix;
var prefix = _options$prefix === undefined ? '/' : _options$prefix;
return chain.invoke('documentType', 'page-config').invoke('loadMatchingDocuments').map(function (doc) {
return doc.buildPageConfig(options);
}).keyBy(function (doc) {
return doc.route || doc.id;
}).thru(function (routes) {
return { prefix: prefix, routes: routes };
});
};
});
return project;
};
/***/ },
/***/ 128:
/***/ function(module, exports, __webpack_require__) {
var map = {
"./application.js": "./src/project-types/application.js",
"./library.js": "./src/project-types/library.js",
"./mobile-app.js": "./src/project-types/mobile-app.js",
"./portfolio.js": "./src/project-types/portfolio.js",
"./website.js": "./src/project-types/website.js"
};
function webpackContext(req) {
return __webpack_require__(webpackContextResolve(req));
};
function webpackContextResolve(req) {
var id = map[req];
if(!(id + 1)) // check for number
throw new Error("Cannot find module '" + req + "'.");
return id;
};
webpackContext.keys = function webpackContextKeys() {
return Object.keys(map);
};
webpackContext.resolve = webpackContextResolve;
module.exports = webpackContext;
webpackContext.id = 128;
/***/ }
};;