mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
简化模块加载
deprecated hydro-build
This commit is contained in:
1 parent
8aef05a375
commit
8f6968bbbd
41 files changed
+1361
-1957
No files matched your search
@@ -0,0 +1,13 @@
|
||||
const AdmZip = require('adm-zip');
|
||||
|
||||
function build() {
|
||||
const zip = new AdmZip();
|
||||
zip.addLocalFolder('public', 'public');
|
||||
zip.addLocalFolder('locales', 'locales');
|
||||
zip.addLocalFolder('templates', 'templates');
|
||||
zip.addLocalFolder('wiki', 'wiki');
|
||||
zip.addLocalFile('package.json');
|
||||
zip.writeZip('.build/builtin.hydro');
|
||||
}
|
||||
|
||||
module.exports = build;
|
||||
Reference in new issue
Block a user