mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-11 22:06:17 -08:00
update
This commit is contained in:
1 parent
c4b4d4e7a8
commit
3fc4b99841
15 files changed
+39
-7438
No files matched your search
+4
-2
@@ -12,14 +12,16 @@ async function develop(name) {
|
||||
reload: true,
|
||||
port: 8081,
|
||||
});
|
||||
|
||||
openBrowser(url);
|
||||
|
||||
const dir = projects[name];
|
||||
const bundler = new Parcel({
|
||||
entries: `${dir}/src/index.js`,
|
||||
entries: `${projects[name]}/src/index.js`,
|
||||
defaultConfig: '@parcel/config-default',
|
||||
mode: 'development',
|
||||
targets: ['modern'],
|
||||
defaultTargetOptions: {
|
||||
distDir: `docs/uncompiled`,
|
||||
engines: {
|
||||
browsers: ['last 1 Chrome version'],
|
||||
},
|
||||
|
||||
+8
-5
@@ -1,8 +1,11 @@
|
||||
import path from 'path';
|
||||
import glob from 'glob';
|
||||
|
||||
export default glob.sync(path.join(process.cwd(), 'packages/*')).reduce((result, item) => {
|
||||
const name = item.split(path.sep).pop();
|
||||
result[name] = item;
|
||||
return result;
|
||||
}, {});
|
||||
export default glob
|
||||
.sync(path.join(process.cwd(), 'packages/*'))
|
||||
.filter((item) => !item.endsWith('artplayer-document'))
|
||||
.reduce((result, item) => {
|
||||
const name = item.split(path.sep).pop();
|
||||
result[name] = item;
|
||||
return result;
|
||||
}, {});
|
||||
Reference in new issue
Block a user