toolness / p5.js-widget

A reusable widget for embedding editable p5 sketches in web pages.
https://toolness.github.io/p5.js-widget/
GNU Lesser General Public License v2.1
161 stars 44 forks source link

Make update-gh-pages.sh do its work in a different directory #23

Closed toolness closed 8 years ago

toolness commented 8 years ago

The update script currently runs git checkout gh-pages in the current working directory, which totally confuses npm start (if it's currently running), any text editors with opened files in the current driectory, and it also requires a bunch of stuffing files into temporary directories and junk.

Instead, we could clone the gh-pages branch into a subdirectory. That way the current checkout would remain undisturbed and files could easily be copied between the two branches.