Skip to content

Commit 94eaac1

Browse files
committed
feat(init): git initialized
0 parents  commit 94eaac1

File tree

115 files changed

+9314
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+9314
-0
lines changed

.changeset/config.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{
6+
"repo": "haleksandre/tauri-sveltekit"
7+
}
8+
],
9+
"privatePackages": {
10+
"version": true,
11+
"tag": true
12+
},
13+
"commit": false,
14+
"fixed": [],
15+
"linked": [],
16+
"access": "restricted",
17+
"baseBranch": "main",
18+
"updateInternalDependencies": "patch",
19+
"ignore": []
20+
}

.changeset/eight-penguins-wink.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-sveltekit": patch
3+
---
4+
5+
initial version

.devcontainer/Dockerfile

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# Bun
2+
FROM docker.io/oven/bun:1-debian as bun
3+
4+
5+
# Node
6+
FROM docker.io/library/node:20-bookworm as node
7+
8+
RUN corepack enable && \
9+
corepack prepare pnpm@latest-9 --activate
10+
11+
12+
# Android
13+
FROM docker.io/thyrlian/android-sdk:latest as android
14+
15+
ARG BUILD=30.0.3
16+
ARG NDK=27.0.11718014
17+
18+
ENV NDK_HOME=${ANDROID_HOME}/ndk
19+
20+
# "platforms;android-30" \
21+
# "platforms;android-31" \
22+
RUN yes | ${ANDROID_HOME}/cmdline-tools/tools/bin/sdkmanager --licenses && \
23+
${ANDROID_HOME}/cmdline-tools/tools/bin/sdkmanager --install \
24+
"platforms;android-32" \
25+
"platforms;android-33" \
26+
"platforms;android-34" \
27+
"platform-tools" \
28+
"ndk;${NDK}" \
29+
"build-tools;${BUILD}" \
30+
"cmdline-tools;latest"
31+
32+
33+
34+
# iOS
35+
FROM docker.io/homebrew/brew:latest as brew
36+
37+
38+
# Tauri
39+
FROM mcr.microsoft.com/devcontainers/rust:1-bookworm
40+
41+
ARG NDK=27.0.11718014
42+
43+
ARG PUID=1000
44+
ARG PGID=1000
45+
46+
ENV ANDROID_HOME /opt/android-sdk
47+
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
48+
ENV NDK_HOME=${ANDROID_HOME}/ndk/${NDK}/
49+
50+
ENV PATH "$PATH:/home/linuxbrew/.linuxbrew/Homebrew/bin:/opt/gradle/bin:/opt/kotlinc/bin:/opt/android-sdk/cmdline-tools/latest/bin:/opt/android-sdk/cmdline-tools/tools/bin:/opt/android-sdk/platform-tools:/opt/android-sdk/emulator"
51+
52+
ENV UID=$PUID
53+
54+
# COPY --from=android --chown 1000:1000 /opt/android-sdk /opt/android-sdk
55+
COPY --from=android --chown=1000:1000 ${ANDROID_HOME} ${ANDROID_HOME}
56+
COPY --from=android --chown=1000:1000 ${JAVA_HOME} ${JAVA_HOME}
57+
COPY --from=android --chown=1000:1000 /opt/gradle /opt/gradle
58+
COPY --from=android --chown=1000:1000 /opt/kotlinc /opt/kotlinc
59+
60+
COPY --from=brew --chown=1000:1000 /home/linuxbrew/.linuxbrew /home/linuxbrew/.linuxbrew
61+
62+
COPY --from=node /usr/local/lib/node_modules /usr/local/lib/node_modules
63+
COPY --from=node /usr/local/bin /usr/local/bin
64+
65+
COPY --from=bun /usr/local/bin/bun /usr/local/bin/bun
66+
COPY --from=bun /usr/local/bin/bunx /usr/local/bin/bunx
67+
68+
RUN ln -s /home/linuxbrew/.linuxbrew/Homebrew/bin/brew /usr/local/bin/brew
69+
70+
RUN apt-get update && \
71+
apt-get install -y --no-install-recommends \
72+
openjdk-17-jdk \
73+
libwebkit2gtk-4.1-dev \
74+
libcanberra-gtk-module \
75+
libcanberra-gtk3-module \
76+
dbus-user-session \
77+
build-essential \
78+
curl \
79+
wget \
80+
file \
81+
procps \
82+
libssl-dev \
83+
libayatana-appindicator3-dev \
84+
librsvg2-dev \
85+
git \
86+
git-lfs && \
87+
apt-get clean && rm -rf /var/lib/apt/lists/*
88+
89+
# Mobile
90+
RUN rustup target add \
91+
aarch64-linux-android \
92+
armv7-linux-androideabi \
93+
i686-linux-android \
94+
x86_64-linux-android \
95+
aarch64-apple-ios \
96+
x86_64-apple-ios \
97+
aarch64-apple-ios-sim
98+
99+
# Frontend
100+
RUN bun x playwright install --with-deps

.devcontainer/devcontainer.json

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/rust
3+
{
4+
"name": "tauri",
5+
"build": {
6+
"context": ".",
7+
"dockerfile": "./Dockerfile",
8+
"args": {
9+
"PUID": "1000",
10+
"GUID": "1000"
11+
}
12+
},
13+
"runArgs": [
14+
"--userns=keep-id",
15+
"--security-opt=label=disable",
16+
"--device=nvidia.com/gpu=all",
17+
"--net=host",
18+
"--privileged"
19+
],
20+
"containerEnv": {
21+
"HOME": "/home/vscode",
22+
"NO_AT_BRIDGE": "1",
23+
"DISPLAY": "${localEnv:DISPLAY}",
24+
"WEBKIT_DISABLE_COMPOSITING_MODE": "1",
25+
"PNPM_HOME": "/pnpm"
26+
// "PATH": "$PNPM_HOME:$PATH"
27+
},
28+
"mounts": [
29+
{
30+
"source": "/home/${localEnv:USER}/.ssh",
31+
"target": "/home/vscode/.ssh",
32+
"type": "bind"
33+
},
34+
{
35+
"source": "/home/${localEnv:USER}/.ssh",
36+
"target": "/home/${localEnv:USER}/.ssh",
37+
"type": "bind"
38+
},
39+
{
40+
"source": "/run/user/1000/gdm/Xauthority",
41+
"target": "/home//${localEnv:USER}/.Xauthority",
42+
"type": "bind"
43+
},
44+
{
45+
"source": "/tmp/.X11-unix",
46+
"target": "/tmp/.X11-unix",
47+
"type": "bind"
48+
},
49+
{
50+
"source": "/run/user/1000/bus",
51+
"target": "/run/user/1000/bus",
52+
"type": "bind"
53+
}
54+
],
55+
"containerUser": "vscode",
56+
"remoteUser": "vscode",
57+
"customizations": {
58+
"vscode": {
59+
"extensions": [
60+
"vadimcn.vscode-lldb",
61+
"tauri-apps.tauri-vscode",
62+
"rust-lang.rust-analyzer",
63+
"svelte.svelte-vscode",
64+
"esbenp.prettier-vscode",
65+
"dbaeumer.vscode-eslint",
66+
"xabikos.JavaScriptSnippets",
67+
"dzannotti.vscode-babel-coloring",
68+
"mikestead.dotenv",
69+
"EditorConfig.EditorConfig",
70+
"eamodio.gitlens",
71+
"vscode-icons-team.vscode-icons",
72+
"fwcd.kotlin",
73+
"vscjava.vscode-gradle",
74+
"ms-azuretools.vscode-docker",
75+
"GitHub.vscode-github-actions"
76+
],
77+
"settings": {
78+
"[javascript]": {
79+
"editor.formatOnSave": true,
80+
"editor.formatOnPaste": true,
81+
"editor.defaultFormatter": "esbenp.prettier-vscode"
82+
},
83+
"[typescript]": {
84+
"editor.formatOnSave": true,
85+
"editor.formatOnPaste": true,
86+
"editor.defaultFormatter": "esbenp.prettier-vscode"
87+
},
88+
"[svelte]": {
89+
"editor.formatOnSave": true,
90+
"editor.formatOnPaste": true,
91+
"editor.defaultFormatter": "svelte.svelte-vscode"
92+
},
93+
"[css]": {
94+
"editor.formatOnSave": true,
95+
"editor.formatOnPaste": true,
96+
"editor.defaultFormatter": "esbenp.prettier-vscode"
97+
},
98+
"[html]": {
99+
"editor.formatOnSave": true,
100+
"editor.formatOnPaste": true,
101+
"editor.defaultFormatter": "esbenp.prettier-vscode"
102+
},
103+
"[yaml]": {
104+
"editor.formatOnSave": true,
105+
"editor.formatOnPaste": true,
106+
"editor.defaultFormatter": "esbenp.prettier-vscode"
107+
},
108+
"eslint.options": {
109+
"extensions": [".html", ".js", ".ts", ".svelte"]
110+
},
111+
"eslint.validate": ["html", "svelte", "javascript", "typescript"]
112+
}
113+
}
114+
}
115+
}

.eslintignore

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Env
2+
.env
3+
.env.*
4+
!.env.example
5+
6+
# Node
7+
/node_modules
8+
/package
9+
/build
10+
/dist
11+
/dist-ssr
12+
/.svelte-kit
13+
pnpm-lock.yaml
14+
package-lock.json
15+
yarn.lock
16+
vite.config.js.timestamp-*
17+
vite.config.ts.timestamp-*
18+
19+
# Editor
20+
/.vscode/*
21+
!/.vscode/extensions.json
22+
.idea
23+
.DS_Store
24+
*.suo
25+
*.ntvs*
26+
*.njsproj
27+
*.sln
28+
*.sw?
29+
30+
# Logs
31+
/logs
32+
*.log
33+
npm-debug.log*
34+
yarn-debug.log*
35+
yarn-error.log*
36+
pnpm-debug.log*
37+
lerna-debug.log*
38+
39+
# Misc
40+
/.vercel
41+
/.output
42+
*.local
43+
._*

.eslintrc.cjs

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/** @type { import("eslint").Linter.Config } */
2+
module.exports = {
3+
root: true,
4+
extends: [
5+
"eslint:recommended",
6+
"plugin:@typescript-eslint/recommended",
7+
"plugin:svelte/recommended",
8+
"prettier"
9+
],
10+
parser: "@typescript-eslint/parser",
11+
plugins: ["@typescript-eslint"],
12+
parserOptions: {
13+
sourceType: "module",
14+
ecmaVersion: 2020,
15+
extraFileExtensions: [".svelte"]
16+
},
17+
env: {
18+
browser: true,
19+
es2017: true,
20+
node: true
21+
},
22+
overrides: [
23+
{
24+
files: ["*.svelte"],
25+
parser: "svelte-eslint-parser",
26+
parserOptions: {
27+
parser: "@typescript-eslint/parser"
28+
}
29+
}
30+
]
31+
};

0 commit comments

Comments
 (0)