Skip to content

Commit 2947446

Browse files
committed
feat: add Ionic and Capacitor template to begin with an app
1 parent 2913cd8 commit 2947446

31 files changed

Lines changed: 10426 additions & 3 deletions

app/.browserslistrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Chrome >=79
2+
ChromeAndroid >=79
3+
Firefox >=70
4+
Edge >=79
5+
Safari >=14
6+
iOS >=14

app/.eslintignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
.DS_Store
2+
node_modules
3+
/coverage
4+
/dist
5+
/ios
6+
/android
7+
8+
9+
# local env files
10+
.env.local
11+
.env.*.local
12+
13+
# Log files
14+
npm-debug.log*
15+
yarn-debug.log*
16+
yarn-error.log*
17+
pnpm-debug.log*
18+
19+
# Editor directories and files
20+
.idea
21+
.vscode
22+
*.suo
23+
*.ntvs*
24+
*.njsproj
25+
*.sln
26+
*.sw?
27+

app/.eslintrc.cjs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true
5+
},
6+
'extends': [
7+
'plugin:vue/vue3-essential',
8+
'eslint:recommended',
9+
'@vue/typescript/recommended'
10+
],
11+
parserOptions: {
12+
ecmaVersion: 2020
13+
},
14+
rules: {
15+
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
16+
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
17+
'vue/no-deprecated-slot-attribute': 'off',
18+
'@typescript-eslint/no-explicit-any': 'off',
19+
}
20+
}

app/.gitignore

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Specifies intentionally untracked files to ignore when using Git
2+
# http://git-scm.com/docs/gitignore
3+
4+
*~
5+
*.sw[mnpcod]
6+
.tmp
7+
*.tmp
8+
*.tmp.*
9+
*.sublime-project
10+
*.sublime-workspace
11+
.DS_Store
12+
Thumbs.db
13+
UserInterfaceState.xcuserstate
14+
$RECYCLE.BIN/
15+
16+
*.log
17+
log.txt
18+
npm-debug.log*
19+
20+
/.idea
21+
/.ionic
22+
/.sass-cache
23+
/.sourcemaps
24+
/.versions
25+
/.vscode/*
26+
!/.vscode/extensions.json
27+
/coverage
28+
/dist
29+
/node_modules
30+
/platforms
31+
/plugins
32+
/www

app/.vscode/extensions.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"Webnative.webnative"
4+
]
5+
}

app/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

app/capacitor.config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import type { CapacitorConfig } from '@capacitor/cli';
2+
3+
const config: CapacitorConfig = {
4+
appId: 'io.ionic.starter',
5+
appName: 'app',
6+
webDir: 'dist'
7+
};
8+
9+
export default config;

app/cypress.config.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { defineConfig } from 'cypress';
2+
3+
export default defineConfig({
4+
e2e: {
5+
supportFile: 'tests/e2e/support/e2e.{js,jsx,ts,tsx}',
6+
specPattern: 'tests/e2e/specs/**/*.cy.{js,jsx,ts,tsx}',
7+
videosFolder: 'tests/e2e/videos',
8+
screenshotsFolder: 'tests/e2e/screenshots',
9+
baseUrl: 'http://localhost:5173',
10+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
11+
setupNodeEvents(on, config) {
12+
// implement node event listeners here
13+
},
14+
},
15+
});

app/index.html

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>Databús 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="shortcut icon" type="image/png" href="/favicon.png" />
18+
19+
<!-- add to homescreen for ios -->
20+
<meta name="mobile-web-app-capable" content="yes" />
21+
<meta name="apple-mobile-web-app-title" content="Ionic App" />
22+
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
23+
</head>
24+
25+
<body>
26+
<div id="app"></div>
27+
<script type="module" src="/src/main.ts"></script>
28+
</body>
29+
</html>

app/ionic.config.json

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

0 commit comments

Comments
 (0)