mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
测试:系统设置
This commit is contained in:
1 parent
747cb1b9b5
commit
0304cd808f
12 files changed
+147
-88
No files matched your search
+7
-3
@@ -21,12 +21,16 @@ function ensureDir(dir) {
|
||||
|
||||
const active = [];
|
||||
const fail = [];
|
||||
|
||||
try {
|
||||
// Let webpack pack builtin module together.
|
||||
// eslint-disable-next-line import/no-unresolved
|
||||
const f = require('../.build/builtin.json');
|
||||
const m = { ...yaml.safeLoad(zlib.gunzipSync(f.data)), id: 'builtin' };
|
||||
active.push(m);
|
||||
const f = require('../.build/module.json');
|
||||
for (const filename in f) {
|
||||
const m = { ...yaml.safeLoad(zlib.gunzipSync(f[filename])), filename };
|
||||
active.push(m);
|
||||
console.log(filename);
|
||||
}
|
||||
} catch (e) {
|
||||
// Builtin module is in the module directory
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user