# create-web-version-zip

> Package the automatically generated version and the corresponding resource compression package(打包自动生成版本以及对应的静态资源压缩包)

Latest version **1.0.1** (published 2021-09-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install create-web-version-zip
pnpm add create-web-version-zip
yarn add create-web-version-zip
bun add create-web-version-zip
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-09-07 |
| First published | 2021-09-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 8.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | yukixy |
| Maintainers | yukixy |
| Keywords | web, version, zip |

## Links

- npm: https://www.npmjs.com/package/create-web-version-zip
- npm.io page: https://npm.io/package/create-web-version-zip

## Dependencies (4)

- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [archiver](https://npm.io/package/archiver.md) ^5.3.0
- [fnv-plus](https://npm.io/package/fnv-plus.md) ^1.3.1
- [cross-env](https://npm.io/package/cross-env.md) ^7.0.3

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2021-09-07
- 1.0.0 — 2021-09-06

## README

# create-web-version-zip 
$ One-click automatic generation of template files(打包自动生成版本以及对应的静态资源压缩包)

# install 
$ npm install create-web-version-zip -D 
#
OR
#
$ yarn add create-web-version-zip -D

# Example:
```
Created packageZip.js in the project. example: In the root directory(在项目中创建packageZip.js.比如在根目录/) 

// packageZip.js   

const packageZip = require('create-web-version-zip');
const path = require('path');
const staticFilesPath = path.resolve(process.cwd(), 'dist'); // 静态文件夹路径
const versionDirName = 'static'; // 存放版本zip及版本信息的目录名称， 该目录存放在静态文件夹下
packageZip(staticFilesPath, versionDirName);

// package.json
"scripts": { 
    "build": "vue-cli-service build && node packageZip.js"
}

```

---
_Source: https://npm.io/package/create-web-version-zip · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
