Upgrade typescript

This commit is contained in:
Aria Minaei 2021-08-08 10:12:23 +02:00
parent a074f184ab
commit 1916747e8b
11 changed files with 24 additions and 158 deletions

View file

@ -11,6 +11,6 @@
"parcel-bundler": "^1.12.5",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"typescript": "^4.3.2"
"typescript": "^4.3.5"
}
}

View file

@ -1,70 +1,3 @@
# Getting Started with Create React App
# DOM CRA Example
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
## Available Scripts
In the project directory, you can run:
### `yarn start`
Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
The page will reload if you make edits.\
You will also see any lint errors in the console.
### `yarn test`
Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
### `yarn build`
Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
### `yarn eject`
**Note: this is a one-way operation. Once you `eject`, you cant go back!**
If you arent satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point youre on your own.
You dont have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldnt feel obligated to use this feature. However we understand that this tool wouldnt be useful if you couldnt customize it when you are ready for it.
## Learn More
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
To learn React, check out the [React documentation](https://reactjs.org/).
### Code Splitting
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
### Analyzing the Bundle Size
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
### Making a Progressive Web App
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
### Advanced Configuration
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
### Deployment
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
### `yarn build` fails to minify
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
Example of using basic `theatre` with [Create React App](https://github.com/facebook/create-react-app).

View file

@ -1,70 +1,3 @@
# Getting Started with Create React App
# R3F CRA Example
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
## Available Scripts
In the project directory, you can run:
### `yarn start`
Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
The page will reload if you make edits.\
You will also see any lint errors in the console.
### `yarn test`
Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
### `yarn build`
Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
### `yarn eject`
**Note: this is a one-way operation. Once you `eject`, you cant go back!**
If you arent satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point youre on your own.
You dont have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldnt feel obligated to use this feature. However we understand that this tool wouldnt be useful if you couldnt customize it when you are ready for it.
## Learn More
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
To learn React, check out the [React documentation](https://reactjs.org/).
### Code Splitting
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
### Analyzing the Bundle Size
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
### Making a Progressive Web App
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
### Advanced Configuration
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
### Deployment
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
### `yarn build` fails to minify
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
Example of using `theatre` and `@react-three/fiber` with [Create React App](https://github.com/facebook/create-react-app).

View file

@ -43,7 +43,7 @@
"lerna": "^4.0.0",
"lint-staged": "^11.0.0",
"prettier": "^2.3.1",
"typescript": "^4.3.2",
"typescript": "^4.3.5",
"zx": "^2.0.0"
},
"dependencies": {

View file

@ -34,7 +34,7 @@
"esbuild": "^0.12.15",
"esbuild-register": "^2.5.0",
"npm-run-all": "^4.1.5",
"typescript": "^4.3.2"
"typescript": "^4.3.5"
},
"dependencies": {
"@theatre/dataverse": "workspace:*",

View file

@ -32,7 +32,7 @@
"esbuild": "^0.12.15",
"esbuild-register": "^2.5.0",
"npm-run-all": "^4.1.5",
"typescript": "^4.3.2"
"typescript": "^4.3.5"
},
"dependencies": {
"lodash-es": "^4.17.21"

View file

@ -18,7 +18,7 @@
"@types/lodash-es": "^4.17.4",
"@types/node": "^15.6.2",
"@types/react": "^17.0.9",
"typescript": "^4.3.2"
"typescript": "^4.3.5"
},
"dependencies": {
"lodash-es": "^4.17.21"

View file

@ -25,6 +25,6 @@
"esbuild": "^0.12.15",
"esbuild-register": "^2.5.0",
"three": "^0.130.1",
"typescript": "^4.3.2"
"typescript": "^4.3.5"
}
}

View file

@ -40,7 +40,7 @@
"@types/react": "^17.0.9",
"@types/styled-components": "^5.1.9",
"npm-run-all": "^4.1.5",
"typescript": "^4.3.2"
"typescript": "^4.3.5"
},
"dependencies": {
"@theatre/dataverse-react": "workspace:*",

View file

@ -84,7 +84,7 @@
"timing-function": "^0.2.3",
"ts-node": "^10.0.0",
"tslib": "^2.2.0",
"typescript": "^4.3.2",
"typescript": "^4.3.5",
"url-loader": "^4.1.1",
"uuid": "^8.3.2"
}

View file

@ -3604,7 +3604,7 @@ __metadata:
parcel-bundler: ^1.12.5
react: ^17.0.2
react-dom: ^17.0.2
typescript: ^4.3.2
typescript: ^4.3.5
languageName: unknown
linkType: soft
@ -5677,7 +5677,7 @@ __metadata:
lodash-es: ^4.17.21
npm-run-all: ^4.1.5
queue-microtask: ^1.2.3
typescript: ^4.3.2
typescript: ^4.3.5
peerDependencies:
raect-dom: "*"
react: "*"
@ -5693,7 +5693,7 @@ __metadata:
"@types/node": ^15.6.2
"@types/react": ^17.0.9
lodash-es: ^4.17.21
typescript: ^4.3.2
typescript: ^4.3.5
languageName: unknown
linkType: soft
@ -5708,7 +5708,7 @@ __metadata:
esbuild-register: ^2.5.0
lodash-es: ^4.17.21
npm-run-all: ^4.1.5
typescript: ^4.3.2
typescript: ^4.3.5
languageName: unknown
linkType: soft
@ -5731,7 +5731,7 @@ __metadata:
react-use-measure: ^2.0.4
reakit: ^1.3.8
styled-components: ^5.3.0
typescript: ^4.3.2
typescript: ^4.3.5
zustand: ^3.5.1
peerDependencies:
"@react-three/drei": "*"
@ -18554,7 +18554,7 @@ fsevents@^1.2.7:
esbuild: ^0.12.15
esbuild-register: ^2.5.0
three: ^0.130.1
typescript: ^4.3.2
typescript: ^4.3.5
languageName: unknown
linkType: soft
@ -22986,7 +22986,7 @@ fsevents@^1.2.7:
lint-staged: ^11.0.0
node-gyp: ^8.1.0
prettier: ^2.3.1
typescript: ^4.3.2
typescript: ^4.3.5
zx: ^2.0.0
languageName: unknown
linkType: soft
@ -23063,7 +23063,7 @@ fsevents@^1.2.7:
timing-function: ^0.2.3
ts-node: ^10.0.0
tslib: ^2.2.0
typescript: ^4.3.2
typescript: ^4.3.5
url-loader: ^4.1.1
uuid: ^8.3.2
languageName: unknown
@ -23653,13 +23653,13 @@ fsevents@^1.2.7:
languageName: node
linkType: hard
"typescript@npm:^4.3.2":
version: 4.3.2
resolution: "typescript@npm:4.3.2"
"typescript@npm:^4.3.5":
version: 4.3.5
resolution: "typescript@npm:4.3.5"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 21e1285402e32fd240f6ad3f97b6fea81b90d2591f412677d01b570a8bd93151d1e08460d58f43689fc758671a5baaebb16fa93d3c8260181612c8e619bd24f7
checksum: d9a8e78d72dd19896e6bfa73ab2a0fcea6eca2700d1d6e7c33f67a970af54a3e0fed8f715a8c4e6a0ff7fc0995067b394b2003518ab0aa84cd396377e54b760c
languageName: node
linkType: hard