=========================
An illustration of the differences between the two programming languages.
=========================
git clone https://github.com/kaela/javascriptisnotjava.git
cd javascriptisnotjava
yarn dev
When originally creating the site, change the end of the deploy command to:
git subtree push --prefix out origin gh-pages
Any time after, use:
git push origin `git subtree split --prefix out -b gh-pages`:gh-pages --force`
Run yarn build
Open up http://localhost:3000
This project uses:
- react
- next.js
- styled-components
- github pages
yarn deploy
- This will both commit changes and deploy
"deploy":
"rm -rf node_modules/.cache &&
next build && next export &&
touch out/.nojekyll &&
touch out/CNAME &&
echo \"javascriptisnotjava.com\" >> out/CNAME &&
git add out/ &&
git commit -m \"Deploy Next.js to gh-pages\" &&
git push origin `git subtree split --prefix out -b gh-pages`:gh-pages --force"