Bladeren bron

More silent deploys for easier debugging of Uppy fails

Kevin van Zonneveld 9 jaren geleden
bovenliggende
commit
8146cd3f1e
2 gewijzigde bestanden met toevoegingen van 6 en 6 verwijderingen
  1. 5 5
      bin/web-deploy
  2. 1 1
      package.json

+ 5 - 5
bin/web-deploy

@@ -23,20 +23,20 @@ rsync \
   --exclude=.git* \
   --exclude=node_modules \
   --exclude=lib \
-  --itemize-changes \
   --checksum \
   --no-times \
   --no-group \
   --no-motd \
   --no-owner \
-./website/public/ /tmp/deploy-${ghpages_repo}
+./website/public/ /tmp/deploy-${ghpages_repo} > /dev/null
 
-echo 'This branch is just a deploy target. Do not edit. You changes will be lost.' > /tmp/deploy-${ghpages_repo}/README.md
+echo 'This branch is just a deploy target. Do not edit. You changes will be lost.' \
+  |tee /tmp/deploy-${ghpages_repo}/README.md
 
-cd /tmp/deploy-${ghpages_repo} \
+(cd /tmp/deploy-${ghpages_repo} \
   && git init && git checkout -B ${ghpages_branch} && git add --all . \
   && git commit -nm "Update ${ghpages_repo} website by $${USER}" \
   && (git remote add origin ${ghpages_url}|| true)  \
-  && git push origin ${ghpages_branch}:refs/heads/${ghpages_branch} --force
+  && git push origin ${ghpages_branch}:refs/heads/${ghpages_branch} --force) > /dev/null
 
 rm -rf /tmp/deploy-${ghpages_repo}

+ 1 - 1
package.json

@@ -25,7 +25,7 @@
     "watch:fast": "parallelshell 'npm run web:fast' 'npm run fast:css'",
     "watch:js": "nodemon --watch src --ext js -x 'npm run build && node website/update.js'",
     "watch": "nodemon --watch src --ext scss,js -x 'npm run build:umd && npm run build:css && node website/update.js'",
-    "web:build": "cd website && node update.js && ./node_modules/.bin/hexo generate && node build-examples.js",
+    "web:build": "cd website && node update.js && ./node_modules/.bin/hexo generate --silent && node build-examples.js",
     "web:clean": "cd website && ./node_modules/.bin/hexo clean",
     "web:deploy": "npm run web:install && npm run web:disc && npm run docs && npm run web:build && ./bin/web-deploy",
     "web:disc": "npm run build:umd:fullpath && discify dist/uppy-fp.js --output website/src/_disc.html && echo '---\nlayout: false\n---\n' |cat - website/src/_disc.html > website/src/disc.html && rm website/src/_disc.html",