/altv-boilerplate

Boilerplate with TypeScript and React

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
    • yarn build
  5. Add core and core-assets-view to resources in server.cfg
resources: [
  core,
  core-assets-view,
]

Commands

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

Node scripts

  • yarn watch - watch resources folder and restart server