File tree 4 files changed +13
-13
lines changed
4 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 1
- # TypeScript Resource Boilerplate for MTASA
1
+ # 📄 TypeScript Resource Boilerplate for MTASA
2
2
3
3
Write and compile TypeScript into MTASA-compatible Lua code.
4
4
@@ -17,9 +17,9 @@ A documentation in your IDE. Types safety. Linting.
17
17
- 👀 [ ESLint] ( https://eslint.org/ )
18
18
ESLint for linting TypeScript Code
19
19
20
- # Getting started
20
+ # 🎈 Getting started
21
21
22
- ## NodeJS
22
+ ## 💠 NodeJS
23
23
24
24
This boilerplate requires NodeJS (at least ** 14.x** ) to be installed.
25
25
If you already have NodeJS installed, skip this step.
@@ -50,7 +50,7 @@ and execute the command
50
50
npm version
51
51
```
52
52
53
- ## Create new project (initialize boilerplate)
53
+ ## 🆕 Create new project (initialize boilerplate)
54
54
55
55
Open terminal in the parent folder of your new project and run folowwing command:
56
56
@@ -84,7 +84,7 @@ npm run build
84
84
Always running the command to build the resource is annoying.
85
85
Below there are possible solutions to simplify it.
86
86
87
- # Code Editor Preparation
87
+ # ✏ Code Editor Preparation
88
88
89
89
## VSCode
90
90
Original file line number Diff line number Diff line change 11
11
"@typescript-eslint/eslint-plugin" : " ^4.30.0" ,
12
12
"@typescript-eslint/parser" : " ^4.30.0" ,
13
13
"eslint" : " ^7.32.0" ,
14
- "mtasa-lua-types" : " ^0.6.3 " ,
15
- "mtasa-lua-utils" : " ^1.0.0-beta.5 " ,
14
+ "mtasa-lua-types" : " ^1.0.0-beta.1 " ,
15
+ "mtasa-lua-utils" : " ^1.0.0-beta.6 " ,
16
16
"prettier" : " ^2.3.2" ,
17
17
"typescript" : " ~4.3.5" ,
18
18
"typescript-to-lua" : " ^1.0.0"
Original file line number Diff line number Diff line change 2
2
* File with client-side script example
3
3
**/
4
4
5
- import { EventNames } from 'mtasa-lua-types/types/mtasa/ client/event/all_event_names' ;
6
- import { Event } from 'mtasa-lua-types/types/mtasa/ client/mtasa' ;
7
- import { mtasa } from 'mtasa-lua-types/types/mtasa/ client' ;
5
+ import { EventNames } from 'mtasa-lua-types/client/event/all_event_names' ;
6
+ import { Event } from 'mtasa-lua-types/client/mtasa' ;
7
+ import { mtasa } from 'mtasa-lua-types/client' ;
8
8
9
9
mtasa . addEventHandler < Event . OnClientResourceStart > (
10
10
EventNames . OnClientResourceStart ,
Original file line number Diff line number Diff line change 2
2
* File with server-side script example
3
3
**/
4
4
5
- import { EventNames } from 'mtasa-lua-types/types/mtasa/ server/event/all_event_names' ;
6
- import { Event } from 'mtasa-lua-types/types/mtasa/ server/mtasa' ;
5
+ import { EventNames } from 'mtasa-lua-types/server/event/all_event_names' ;
6
+ import { Event } from 'mtasa-lua-types/server/mtasa' ;
7
7
import { firstLetterUpperCase } from './utils' ;
8
- import { mtasa } from 'mtasa-lua-types/types/mtasa/ server' ;
8
+ import { mtasa } from 'mtasa-lua-types/server' ;
9
9
10
10
mtasa . addEventHandler < Event . OnPlayerJoin > (
11
11
EventNames . OnPlayerJoin ,
You can’t perform that action at this time.
0 commit comments