mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-13 07:46:17 -08:00
build all packages
This commit is contained in:
1 parent
b909f2f498
commit
7341d53c5c
19 files changed
+178
-93
No files matched your search
+10
-5
@@ -2,9 +2,14 @@ const path = require('path');
|
||||
const glob = require('glob');
|
||||
|
||||
module.exports = function getProjects() {
|
||||
return glob.sync(path.join(process.cwd(), 'packages/*')).reduce((result, item) => {
|
||||
const name = item.split(path.sep).pop();
|
||||
result[name] = item;
|
||||
return result;
|
||||
}, {});
|
||||
return glob
|
||||
.sync(path.join(process.cwd(), 'packages/*'))
|
||||
.filter((item) => {
|
||||
return !item.includes('artplayer-document');
|
||||
})
|
||||
.reduce((result, item) => {
|
||||
const name = item.split(path.sep).pop();
|
||||
result[name] = item;
|
||||
return result;
|
||||
}, {});
|
||||
};
|
||||
Reference in new issue
Block a user