代码拉取完成,页面将自动刷新
const fs = require('fs');
const fs_extra = require('fs-extra');
const fs_plus = require('fs-plus');
const build_deps = require('./build/build-deps.js');
const path = require('path');
const config = {
"workPath": __dirname,
"fileIgnore": [
path.resolve(__dirname, './common/modules/mixly-modules/mixly.min.js')
],
"dirIgnore": [
]
};
const needBuildDirList = [
__dirname + '/mixly-sw/mixly-modules/',
__dirname + '/common/modules/mixly-modules/'
];
const generateDeps = () => {
for (let needBuildDir of needBuildDirList) {
let fileIgnore = [];
let dirIgnore = [];
if (typeof config.fileIgnore === 'object') {
for (let data of config.fileIgnore) {
fileIgnore.push(path.resolve(needBuildDir, data));
}
}
if (typeof config.dirIgnore === 'object') {
for (let data of config.dirIgnore) {
dirIgnore.push(path.resolve(needBuildDir, data));
}
}
let outputConfig = [];
console.log('deps.json生成中...');
const ignore = {
dir: dirIgnore,
file: fileIgnore
};
outputConfig = build_deps.generate(needBuildDir, ignore);
fs_extra.outputJsonSync(path.join(needBuildDir, 'deps.json'), outputConfig, {
spaces: ' '
});
console.log(path.join(needBuildDir, 'deps.json') + '生成成功');
}
}
generateDeps();
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。