-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 39db40d
Showing
20 changed files
with
33,627 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')] : [] | ||
} | ||
` | ||
|
||
 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.