Skip to content

Instantly share code, notes, and snippets.

@karan
Created May 14, 2014 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karan/6a026cd1d4505eb5e070 to your computer and use it in GitHub Desktop.
Save karan/6a026cd1d4505eb5e070 to your computer and use it in GitHub Desktop.
# Navigate back to your development directory
cd ..
# git clone the Polymer tools repository
git clone git://github.com/Polymer/tools.git
# Create a temporary directory for publishing your element and cd into it
mkdir temp && cd temp
# Run the gp.sh script. This will allow you to push a demo-friendly
# version of your page and its dependencies to a GitHub pages branch
# of your repository (gh-pages). Below, we pass in a GitHub username
# and the repo name for our element
../tools/bin/gp.sh karan test-element
# Finally, clean-up your temporary directory as you no longer require it
cd ..
rm -rf temp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment