Skip to content

Commit

Permalink
feat: tauri project is initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
Szőke Attila (Shiwaforce.com Zrt.) authored and Szőke Attila (Shiwaforce.com Zrt.) committed Feb 18, 2024
1 parent e165b9e commit 5227627
Show file tree
Hide file tree
Showing 42 changed files with 6,445 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
!.vscode/settings.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

.yarn
7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"recommendations": [
"svelte.svelte-vscode",
"tauri-apps.tauri-vscode",
"rust-lang.rust-analyzer"
]
}
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"files.insertFinalNewline": true,
"svelte.enable-ts-plugin": true,
"eslint.workingDirectories": ["./src"]
}
2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
nodeLinker: node-modules
npmRegistryServer: "https://registry.yarnpkg.com"
23 changes: 23 additions & 0 deletions cog.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
ignore_merge_commits = true
branch_whitelist = ["main"]
pre_bump_hooks = ["yarn", "yarn version {{version}}"]
post_bump_hooks = ["git push", "git push origin --tags"]

[changelog]
path = "CHANGELOG.md"
template = "remote"
remote = "github.com"
repository = "ups-and-downs"
owner = "szattila98"
authors = [{ username = "szattila98", signature = "Attila Szőke" }]

[packages]
backend = { path = "src-tauri", pre_bump_hooks = [
"cargo set-version -p ups-and-downs {{version}}",
] }

[git_hooks.pre-push]
script = """#!/bin/sh
set -e
cog check
"""
14 changes: 14 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tauri + Svelte + TS</title>
</head>

<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
30 changes: 30 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "ups-and-downs",
"private": true,
"version": "0.0.1",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-check --tsconfig ./tsconfig.json",
"tauri": "tauri"
},
"dependencies": {
"@tauri-apps/api": "^1.5.2"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^3.0.1",
"@tauri-apps/cli": "^1.5.8",
"@tsconfig/svelte": "^5.0.2",
"svelte": "^4.2.8",
"svelte-check": "^3.4.6",
"tslib": "^2.6.0",
"typescript": "^5.0.2",
"vite": "^5.0.0"
},
"volta": {
"node": "20.11.1",
"yarn": "4.1.0"
}
}
1 change: 1 addition & 0 deletions public/svelte.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions public/tauri.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/vite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src-tauri/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Generated by Cargo
# will have compiled files and executables
/target/

Loading

0 comments on commit 5227627

Please sign in to comment.