vite-plugin-auto-zip
Advanced tools
Comparing version 1.0.4 to 1.1.0
{ | ||
"name": "vite-plugin-auto-zip", | ||
"version": "1.0.4", | ||
"version": "1.1.0", | ||
"description": "provide a vite plugin then zip your file after compile done", | ||
"main": "plugin.js", | ||
"main": "dist/vite-plugin-auto-zip.umd.js", | ||
"module": "dist/vite-plugin-auto-zip.mjs", | ||
"types": "./types", | ||
"type": "module", | ||
"files": [ | ||
"dist", | ||
"types" | ||
], | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"build": "rimraf -rf ./dist && rollup --config && yarn run build:types", | ||
"build:types": "rimraf -rf ./types && mkdir ./types && tsc -p ./tsconfig.json", | ||
"test": "node test.js" | ||
}, | ||
@@ -15,3 +24,4 @@ "repository": { | ||
"vite", | ||
"plugin" | ||
"plugin", | ||
"zip files" | ||
], | ||
@@ -24,5 +34,14 @@ "author": "webszy", | ||
"homepage": "https://github.com/webszy/vite-plugin-auto-zip#readme", | ||
"dependencies": { | ||
"jszip": "^3.5.0" | ||
"devDependencies": { | ||
"@rollup/plugin-typescript": "^11.1.5", | ||
"@types/node": "^20.10.6", | ||
"jszip": "^3.5.0", | ||
"rollup": "^4.9.2", | ||
"rollup-plugin-dts": "^6.1.0", | ||
"rollup-plugin-typescript2": "^0.36.0", | ||
"tslib": "^2.6.2", | ||
"typescript": "^5.3.3", | ||
"vite": "^5.0.10", | ||
"rimraf": "^5.0.5" | ||
} | ||
} |
# vite-plugin-auto-zip | ||
my first vite plugin:vite-plugin-auto-zip,you will auto zip when vite build done | ||
> basic use on vite.config.js | ||
my first vite plugin named auto-zip,mean it will auto zip your dist files after vite build done ,only emit when | ||
production | ||
### basic use on vite.config.js | ||
```javascript | ||
import AutoZip from 'vite-plugin-auto-zip' | ||
// const AutoZip = require('vite-plugin-auto-zip') also supported | ||
{ | ||
plugins:[AutoZip()] | ||
plugins:[ | ||
AutoZip() | ||
] | ||
} | ||
``` | ||
### params of AutoZip | ||
1. folderPath | ||
+ the target folder you want to zip | ||
+ default value is './dist' | ||
2. outPath | ||
+ the output folder you want to put the zip file | ||
+ default value is './dist' | ||
3. outName | ||
+ your zip file name | ||
+ default value is 'dist.zip' | ||
```typescript | ||
function AutoZip(folderPath: string = './dist', outPath: string = './dist', outName: string = 'dist.zip') | ||
``` |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
5040
0
5
88
0
33
0
Yes
10
- Removedjszip@^3.5.0
- Removedcore-util-is@1.0.3(transitive)
- Removedimmediate@3.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedisarray@1.0.0(transitive)
- Removedjszip@3.10.1(transitive)
- Removedlie@3.3.0(transitive)
- Removedpako@1.0.11(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedsetimmediate@1.0.5(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedutil-deprecate@1.0.2(transitive)