Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
Add zip command
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei committed Aug 11, 2024
1 parent d53b6fc commit 8710c4b
Show file tree
Hide file tree
Showing 4 changed files with 171 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
dist.zip
146 changes: 146 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "@comfyorg/comfyui_legacy_frontend",
"version": "1.0.0",
"description": "ComfyUI legacy JS frontend",
"main": "src/index.html",
"author": "ComfyUI developers",
"license": "GPL-3.0-or-later",
"scripts": {
"zipdist": "node scripts/zipdist.mjs"
},
"devDependencies": {
"zip-dir": "^2.0.0"
}
}
9 changes: 9 additions & 0 deletions scripts/zipdist.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import zipdir from 'zip-dir'

zipdir('./src', { saveTo: './dist.zip' }, function (err, buffer) {
if (err) {
console.error('Error zipping "dist" directory:', err)
} else {
console.log('Successfully zipped "dist" directory.')
}
})

0 comments on commit 8710c4b

Please sign in to comment.