mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-11 13:56:15 -08:00
完成dev脚本
This commit is contained in:
1 parent
c2bbe15e79
commit
cc2027832e
7 files changed
+118
-12
No files matched your search
@@ -0,0 +1,11 @@
|
||||
const path = require('path');
|
||||
const glob = require('glob');
|
||||
|
||||
module.exports = function getProjects() {
|
||||
const projects = {};
|
||||
glob.sync(path.join(process.cwd(), 'packages/*')).forEach(item => {
|
||||
const name = item.split(path.sep).pop();
|
||||
projects[name] = item;
|
||||
});
|
||||
return projects;
|
||||
};
|
||||
Reference in new issue
Block a user