A Battleship game using Test Driven Development with Jest. Developed for The Odin Project's curriculum.
npm installInstalls dependencies.
npm run startStarts the development server.
npm run testRuns the tests.
npm run watchRuns the test runner in watch mode.
npm run buildBuilds the app for production to the dist directory.
Deploy to GitHub Pages from dist directory.
-
Remove
distdirectory 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-pagesbranch 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
