git checkout master # you can avoid this line if you are in master...
git subtree split --prefix dist -b gh-pages # create a local gh-pages branch containing the splitted output folder
git push -f origin gh-pages:gh-pages # force the push of the gh-pages branch to the remote gh-pages branch at origin
git branch -D gh-pages # delete the local gh-pages because you will need it: ref
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const PENDING = 1; | |
const RESOLVED = 2; | |
const REJECTED = 3; | |
const callLater = (fn) => setTimeout(fn, 0); | |
class Promise { | |
constructor(initPromiseFn) { | |
this._state = PENDING; | |
this._value = undefined; |