This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.
— Erik
| const webdriver = require('selenium-webdriver'), | |
| By = webdriver.By, | |
| until = webdriver.until, | |
| getChrome = require('get-chrome'); | |
| require('chromedriver'); | |
| let driver = new webdriver.Builder() | |
| .withCapabilities({ | |
| chromeOptions: { | |
| binary: getChrome(), |
| notifications: | |
| email: | |
| - [email protected] | |
| env: | |
| global: | |
| - GH_TOKEN=$G | |
| - PUBLISHED_DIR=".published" | |
| language: node_js | |
| node_js: | |
| - "8" |
| if [ -z "${GH_TOKEN}" ]; then "GH_TOKEN is not setted" 1>&2; fi | |
| if [ -z "${REPO}" ]; then REPO=$(sed "s/https:\/\/github.com/https:\/\/${GH_TOKEN}@github.com/g" <<< $(git config remote.origin.url)); fi | |
| if [ -z "${BUILD_BRANCH}" ]; then BUILD_BRANCH="gh-pages"; fi | |
| if [ -z "${PUBLISHED_DIR}" ]; then PUBLISHED_DIR=".published"; fi | |
| if [ -z "${COMMIT_MSG}" ]; then COMMIT_MSG=$(git log --oneline -n 1 --pretty="Deploy: %s from %h"); fi | |
| git checkout --orphan $BUILD_BRANCH | |
| git pull origin $BUILD_BRANCH | |
| shopt -s extglob | |
| rm -rf !(.git|$PUBLISHED_DIR) | |
| mv -f "${PUBLISHED_DIR}"/* ./ |