@taole/deploy-helper 0.3.6 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.mjs +4 -0
- package/lib/util.mjs +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -264,9 +264,13 @@ async function main() {
|
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
// 4. 执行git pull
|
|
267
|
+
log(`${assetsDest}执行git pull`);
|
|
267
268
|
await assetsGit.pull();
|
|
269
|
+
log(`${assetsDest} git pull done`);
|
|
268
270
|
if (entryGit) {
|
|
271
|
+
log(`${entryDest}执行git pull`);
|
|
269
272
|
await entryGit.pull();
|
|
273
|
+
log(`${entryDest} git pull done`);
|
|
270
274
|
}
|
|
271
275
|
|
|
272
276
|
// 5. 复制构建产物
|
package/lib/util.mjs
CHANGED
|
@@ -9,8 +9,8 @@ export function isDebug() {
|
|
|
9
9
|
|
|
10
10
|
export function log(...args) {
|
|
11
11
|
if (_isDebug) {
|
|
12
|
-
// 打印时间
|
|
13
|
-
console.log(`[${new Date().
|
|
12
|
+
// 打印时间
|
|
13
|
+
console.log(`[${new Date().toLocaleTimeString()}]`, ...args);
|
|
14
14
|
} else {
|
|
15
15
|
console.log(...args);
|
|
16
16
|
}
|