项目作者: combowomb0

项目描述 :
高级语言: JavaScript
项目地址: git://github.com/combowomb0/altv-boilerplate.git
创建时间: 2020-03-30T19:44:12Z
项目社区:https://github.com/combowomb0/altv-boilerplate

开源协议:MIT License

下载


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
  1. resources: [
  2. core,
  3. core-assets-view,
  4. ]

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