nav tabs on admin dashboard

This commit is contained in:
2019-03-07 00:20:34 -06:00
parent f73d6ae228
commit e4f473f376
11661 changed files with 216240 additions and 1544253 deletions

View File

@@ -4,8 +4,8 @@ const commonDir = require('commondir');
const pkgDir = require('pkg-dir');
const makeDir = require('make-dir');
module.exports = options => {
const name = options.name;
module.exports = (options = {}) => {
const {name} = options;
let dir = options.cwd;
if (options.files) {
@@ -24,9 +24,7 @@ module.exports = options => {
}
if (options.thunk) {
return function () {
return path.join.apply(path, [dir].concat(Array.prototype.slice.call(arguments)));
};
return (...args) => path.join(dir, ...args);
}
}