PRs are welcome. When submitting a PR, please consider the following:
-
We require tests and will most likely reject a PR if there are no tests.
-
We are using TypeScript and all development should be done in TypeScript.
-
This project uses ESLint for linting and Prettier for formatting. See more below.
- Setup the project by running
npm run install
. - Disable the Averta font by setting
_useAvertaFont
tofalse
insrc/op-config/constants.ts
. - Run
npm run ios
to run the app on iOS,npm run android
to run the app on Android, ornpm run web
to run the app on the web.
That's it! 🎉
Ordinary Puzzles is being tested with Jest.
For running the tests, run npm run test:watch
to test as you develop, or npm run test
for a single run.
This project uses ESLint with a simple preset of rules used by Create-React-App.
This ESLint setup also includes a standard Prettier configuration that handles the code formatting.
The code is automatically formatted before each commit (see the lint-staged
section in the package.json
for more details).
We suggest to enable the formatting on save feature of your editor of choice. If you use VSCode it will be already enabled by default while working on this project (see the .vscode
directory included in the project).
To manually invoke the linter you can run npm run lint
.