Skip to content

kaela/javascriptisnotjava

Repository files navigation

JavaScript is Not Java

=========================

An illustration of the differences between the two programming languages.

=========================

Get Started

git clone https://github.com/kaela/javascriptisnotjava.git
cd javascriptisnotjava
yarn dev

Deploy Script

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`

Build

Run yarn build

Open up http://localhost:3000

This project uses:

  • react
  • next.js
  • styled-components
  • github pages

Committing Changes

  • 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"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published