A Battleship game using Test Driven Development with Jest. Developed for The Odin Project's curriculum.
npm install
Installs dependencies.
npm run start
Starts the development server.
npm run test
Runs the tests.
npm run watch
Runs the test runner in watch mode.
npm run build
Builds the app for production to the dist
directory.
Deploy to GitHub Pages from dist
directory.
-
Remove
dist
directory from.gitignore
. -
Create production bundle:
npm run build
- Make sure git knows about your subtree (the subfolder with your site).
git add dist && git commit -m "Initial dist subtree commit"
- Use subtree push to send it to the
gh-pages
branch on GitHub.
git subtree push --prefix dist origin gh-pages
- How to setup testing.
- Developing using Test Driven Development with Jest.
- Using Factory Functions and the Module Pattern.
- Manual deployment to GitHub Pages.
- Using webpack for bundling and compiling.
👤 Arys Aikyn
- Github: @arysaikyn