我有这个巨大的文件,我需要目录中的所有文件:
require('./adminAppConfig');
require('./breadcrumb/BreadcrumbController');
require('./calendar/CalendarController');
require('./calendar/calendarDirective');
require('./chart/ChartController');
require('./dashboard/DashBoardController');
require('./email/EmailController');
require('./error/ErrorController');
require('./event/EventController');
require('./navbar/NavbarController');
require('./navbar/navbarDirective');
require('./service/ServiceController');
require('./sidebar/SidebarController');
require('./warning/WarningController');
require('./common/directives/chartDirective');
require('./common/directives/controllerActionDirective');
require('./common/directives/controllerDirective');
require('./common/directives/emailDirective');
require('./common/directives/dataSidebarDirective');
require('./common/directives/serviceDirective');
require('./common/directives/tableDirective');
require('./common/models/BookingModel');
require('./common/models/EventModel');
require('./common/services/layoutService');
require('./common/services/watchService');
我想知道是否有可能要求所有人一个接一个地写。
我试图:
require('./*.js');
require('./*/*.js');
require('./*/*/*.js');
但这不起作用。
感谢。