@reactunity/scripts 0.14.2 → 0.15.1
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/config/public/index.html +2 -2
- package/package.json +5 -4
- package/tsconfig.json +31 -0
package/config/public/index.html
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<main>
|
|
26
26
|
<p class="fs-5 col-md-8">
|
|
27
27
|
Congratulations on starting your ReactUnity project. You can now test your app inside Unity by setting the
|
|
28
|
-
<code>DevServer</code> property of <code>
|
|
28
|
+
<code>DevServer</code> property of <code>ReactRendererUGUI</code> or <code>ReactRendererUIToolkit</code> components to
|
|
29
29
|
the address of this page.
|
|
30
30
|
</p>
|
|
31
31
|
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
<h4>2 - Use a custom previewer</h4>
|
|
62
62
|
|
|
63
63
|
<p class="fs-5 col-md-8">
|
|
64
|
-
To do this, you need to build a scene in Unity with <code>
|
|
64
|
+
To do this, you need to build a scene in Unity with <code>ReactRendererUGUI</code> component added. The
|
|
65
65
|
<code>Type</code> property must be set to <code>Url</code> and <code>Source Path</code> property must be set to
|
|
66
66
|
<code>/index.js</code>.
|
|
67
67
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reactunity/scripts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"description": "Configuration and scripts for React Unity.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
"config",
|
|
19
19
|
"lib",
|
|
20
20
|
"scripts",
|
|
21
|
-
"utils"
|
|
21
|
+
"utils",
|
|
22
|
+
"tsconfig.json"
|
|
22
23
|
],
|
|
23
24
|
"bin": {
|
|
24
25
|
"react-unity-scripts": "./bin/react-unity-scripts.js"
|
|
@@ -88,7 +89,7 @@
|
|
|
88
89
|
"react-refresh": "^0.14.0",
|
|
89
90
|
"resolve": "^1.22.1",
|
|
90
91
|
"resolve-url-loader": "^5.0.0",
|
|
91
|
-
"sass": "^1.58.
|
|
92
|
+
"sass": "^1.58.3",
|
|
92
93
|
"sass-loader": "^13.2.0",
|
|
93
94
|
"semver": "^7.3.8",
|
|
94
95
|
"source-map-loader": "^4.0.1",
|
|
@@ -108,7 +109,7 @@
|
|
|
108
109
|
},
|
|
109
110
|
"peerDependencies": {
|
|
110
111
|
"@reactunity/previewer": "*",
|
|
111
|
-
"@reactunity/renderer": "^0.
|
|
112
|
+
"@reactunity/renderer": "^0.15.0",
|
|
112
113
|
"react": "^18.0.0",
|
|
113
114
|
"typescript": "^4.9.5"
|
|
114
115
|
},
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compileOnSave": false,
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"sourceMap": false,
|
|
5
|
+
"allowJs": true,
|
|
6
|
+
"pretty": true,
|
|
7
|
+
"declaration": false,
|
|
8
|
+
"module": "esnext",
|
|
9
|
+
"moduleResolution": "node",
|
|
10
|
+
"preserveSymlinks": true,
|
|
11
|
+
"importHelpers": false,
|
|
12
|
+
"strict": true,
|
|
13
|
+
"strictNullChecks": false,
|
|
14
|
+
"noImplicitAny": false,
|
|
15
|
+
"allowSyntheticDefaultImports": true,
|
|
16
|
+
"jsx": "react-jsx",
|
|
17
|
+
"target": "ESNext",
|
|
18
|
+
"skipLibCheck": true,
|
|
19
|
+
"lib": [],
|
|
20
|
+
"preserveConstEnums": true,
|
|
21
|
+
"esModuleInterop": true,
|
|
22
|
+
"forceConsistentCasingInFileNames": true,
|
|
23
|
+
"noFallthroughCasesInSwitch": true,
|
|
24
|
+
"resolveJsonModule": true,
|
|
25
|
+
"isolatedModules": true,
|
|
26
|
+
"noEmit": true,
|
|
27
|
+
"types": [
|
|
28
|
+
"@reactunity/scripts/main"
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
}
|