Skip to content

babajka/babajka-frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

babajka-frontend

code style: prettier semantic-release contributors last-commit pr-closed release

Next.js & React app

get started

  1. You have to check that your node version is correct, to do this run nvm use, if the version is not correct run nvm install [correct version].
  2. Create an .env file like .env.example and ask the admin for the required keys.
  3. Run git submodule update --init to update submodules.
  4. Run npm install or make install scripts.
  5. Run make start to run dev server

scripts

  • nvm use - set correct node version
  • npm start - to run dev server with hot-reloading (npm run dev)
  • npm run start:prod - to build and run a production version
  • npm run build - to build a production version (WIR_ENV=staging must be set for dev.wir.by)
  • npm run local-backend - to run dev server that uses http://localhost:8080 as backend
  • npm run deploy-from-local - to deploy code on dev.wir.by
  • npm run lint - to check code style with eslint, airbnb react style guide and prettier
  • npm run lint - to just fix style with prettier and check on eslint errors
  • npm run update-dict - to fetch translations from GoogleDrive and store it in data/i18n.json (gitignored)
  • npm run reset-cache - to delete .next builded & cached files
  • npm run size - to check client-side bundle sizes with @ai/size-limit
  • npm run analyze - to run @next/bundle-analyzer

rules

  • we have autoversioning set up, in order to trigger new release one should follow the conventions:

    • fix(<scope>): <subject> - increases patch version: 1.0.0 -> 1.0.1
    • style(<scope>): <subject> - increases patch version: 1.0.0 -> 1.0.1
    • feat(<scope>): <subject> - increases minor version: 1.0.0 -> 1.1.0
    • major(<scope>): <subject> - increases major version: 1.0.0 -> 2.0.0
  • all commit messages checked with commitlint, feel free to add new scope's and type's to .commitlintrc.js