/altv-ts-react-template

Primary LanguageJavaScriptMIT LicenseMIT

alt:V boilerplate with TypeScript and React

⚠️ Please refer to the Lerna for documentation


Quick start

  1. Clone repository
  2. Install yarn, open cmd/bash and type yarn global add lerna
  3. Download alt:V server files here and extract them into boilerplate folder
  4. Open cmd/bash in boilerplate directory and type:
    • yarn
    • lerna run build
  5. Add main to resources in server.cfg

Commands

  • lerna run start - watch client, server and webView files
  • lerna run build - build client, server and webView files
  • lerna run lint - ESLint
  • lerna run lint:fix - ESLint with automatically fix problems
  • lerna run prettier - Prettier
  • lerna run storybook - Storybook
  • lerna run storybook:build - build storybook

Node scripts

  • yarn watch - watch resources folder and restart server