[deploy.js] 修改代码格式,以符合 standard 规范

This commit is contained in:
luk.lu
2019-02-18 16:48:23 +08:00
parent b8db940541
commit e5fd39d328

View File

@@ -98,8 +98,8 @@ ssh.connect(connection).then(async () => {
concurrency: 10, concurrency: 10,
recursive: true, recursive: true,
validate: itemPath => { validate: itemPath => {
const baseName = path.basename(itemPath); const baseName = path.basename(itemPath)
return !baseName.endsWith('.map'); return !baseName.endsWith('.map')
}, },
tick: (localPath, remotePath, error) => { tick: (localPath, remotePath, error) => {
console.log(`Uploading "${localPath}" ===> "${remotePath}" ${error || 'succeeded!'}`) console.log(`Uploading "${localPath}" ===> "${remotePath}" ${error || 'succeeded!'}`)