Skip to content

Commit

Permalink
use top-level import
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Nov 24, 2022
1 parent 6a20696 commit 27d313b
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 25 deletions.
24 changes: 14 additions & 10 deletions lib/extend/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
'use strict';

exports.Console = require('./console');
exports.Deployer = require('./deployer');
exports.Filter = require('./filter');
exports.Generator = require('./generator');
exports.Helper = require('./helper');
exports.Injector = require('./injector');
exports.Migrator = require('./migrator');
exports.Processor = require('./processor');
exports.Renderer = require('./renderer');
exports.Tag = require('./tag');
const Console = require('./console');
const Deployer = require('./deployer');
const Filter = require('./filter');
const Generator = require('./generator');
const Helper = require('./helper');
const Injector = require('./injector');
const Migrator = require('./migrator');
const Processor = require('./processor');
const Renderer = require('./renderer');
const Tag = require('./tag');

module.exports = {
Console, Deployer, Filter, Generator, Helper, Injector, Migrator, Processor, Renderer, Tag
};
24 changes: 14 additions & 10 deletions lib/models/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
'use strict';

exports.Asset = require('./asset');
exports.Cache = require('./cache');
exports.Category = require('./category');
exports.Data = require('./data');
exports.Page = require('./page');
exports.Post = require('./post');
exports.PostAsset = require('./post_asset');
exports.PostCategory = require('./post_category');
exports.PostTag = require('./post_tag');
exports.Tag = require('./tag');
const Asset = require('./asset');
const Cache = require('./cache');
const Category = require('./category');
const Data = require('./data');
const Page = require('./page');
const Post = require('./post');
const PostAsset = require('./post_asset');
const PostCategory = require('./post_category');
const PostTag = require('./post_tag');
const Tag = require('./tag');

module.exports = {
Asset, Cache, Category, Data, Page, Post, PostAsset, PostCategory, PostTag, Tag
};
11 changes: 6 additions & 5 deletions lib/plugins/console/list/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
'use strict';

const abbrev = require('abbrev');
const page = require('./page');
const post = require('./post');
const route = require('./route');
const tag = require('./tag');
const category = require('./category');

const store = {
page: require('./page'),
post: require('./post'),
route: require('./route'),
tag: require('./tag'),
category: require('./category')
page, post, route, tag, category
};

const alias = abbrev(Object.keys(store));
Expand Down

0 comments on commit 27d313b

Please sign in to comment.