faster-webpack-upload-plugin
Advanced tools
Comparing version 1.2.0 to 1.2.1
{ | ||
"name": "faster-webpack-upload-plugin", | ||
"version": "1.2.0", | ||
"author": "WangTieZhu92", | ||
"license": "MIT", | ||
"description": "Upload your files to ftp server easier and faster,add support to 'webpack --watch'", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/tiezhu92/faster-webpack-upload-plugin" | ||
}, | ||
"keywords": [ | ||
"webpack", | ||
"sftp", | ||
"ssh2", | ||
"fast", | ||
"plugin" | ||
], | ||
"main": "src/index.js", | ||
"dependencies": { | ||
"chalk": "1.1.3", | ||
"single-line-log": "1.1.2", | ||
"ssh2-sftp-client": "2.4.3" | ||
} | ||
"name": "faster-webpack-upload-plugin", | ||
"version": "1.2.1", | ||
"author": "WangTieZhu92", | ||
"license": "996.ICU", | ||
"description": "Upload your files to ftp server easier and faster,add support to 'webpack --watch'", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/tiezhu92/faster-webpack-upload-plugin" | ||
}, | ||
"keywords": [ | ||
"webpack", | ||
"sftp", | ||
"ssh2", | ||
"fast", | ||
"upload", | ||
"plugin" | ||
], | ||
"main": "src/index.js", | ||
"dependencies": { | ||
"chalk": "1.1.3", | ||
"single-line-log": "1.1.2", | ||
"ssh2-sftp-client": "2.4.3" | ||
} | ||
} |
@@ -52,2 +52,7 @@ # faster-webpack-upload-plugin | ||
### 1.2.1 | ||
``` | ||
- change: change license from MIT to 996.ICU License | ||
``` | ||
### 1.2.0 | ||
@@ -59,2 +64,2 @@ ``` | ||
## License | ||
This project is licensed under [MIT](http://www.opensource.org/licenses/mit-license.php). | ||
This project is licensed under [996.ICU](https://github.com/996icu/996.ICU/blob/master/LICENSE). |
@@ -126,6 +126,5 @@ 'use strict' | ||
getFolderNFiles(folders, files, assets){ | ||
getFolderNFiles(folders, files, assets) { | ||
const folderSet = folders && new Set(); | ||
for (const file in assets) { | ||
if (assets[file].emitted && (!this.options.fileIgnores || !this.options.fileIgnores.some((regexp) => regexp.test(assets[file].existsAt)))) { | ||
@@ -151,3 +150,3 @@ const remote = formatRemotePath(this.options.remotePath, file); | ||
} | ||
} | ||
@@ -154,0 +153,0 @@ } |
@@ -5,44 +5,44 @@ const slog = require('single-line-log').stdout; | ||
// 两个基本参数(属性) | ||
// 两个基本参数(属性) | ||
this.description = description || 'Progress'; // 命令行开头的文字信息 | ||
this.description = description || 'Progress'; // 命令行开头的文字信息 | ||
this.length = bar_length || 25; // 进度条的长度(单位:字符),默认设为 25 | ||
this.length = bar_length || 25; // 进度条的长度(单位:字符),默认设为 25 | ||
// 刷新进度条图案、文字的方法 | ||
// 刷新进度条图案、文字的方法 | ||
this.render = function (opts) { | ||
this.render = function (opts) { | ||
const cell_num = Math.floor(opts.percent * this.length); // 计算需要多少个 █ 符号来拼凑图案 | ||
const cell_num = Math.floor(opts.percent * this.length); // 计算需要多少个 █ 符号来拼凑图案 | ||
// 拼接黑色条 | ||
// 拼接黑色条 | ||
let cell = ''; | ||
let cell = ''; | ||
for (let i = 0; i < cell_num; i++) { | ||
for (let i = 0; i < cell_num; i++) { | ||
cell += '█'; | ||
cell += '█'; | ||
} | ||
} | ||
// 拼接灰色条 | ||
// 拼接灰色条 | ||
let empty = ''; | ||
let empty = ''; | ||
for (let i = 0; i < this.length - cell_num; i++) { | ||
for (let i = 0; i < this.length - cell_num; i++) { | ||
empty += '░'; | ||
empty += '░'; | ||
} | ||
} | ||
// 拼接最终文本 | ||
// 拼接最终文本 | ||
const cmdText = this.description + ': ' + (100 * opts.percent).toFixed(2) + '% ' + cell + empty + ' ' + opts.completed + '/' + opts.total; | ||
const cmdText = this.description + ': ' + (100 * opts.percent).toFixed(2) + '% ' + cell + empty + ' ' + opts.completed + '/' + opts.total; | ||
// 在单行输出文本 | ||
// 在单行输出文本 | ||
slog(cmdText); | ||
slog(cmdText); | ||
}; | ||
}; | ||
} |
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
11590
5
64
1
1
80