My personal website.
npm inpm i -g gulp(will already be the default branch)git checkout devgit worktree add dist master- When you are in the
distfolder, you'll be on themasterbranch. Go back to root and you are ondev. See http://pressedpixels.com/articles/deploying-to-github-pages-with-git-worktree/ for more info.
- When you are in the
- If the dist folder is removed you will need to run
git worktree pruneand then re-add to get things working again.
- Develop in
./ gulp- mostly serves from root, compiles a few things
- http://localhost:8082
cd ./ && git add -A && git commit -m "" && git push origin dev
gulp lint- (just styles)
npm run lint npm run test(must have server running in another tab)gulp prd- compiles to
./dist
- compiles to
gulp srv
gulp prdcd dist && git add . && git commit -m "" && git push origin master