Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
zerofree00 committed May 8, 2023
0 parents commit 39db40d
Show file tree
Hide file tree
Showing 20 changed files with 33,627 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"presets": [
["env", {
"targets": {
"browsers": ["> 1%", "iOS >= 8", "Android >= 4"],
"node": "6.10"
},
"debug": false
}]
],
"plugins": [
"babel-plugin-transform-class-properties",
"transform-object-rest-spread"
]
}
41 changes: 41 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Logs
logs
*.log
npm-debug.log*
.DS_Store

# sublime project
*.sublime-project
*.sublime-workspace

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
node_modules

# Optional npm cache directory
.npm

# Build Data
dist/*
lib/*

testing/*
tests/**/*/testing
tests/**/*/dist

# Optional REPL history
.node_repl_history
.idea/
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
language: node_js

node_js:
- 8
- 10

os:
- linux
- osx

install:
- npm install

script:
- npm run -s build
- npm run -s test
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2017 gregn

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

# 使用filemanager-webpack-plugin2.0.5版本vue2打包dist包之后生成zip压缩包
根据项目的package.json里面的配置打包成name-verson-time

## npm 库地址
https://www.npmjs.com/package/filemanager-vue2-dist-zip

## Install

` npm install filemanager-vue2-dist-zip -D `

## vue2.x项目打包的时候,直接压缩dist生成zip
> zipPlugin 可传入自定义的包名 与outputDir 保持一致,
>
> 如: zipPlugin('dist2')
>
> 默认dist文件名
`输出内容 {
plugin: plugin, // 压缩函数
name: packageData.name // package.json文件中对应的name的值
extract, // 时间格式化 输出结果为 2023.05.06.17.13
name: packageData.name,
time // 返回打出来的zip的包的时间
}`
- 在vue.config.js中

`const {plugin , name } = require('filemanager-vue2-dist-zip')`

`
configureWebpack: {
devtool,
plugins: process.env.NODE_ENV === 'production' ? [zipPlugin('cppcc-data-exchange-shanxi')] : []
}
`

![img.png](md/img.png)
Binary file added md/img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 39db40d

Please sign in to comment.