rw-parser-ng 2.0.2 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/package.json +63 -63
- package/src/index.ts +2 -0
- package/tsconfig.json +2 -2
package/README.md
CHANGED
|
@@ -17,10 +17,10 @@ This is a fork of the original [rw-parser](https://github.com/Timic3/rw-parser)
|
|
|
17
17
|
|
|
18
18
|
## Installation
|
|
19
19
|
|
|
20
|
-
Install `rw-parser-ng` using
|
|
20
|
+
Install `rw-parser-ng` using pnpm:
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
|
-
|
|
23
|
+
pnpm install --save rw-parser-ng
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
## Usage
|
|
@@ -73,11 +73,11 @@ parseDffFromUrl('path/to/your/model.dff');
|
|
|
73
73
|
## Development
|
|
74
74
|
|
|
75
75
|
1. Clone the repository: `git clone https://github.com/DepsCian/rw-parser-ng.git`
|
|
76
|
-
2. Install dependencies: `
|
|
77
|
-
3. Build the project: `
|
|
78
|
-
4. Run tests: `
|
|
76
|
+
2. Install dependencies: `pnpm install`
|
|
77
|
+
3. Build the project: `pnpm run build`
|
|
78
|
+
4. Run tests: `pnpm test`
|
|
79
79
|
|
|
80
|
-
To watch for changes during development, use `
|
|
80
|
+
To watch for changes during development, use `pnpm run dev`.
|
|
81
81
|
|
|
82
82
|
## Contributing
|
|
83
83
|
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -26,3 +26,4 @@ __exportStar(require("./renderware/txd/TxdParser"), exports);
|
|
|
26
26
|
__exportStar(require("./renderware/ifp/IfpParser"), exports);
|
|
27
27
|
__exportStar(require("./renderware/dff/DffModelType"), exports);
|
|
28
28
|
__exportStar(require("./renderware/ifp/IfpData"), exports);
|
|
29
|
+
__exportStar(require("./renderware/common/types"), exports);
|
package/package.json
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "rw-parser-ng",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"description": "Parses RenderWare DFF, TXD and IFP files into usable format!",
|
|
5
|
-
"author": {
|
|
6
|
-
"name": "DepsCian",
|
|
7
|
-
"url": "https://github.com/DepsCian"
|
|
8
|
-
},
|
|
9
|
-
"contributors": [
|
|
10
|
-
{
|
|
11
|
-
"name": "Timic3",
|
|
12
|
-
"url": "https://github.com/Timic3"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "MegadreamsBE",
|
|
16
|
-
"url": "https://github.com/MegadreamsBE"
|
|
17
|
-
}
|
|
18
|
-
],
|
|
19
|
-
"license": "GPL-3.0",
|
|
20
|
-
"homepage": "https://github.com/DepsCian/rw-parser-ng#readme",
|
|
21
|
-
"repository": {
|
|
22
|
-
"type": "git",
|
|
23
|
-
"url": "git+https://github.com/DepsCian/rw-parser-ng.git"
|
|
24
|
-
},
|
|
25
|
-
"keywords": [
|
|
26
|
-
"gta",
|
|
27
|
-
"gtasa",
|
|
28
|
-
"gtavc",
|
|
29
|
-
"gtaiii",
|
|
30
|
-
"san andreas",
|
|
31
|
-
"vice city",
|
|
32
|
-
"iii",
|
|
33
|
-
"renderware",
|
|
34
|
-
"parser",
|
|
35
|
-
"rw-parser",
|
|
36
|
-
"dff",
|
|
37
|
-
"txd",
|
|
38
|
-
"ifp"
|
|
39
|
-
],
|
|
40
|
-
"main": "lib/index.js",
|
|
41
|
-
"types": "lib/index.d.ts",
|
|
42
|
-
"devDependencies": {
|
|
43
|
-
"@types/jest": "^30.0.0",
|
|
44
|
-
"@types/node": "^24.0.3",
|
|
45
|
-
"jest": "^30.0.0",
|
|
46
|
-
"ts-jest": "^29.4.0",
|
|
47
|
-
"typescript": "^5.8.3"
|
|
48
|
-
},
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "rw-parser-ng",
|
|
3
|
+
"version": "2.0.5",
|
|
4
|
+
"description": "Parses RenderWare DFF, TXD and IFP files into usable format!",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "DepsCian",
|
|
7
|
+
"url": "https://github.com/DepsCian"
|
|
8
|
+
},
|
|
9
|
+
"contributors": [
|
|
10
|
+
{
|
|
11
|
+
"name": "Timic3",
|
|
12
|
+
"url": "https://github.com/Timic3"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "MegadreamsBE",
|
|
16
|
+
"url": "https://github.com/MegadreamsBE"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"license": "GPL-3.0",
|
|
20
|
+
"homepage": "https://github.com/DepsCian/rw-parser-ng#readme",
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/DepsCian/rw-parser-ng.git"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"gta",
|
|
27
|
+
"gtasa",
|
|
28
|
+
"gtavc",
|
|
29
|
+
"gtaiii",
|
|
30
|
+
"san andreas",
|
|
31
|
+
"vice city",
|
|
32
|
+
"iii",
|
|
33
|
+
"renderware",
|
|
34
|
+
"parser",
|
|
35
|
+
"rw-parser",
|
|
36
|
+
"dff",
|
|
37
|
+
"txd",
|
|
38
|
+
"ifp"
|
|
39
|
+
],
|
|
40
|
+
"main": "lib/index.js",
|
|
41
|
+
"types": "lib/index.d.ts",
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@types/jest": "^30.0.0",
|
|
44
|
+
"@types/node": "^24.0.3",
|
|
45
|
+
"jest": "^30.0.0",
|
|
46
|
+
"ts-jest": "^29.4.0",
|
|
47
|
+
"typescript": "^5.8.3"
|
|
48
|
+
},
|
|
49
|
+
"files": [
|
|
50
|
+
"lib",
|
|
51
|
+
"src",
|
|
52
|
+
"LICENSE",
|
|
53
|
+
"README.md",
|
|
54
|
+
"package.json",
|
|
55
|
+
"tsconfig.json"
|
|
56
|
+
],
|
|
57
|
+
"scripts": {
|
|
58
|
+
"build": "tsc -p tsconfig.json",
|
|
59
|
+
"dev": "tsc -p tsconfig.json --watch",
|
|
60
|
+
"test": "jest",
|
|
61
|
+
"sort:models": "tsc && node lib/scripts/sort_models.js"
|
|
62
|
+
}
|
|
63
|
+
}
|
package/src/index.ts
CHANGED
package/tsconfig.json
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
|
|
12
12
|
// "sourceMap": true, /* Generates corresponding '.map' file. */
|
|
13
13
|
// "outFile": "./", /* Concatenate and emit output to single file. */
|
|
14
|
-
"outDir": "./lib",
|
|
15
|
-
"rootDir": "./src",
|
|
14
|
+
"outDir": "./lib/", /* Redirect output structure to the directory. */
|
|
15
|
+
"rootDir": "./src/", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
|
16
16
|
// "composite": true, /* Enable project compilation */
|
|
17
17
|
// "removeComments": true, /* Do not emit comments to output. */
|
|
18
18
|
// "noEmit": true, /* Do not emit outputs. */
|