Git Product home page Git Product logo

cask's Introduction

cask

initial setup

# fork the repository and add your copy as a remote -> I believe this only needs to be done once

TODO: hub fork command for 'teamookla' ( permissions ) 

GITHUB_USER='claytonjwong'
cd "$(brew --repository)"/Library/Taps/homebrew
git clone [email protected]:claytonjwong/homebrew-cask.git
cd homebrew-cask
git remote add "${GITHUB_USER}" "https://github.com/${GITHUB_USER}/homebrew-cask"

test locally: use generated cask to perform install / execution / uninstall

WORKSPACE=/Users/clayton.wong/workspace/cask/
CASK=testing.rb
WORKSPACE_CASK=${WORKSPACE}/${CASK}
brew cask audit ${WORKSPACE_CASK}
brew cask style --fix ${WORKSPACE_CASK}
HOMEBREW="$(brew --repository)"/Library/Taps/homebrew/homebrew-cask
HOMEBREW_CASKS=${HOMEBREW}/Casks
cp ${WORKSPACE_CASK} ${HOMEBREW_CASKS}
export HOMEBREW_NO_AUTO_UPDATE=1
brew cask install testing
testing
brew cask uninstall testing

push to remote: audit/style check, add/commit/push to homebrew-cask fork, and open PR

GITHUB_USER=claytonjwong
WORKSPACE=/Users/clayton.wong/workspace/cask/
CASK=testing.rb
WORKSPACE_CASK=${WORKSPACE}/${CASK}
brew cask audit ${WORKSPACE_CASK}
brew cask style --fix ${WORKSPACE_CASK}
HOMEBREW="$(brew --repository)"/Library/Taps/homebrew/homebrew-cask
HOMEBREW_CASKS=${HOMEBREW}/Casks
VERSION=1.0.0
FEATURE=testing-${VERSION}
BRANCH=feature/${FEATURE}
cd ${HOMEBREW}
git co master
git pull
git co -b ${BRANCH}
cp ${WORKSPACE_CASK} ${HOMEBREW_CASKS}
git add ${HOMEBREW_CASKS}/${CASK}
git ci -m "add ${FEATURE}"
git push --set-upstream origin ${BRANCH}


hub pull-request https://github.com/${GITHUB_USER}/homebrew-cask/pull/new/${BRANCH}


yes | git-delete.sh ${BRANCH}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.