Comparing version 1.0.0 to 2.0.0
@@ -8,3 +8,2 @@ #!/usr/bin/env node | ||
const argv = require('minimist')(process.argv.slice(2)) | ||
console.log(argv) | ||
function readDir(zip, dirPath) { | ||
@@ -40,4 +39,4 @@ const files = fs.readdirSync(dirPath) | ||
const stats = await fs.stat(zipName) | ||
console.log(chalk.red.bold.bgWhite(stats.size)) | ||
if (stats.size > 100 * 1024 * 1000) { | ||
console.log(chalk.red.bold.bgWhite(stats.size)) | ||
console.log(chalk.red.bold.bgWhite('文件最大为100MB')) | ||
@@ -54,4 +53,3 @@ return Promise.reject() | ||
const zipName = await generateZip() | ||
console.log(zipName) | ||
const browser = await puppeteer.launch({ headless: false, args: ['--start-maximized'] }) | ||
const browser = await puppeteer.launch({ headless: true, args: ['--start-maximized'] }) | ||
const page = await browser.newPage() | ||
@@ -75,4 +73,5 @@ await page.goto('http://show.hsmob.com/') | ||
await page.waitForSelector(copyBtn) | ||
await browser.close() | ||
console.log(chalk.green('upload success')) | ||
console.log(chalk.green(`地址:http://${websiteName}.show.hsmob.com`)) | ||
})() |
{ | ||
"name": "hsmob", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"description": "upload zip to show.hsmob.com", | ||
@@ -16,7 +16,4 @@ "main": "index.js", | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "", | ||
"license": "ISC" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
1
2918
73