Skip to content

Commit 0e1f636

Browse files
committed
docs: add empty example
1 parent 6fe8ff1 commit 0e1f636

25 files changed

+16479
-1
lines changed

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
*.md
2+
src
3+
example

example/.gitignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
.vscode
21+
.idea
22+
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
27+
# Optional eslint cache
28+
.eslintcache

example/ionic.config.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"name": "example",
3+
"integrations": {},
4+
"type": "react"
5+
}

example/package-lock.json

Lines changed: 15680 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/package.json

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"name": "example",
3+
"version": "0.0.1",
4+
"private": true,
5+
"dependencies": {
6+
"@ionic/react": "^5.5.0",
7+
"@ionic/react-router": "^5.5.0",
8+
"@testing-library/jest-dom": "^5.11.9",
9+
"@testing-library/react": "^11.2.5",
10+
"@testing-library/user-event": "^12.6.3",
11+
"@types/jest": "^26.0.20",
12+
"@types/node": "^12.19.15",
13+
"@types/react": "^16.14.3",
14+
"@types/react-dom": "^16.9.10",
15+
"@types/react-router": "^5.1.11",
16+
"@types/react-router-dom": "^5.1.7",
17+
"ionicons": "^5.4.0",
18+
"react": "^17.0.1",
19+
"react-dom": "^17.0.1",
20+
"react-router": "^5.2.0",
21+
"react-router-dom": "^5.2.0",
22+
"react-scripts": "4.0.2",
23+
"typescript": "^4.1.3",
24+
"web-vitals": "^0.2.4",
25+
"workbox-background-sync": "^5.1.4",
26+
"workbox-broadcast-update": "^5.1.4",
27+
"workbox-cacheable-response": "^5.1.4",
28+
"workbox-core": "^5.1.4",
29+
"workbox-expiration": "^5.1.4",
30+
"workbox-google-analytics": "^5.1.4",
31+
"workbox-navigation-preload": "^5.1.4",
32+
"workbox-precaching": "^5.1.4",
33+
"workbox-range-requests": "^5.1.4",
34+
"workbox-routing": "^5.1.4",
35+
"workbox-strategies": "^5.1.4",
36+
"workbox-streams": "^5.1.4"
37+
},
38+
"scripts": {
39+
"start": "react-scripts start",
40+
"build": "react-scripts build",
41+
"test": "react-scripts test",
42+
"eject": "react-scripts eject"
43+
},
44+
"eslintConfig": {
45+
"extends": [
46+
"react-app",
47+
"react-app/jest"
48+
]
49+
},
50+
"browserslist": {
51+
"production": [
52+
">0.2%",
53+
"not dead",
54+
"not op_mini all"
55+
],
56+
"development": [
57+
"last 1 chrome version",
58+
"last 1 firefox version",
59+
"last 1 safari version"
60+
]
61+
},
62+
"description": "An Ionic project"
63+
}
930 Bytes
Loading
23.2 KB
Loading

example/public/assets/shapes.svg

Lines changed: 1 addition & 0 deletions
Loading

example/public/index.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>Ionic App</title>
6+
7+
<base href="/" />
8+
9+
<meta name="color-scheme" content="light dark" />
10+
<meta
11+
name="viewport"
12+
content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
13+
/>
14+
<meta name="format-detection" content="telephone=no" />
15+
<meta name="msapplication-tap-highlight" content="no" />
16+
17+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
18+
19+
<link rel="shortcut icon" type="image/png" href="%PUBLIC_URL%/assets/icon/favicon.png" />
20+
21+
<!-- add to homescreen for ios -->
22+
<meta name="apple-mobile-web-app-capable" content="yes" />
23+
<meta name="apple-mobile-web-app-title" content="Ionic App" />
24+
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
25+
</head>
26+
27+
<body>
28+
<div id="root"></div>
29+
</body>
30+
31+
</html>

example/public/manifest.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"short_name": "Ionic App",
3+
"name": "My Ionic App",
4+
"icons": [
5+
{
6+
"src": "assets/icon/favicon.png",
7+
"sizes": "64x64 32x32 24x24 16x16",
8+
"type": "image/x-icon"
9+
},
10+
{
11+
"src": "assets/icon/icon.png",
12+
"type": "image/png",
13+
"sizes": "512x512",
14+
"purpose": "maskable"
15+
}
16+
],
17+
"start_url": ".",
18+
"display": "standalone",
19+
"theme_color": "#ffffff",
20+
"background_color": "#ffffff"
21+
}

0 commit comments

Comments
 (0)