mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-11-30 17:17:55 +08:00
style: auto format
This commit is contained in:
@@ -3,16 +3,13 @@ const fs = require('fs-extra');
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
const { nodeFileTrace } = require('@vercel/nft');
|
const { nodeFileTrace } = require('@vercel/nft');
|
||||||
const files = ['lib/index.js', 'api/now.js'];
|
const files = ['lib/index.js', 'api/now.js'];
|
||||||
const resultFolder = "app-minimal";
|
const resultFolder = 'app-minimal';
|
||||||
|
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
console.log("Start analyizing...");
|
console.log('Start analyizing...');
|
||||||
const { fileList } = await nodeFileTrace(files, {
|
const { fileList } = await nodeFileTrace(files, {
|
||||||
base: path.resolve(path.join(__dirname, '../..')),
|
base: path.resolve(path.join(__dirname, '../..')),
|
||||||
});
|
});
|
||||||
console.log("Total files need to be copy: " + fileList.length);
|
console.log('Total files need to be copy: ' + fileList.length);
|
||||||
return Promise.all(
|
return Promise.all(fileList.map((e) => fs.copy(e, path.resolve(path.join(resultFolder, e)))));
|
||||||
fileList.map((e) => fs.copy(e, path.resolve(path.join(resultFolder, e))))
|
|
||||||
);
|
|
||||||
})();
|
})();
|
||||||
|
|||||||
Reference in New Issue
Block a user