|
@ -6,7 +6,6 @@ const fs = require('fs'); |
|
|
module.exports = async function (app, opts) { |
|
|
module.exports = async function (app, opts) { |
|
|
fs.readdirSync(__dirname).forEach((filename) => { |
|
|
fs.readdirSync(__dirname).forEach((filename) => { |
|
|
if (!['index.js'].some(f => filename == f)) { |
|
|
if (!['index.js'].some(f => filename == f)) { |
|
|
console.log('filename',filename) |
|
|
|
|
|
const utils = require(`./${filename}`)(app, opts) |
|
|
const utils = require(`./${filename}`)(app, opts) |
|
|
console.log(`载入 ${filename} 工具集成功`); |
|
|
console.log(`载入 ${filename} 工具集成功`); |
|
|
app.fs.utils = { |
|
|
app.fs.utils = { |
|
|