jonmann20.github.io
My personal website.
Setup
npm i
npm i -g gulp
(will already be the default branch)git checkout dev
git worktree add dist master
- When you are in the
dist
folder, you'll be on themaster
branch. 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 prune
and then re-add to get things working again.
Develop
- 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
Test
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
Deploy
gulp prd
cd dist && git add . && git commit -m "" && git push origin master