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.
The update script currently runs
git checkout gh-pages
in the current working directory, which totally confusesnpm 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.