├── .docs ├── install.gif └── mtasa_meta.gif ├── .eslintrc.yml ├── .github ├── ISSUE_TEMPLATE │ ├── ----bug-report.md │ └── ---feature-request.md ├── dependabot.yml └── workflows │ └── package.yml ├── .gitignore ├── .idea ├── jsonSchemas.xml ├── prettier.xml ├── watcherTasks.xml └── workspace.xml ├── .prettierignore ├── .prettierrc.json ├── .vscode ├── extensions.json ├── settings.json └── tasks.json ├── README.md ├── mtasa-meta.yml ├── package.json ├── src └── TypeScriptResource │ ├── client.ts │ ├── server.ts │ └── utils.ts ├── tsconfig.json └── types └── additional.d.ts /.docs/install.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtasa-typescript/resource-boilerplate/4f8a74474516068fd394837826e029b6db088081/.docs/install.gif -------------------------------------------------------------------------------- /.docs/mtasa_meta.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtasa-typescript/resource-boilerplate/4f8a74474516068fd394837826e029b6db088081/.docs/mtasa_meta.gif -------------------------------------------------------------------------------- /.eslintrc.yml: -------------------------------------------------------------------------------- 1 | env: 2 | es2021: true 3 | extends: 4 | - 'eslint:recommended' 5 | - 'plugin:@typescript-eslint/recommended' 6 | parser: '@typescript-eslint/parser' 7 | parserOptions: 8 | ecmaVersion: 12 9 | sourceType: module 10 | plugins: 11 | - '@typescript-eslint' 12 | rules: {} 13 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/----bug-report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: '⚠️ Bug report' 3 | about: Create a report to help us improve 4 | title: '⚠️ Name of the issue' 5 | labels: bug 6 | assignees: '' 7 | --- 8 | 9 | # Describe the bug 10 | 11 | A clear and concise description of what the bug is. 12 | 13 | ## To Reproduce 14 | 15 | Steps to reproduce the behavior: 16 | 17 | 1. Go to '...' 18 | 2. Click on '....' 19 | 3. Scroll down to '....' 20 | 4. See error 21 | 22 | ## Expected behavior 23 | 24 | A clear and concise description of what you expected to happen. 25 | 26 | ## Screenshots 27 | 28 | If applicable, add screenshots to help explain your problem. 29 | 30 | # Desktop information 31 | 32 | Provide you OS version information 33 | 34 | ## NPM Version 35 | 36 | 37 | 38 | ``` 39 | Paste result here 40 | ``` 41 | 42 | ## NPM Package versions 43 | 44 | 45 | 46 | ``` 47 | Paste result here 48 | ``` 49 | 50 | # Additional context 51 | 52 | Add any other context about the problem here. 53 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/---feature-request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: '⭐ Feature request' 3 | about: Suggest an idea for this project 4 | title: '⭐ Name of the issue' 5 | labels: enhancement 6 | assignees: '' 7 | --- 8 | 9 | # Description 10 | 11 | A clear description of the feature 12 | 13 | ## Is your feature request related to a problem? Please describe. 14 | 15 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 16 | 17 | # Suggestion 18 | 19 | ## Describe the solution you'd like 20 | 21 | A clear and concise description of what you want to happen. 22 | 23 | ## Describe alternatives you've considered 24 | 25 | A clear and concise description of any alternative solutions or features you've considered. 26 | 27 | # Additional context 28 | 29 | Add any other context or screenshots about the feature request here. 30 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | # Fetch and update latest `npm` packages 4 | - package-ecosystem: npm 5 | directory: '/' 6 | schedule: 7 | interval: daily 8 | time: '00:00' 9 | open-pull-requests-limit: 10 10 | reviewers: 11 | - toliak 12 | assignees: 13 | - toliak 14 | commit-message: 15 | prefix: fix 16 | prefix-development: chore 17 | include: scope 18 | # Fetch and update latest `github-actions` packages 19 | - package-ecosystem: github-actions 20 | directory: '/' 21 | schedule: 22 | interval: daily 23 | time: '00:00' 24 | open-pull-requests-limit: 10 25 | reviewers: 26 | - toliak 27 | assignees: 28 | - toliak 29 | commit-message: 30 | prefix: fix 31 | prefix-development: chore 32 | include: scope 33 | -------------------------------------------------------------------------------- /.github/workflows/package.yml: -------------------------------------------------------------------------------- 1 | name: NPM Package 2 | 3 | on: 4 | pull_request: 5 | paths-ignore: 6 | - '**.md' 7 | push: 8 | paths-ignore: 9 | - '**.md' 10 | 11 | jobs: 12 | build: 13 | runs-on: ubuntu-latest 14 | steps: 15 | - uses: actions/checkout@v3 16 | - name: Setup node 14 17 | uses: actions/setup-node@v3.0.0 18 | with: 19 | node-version: 14.x 20 | - name: Cache Node files 21 | uses: actions/cache@v2.1.7 22 | env: 23 | cache-name: cache-node-modules 24 | with: 25 | # npm cache files are stored in `~/.npm` on Linux/macOS 26 | path: | 27 | ~/.npm 28 | key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} 29 | restore-keys: | 30 | ${{ runner.os }}-build-${{ env.cache-name }}- 31 | ${{ runner.os }}-build- 32 | ${{ runner.os }}- 33 | - run: npm install 34 | - run: npm run build 35 | prettier: 36 | runs-on: ubuntu-latest 37 | steps: 38 | - uses: actions/checkout@v3 39 | - name: Setup node 14 40 | uses: actions/setup-node@v3.0.0 41 | with: 42 | node-version: 14.x 43 | - name: Cache Node files 44 | uses: actions/cache@v2.1.7 45 | env: 46 | cache-name: cache-node-modules 47 | with: 48 | # npm cache files are stored in `~/.npm` on Linux/macOS 49 | path: | 50 | ~/.npm 51 | key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} 52 | restore-keys: | 53 | ${{ runner.os }}-build-${{ env.cache-name }}- 54 | ${{ runner.os }}-build- 55 | ${{ runner.os }}- 56 | - run: npm install 57 | - run: npm run prettier 58 | eslint: 59 | runs-on: ubuntu-latest 60 | steps: 61 | - uses: actions/checkout@v3 62 | - name: Setup node 14 63 | uses: actions/setup-node@v3.0.0 64 | with: 65 | node-version: 14.x 66 | - name: Cache Node files 67 | uses: actions/cache@v2.1.7 68 | env: 69 | cache-name: cache-node-modules 70 | with: 71 | # npm cache files are stored in `~/.npm` on Linux/macOS 72 | path: | 73 | ~/.npm 74 | key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} 75 | restore-keys: | 76 | ${{ runner.os }}-build-${{ env.cache-name }}- 77 | ${{ runner.os }}-build- 78 | ${{ runner.os }}- 79 | - run: npm install 80 | - run: npm run eslint 81 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .vs 2 | node_modules 3 | \[lua\] 4 | .idea -------------------------------------------------------------------------------- /.idea/jsonSchemas.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /.idea/prettier.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | -------------------------------------------------------------------------------- /.idea/watcherTasks.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 16 | 24 | 25 | -------------------------------------------------------------------------------- /.idea/workspace.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |