Package Exports
- xboot
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (xboot) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
xboot
nodejs下引导加载模块工具.
Install
npm install xbootUsage
xboot支持命令行,以及在代码中使用两种方式
命令行
使用xboot加载引导模块文件
./node_modules/.bin/xbootjavascript
在代码中使用BootLoader匹配加载模块
简单加载模块
const {BootLoader} = requre('xboot');
const patterns = 'module.js';
const opts = {};
const loader = new BootLoader(patterns, opts);
loader.forEach(() => {});自定义模块加载后续处理
const {BootLoader} = requre('xboot');
const patterns = 'module.js';
const opts = {};
const loader = new BootLoader(patterns, opts);
for(module of loader){
const {path,content,cwd} = module;
// 功能逻辑处理
}Documentations
使用jsdoc生成注释文档
git clone https://github.com/kiba-zhao/xboot.git
cd xboot
npm install
npm run docs
open docs/index.html