Skip to content

Commit 37ebfe6

Browse files
committed
docs: confirm capacitor sample projects working 💯
1 parent 1147ffe commit 37ebfe6

File tree

6 files changed

+385
-4
lines changed

6 files changed

+385
-4
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Dependencies
22
node_modules
33

4+
# Capacitor projects
5+
playground/android
6+
playground/ios
7+
48
# Logs
59
*.log*
610

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
> [Ionic](https://ionicframework.com/docs/) integration for [Nuxt](https://nuxtjs.org)
99
10-
- [▶️  Online playground](https://stackblitz.com/github/danielroe/nuxt-ionic/tree/main/playground)
10+
[▶️  Online playground](https://stackblitz.com/github/danielroe/nuxt-ionic/tree/main/playground)
1111

1212
## Features
1313

@@ -19,7 +19,7 @@
1919
- [x] Pre-rendering auto-configuration
2020
- [x] Mobile meta tags
2121
- [x] PWA support with [`nuxt-pwa-module`](https://github.com/kevinmarrec/nuxt-pwa-module)
22-
- [ ] Capacitor implementation confirmed working
22+
- [x] Works out-of-the-box with Capacitor to build mobile apps
2323

2424
## Quick setup
2525

playground/capacitor.config.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"appId": "io.ionic.starter",
3+
"appName": "nuxt-ionic-playground",
4+
"webDir": "dist",
5+
"bundledWebRuntime": false
6+
}

playground/ionic.config.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "nuxt-ionic-playground",
3+
"integrations": {
4+
"capacitor": {}
5+
},
6+
"type": "vue"
7+
}

playground/package.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,15 @@
88
"ionic:build": "pnpm build"
99
},
1010
"devDependencies": {
11-
"nuxt-ionic": "latest",
12-
"nuxt": "^3.0.0-rc.4"
11+
"@capacitor/android": "^3.6.0",
12+
"@capacitor/app": "1.1.1",
13+
"@capacitor/cli": "3.6.0",
14+
"@capacitor/core": "3.6.0",
15+
"@capacitor/haptics": "1.1.4",
16+
"@capacitor/ios": "^3.6.0",
17+
"@capacitor/keyboard": "1.2.3",
18+
"@capacitor/status-bar": "1.0.8",
19+
"nuxt": "^3.0.0-rc.4",
20+
"nuxt-ionic": "latest"
1321
}
1422
}

0 commit comments

Comments
 (0)