Decent template repo for pixi v7 with @pixi/react and mobx
This is a template with all you need for your next web application. Aims for developers who really care about code quality, architecture, security and all the best practices in frontend.
- Architecture of pixiplate is reminiscent of project structure we use at Broit. It provides developer with decent game development foundation and uses reactive development principles to provide high development speed.
- Most of the time problems are solved with React hooks and classes are obly used while being wrapped in functional @pixi/react components when necessary.
- i18next – The easiest way to translate your PixiJS games
- BabelEdit - Reliable localization editor. To use i18next localization files with Sheets or Excell, check out Scripts section
- mobx – A lightweight and easy to work with state manager
- MobX Developer Tools - Simple extension to look at your stores from browser
- GSAP - Do I even need to explain why?
- @pixi/spine - Industry standart for skeletal animation
- ESLint – Find and fix problems in your JavaScript code
- Prettier – An opinionated code formatter, supporting multiple languages and code editors
- Husky – Modern native Git hooks made easy
- lint-staged – Run linters against staged git files and don't let 💩 slip into your code base
- commitlint – Helps your team adhering to a commit convention
- Standard Version – A utility for versioning using semver and CHANGELOG generation powered by Conventional Commits
- PostHog – Collect any analytics without GDPR compliancy
- pixi-viewport – For when you need a camera
-
Click on "Use this template" button
-
Configure your new repository and click on "Create repository from template" button
-
Now you can clone the generated repository to your local machine:
git clone https://github.com/<YOUR-GITHUB-LOGIN>/<NAME-OF-YOUR-GENERATED-REPOSITORY>.git
-
install dependencies:
yarn install
Run the local development server:
yarn dev
You can generate a build to test and/or deploy to your production environment.
docker run -it $(docker build -q .)
You can run linting with this commands:
yarn lint
Run to automatically fix problems:
yarn lint:fix
Run to analyse production bundle:
yarn analyse:bundle