mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-11-28 03:47:37 +03:00
Fixed missing public folder for CRA example (#189)
This commit is contained in:
parent
9b6d99e751
commit
0298a78726
4
.gitignore
vendored
4
.gitignore
vendored
@ -75,5 +75,5 @@ target
|
||||
/cli/tauri.js/tauri.conf.js
|
||||
|
||||
# example specific ignores
|
||||
examples/**/.cache
|
||||
examples/**/public
|
||||
examples/gatsby/**/.cache
|
||||
examples/gatsby/**/public
|
||||
|
@ -1,3 +1,30 @@
|
||||
## Running Example
|
||||
|
||||
Ensure you have setup and installed all the project dependencies.
|
||||
|
||||
```
|
||||
npm install -g tauri
|
||||
git clone https://github.com/tauri-apps/tauri
|
||||
cd examples/react/create-react-app
|
||||
yarn
|
||||
cargo install tauri-cli
|
||||
```
|
||||
|
||||
### Development
|
||||
|
||||
```
|
||||
yarn start & tauri dev
|
||||
```
|
||||
|
||||
### Production
|
||||
|
||||
```
|
||||
yarn build
|
||||
tauri build
|
||||
```
|
||||
|
||||
# Original ReadMe
|
||||
|
||||
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
|
||||
|
||||
## Available Scripts
|
||||
|
BIN
examples/react/create-react-app/public/favicon.ico
Normal file
BIN
examples/react/create-react-app/public/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.8 KiB |
43
examples/react/create-react-app/public/index.html
Normal file
43
examples/react/create-react-app/public/index.html
Normal file
@ -0,0 +1,43 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="theme-color" content="#000000" />
|
||||
<meta
|
||||
name="description"
|
||||
content="Web site created using create-react-app"
|
||||
/>
|
||||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
||||
<!--
|
||||
manifest.json provides metadata used when your web app is installed on a
|
||||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
||||
-->
|
||||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
||||
<!--
|
||||
Notice the use of %PUBLIC_URL% in the tags above.
|
||||
It will be replaced with the URL of the `public` folder during the build.
|
||||
Only files inside the `public` folder can be referenced from the HTML.
|
||||
|
||||
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
|
||||
work correctly both with client-side routing and a non-root public URL.
|
||||
Learn how to configure a non-root public URL by running `npm run build`.
|
||||
-->
|
||||
<title>React App</title>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
<div id="root"></div>
|
||||
<!--
|
||||
This HTML file is a template.
|
||||
If you open it directly in the browser, you will see an empty page.
|
||||
|
||||
You can add webfonts, meta tags, or analytics to this file.
|
||||
The build step will place the bundled scripts into the <body> tag.
|
||||
|
||||
To begin the development, run `npm start` or `yarn start`.
|
||||
To create a production bundle, use `npm run build` or `yarn build`.
|
||||
-->
|
||||
</body>
|
||||
</html>
|
BIN
examples/react/create-react-app/public/logo192.png
Normal file
BIN
examples/react/create-react-app/public/logo192.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.2 KiB |
BIN
examples/react/create-react-app/public/logo512.png
Normal file
BIN
examples/react/create-react-app/public/logo512.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.4 KiB |
25
examples/react/create-react-app/public/manifest.json
Normal file
25
examples/react/create-react-app/public/manifest.json
Normal file
@ -0,0 +1,25 @@
|
||||
{
|
||||
"short_name": "React App",
|
||||
"name": "Create React App Sample",
|
||||
"icons": [
|
||||
{
|
||||
"src": "favicon.ico",
|
||||
"sizes": "64x64 32x32 24x24 16x16",
|
||||
"type": "image/x-icon"
|
||||
},
|
||||
{
|
||||
"src": "logo192.png",
|
||||
"type": "image/png",
|
||||
"sizes": "192x192"
|
||||
},
|
||||
{
|
||||
"src": "logo512.png",
|
||||
"type": "image/png",
|
||||
"sizes": "512x512"
|
||||
}
|
||||
],
|
||||
"start_url": ".",
|
||||
"display": "standalone",
|
||||
"theme_color": "#000000",
|
||||
"background_color": "#ffffff"
|
||||
}
|
2
examples/react/create-react-app/public/robots.txt
Normal file
2
examples/react/create-react-app/public/robots.txt
Normal file
@ -0,0 +1,2 @@
|
||||
# https://www.robotstxt.org/robotstxt.html
|
||||
User-agent: *
|
Loading…
Reference in New Issue
Block a user