Skip to content

Commit

Permalink
Update project structure and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
hallipr committed May 7, 2024
1 parent 930526c commit 0c74f2f
Show file tree
Hide file tree
Showing 98 changed files with 4,473 additions and 5,157 deletions.
19 changes: 15 additions & 4 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
{
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
"version": "0.2",
"language": "en",
"words": [
"luxon",
"Nuxt"
"tauri",
"iconify",
"xlink",
"serde",
"hallipr",
"icns",
"Daeodon"
],
"ignorePaths": [
// list of paths to ignore
"node_modules",
"dist",
"target",
"*.icns",
"gen",
"arkData.ts"
],
"ignoreWords": [
// list of words to ignore
]
],
}
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Stop the editor from looking for .editorconfig files in the parent directories
root = true

[*]
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2
max_line_length = 120
16 changes: 16 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')

module.exports = {
root: true,
'extends': [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-typescript',
'@vue/eslint-config-prettier/skip-formatting',
"plugin:jsonc/recommended-with-jsonc"
],
parserOptions: {
ecmaVersion: 'latest'
}
}
11 changes: 7 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,24 @@ yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

/.tmp
node_modules
.DS_Store
dist
dist-electron
dist-ssr
release
coverage
*.local

/src-tauri/target
/src-tauri/gen

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

*.tsbuildinfo
4 changes: 4 additions & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
arrowParens: avoid # Include parenthesis around a sole arrow function parameter,
semi: false # Specify if you want to print semicolons at the end of statements
singleQuote: true # If you want to use single quotes
trailingComma: es5 # Print trailing commas wherever possible when multi-line
6 changes: 5 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"recommendations": ["Vue.volar"]
"recommendations": [
"Vue.volar",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode"
]
}
31 changes: 2 additions & 29 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,15 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"command": "./build.ps1",
"group": "build",
"label": "build.ps1",
"detail": "next build"
},
{
"label": "start server",
"type": "shell",
"command": "npx --no vite dev --port 5173",
"problemMatcher": {
"base": "$tsc-watch",
"background": {
"activeOnStart": true,
"beginsPattern": "VITE",
"endsPattern": "Local: +http://localhost:(\\d+)/"
}
},
"isBackground": true,
"presentation": {
"reveal": "always",
"focus": false,
"panel": "new"
}
},
{
"type": "npm",
"script": "build",
"script": "build --workspaces --if-present",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [],
"label": "npm: build",
"detail": "vue-tsc && vite build"
"label": "npm: build"
},
{
"type": "npm",
Expand Down
40 changes: 37 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,39 @@
# Vue 3 + TypeScript + Vite
# my-vue-ts

This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
This template should help get you started developing with Vue 3 in Vite.

Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
## Recommended IDE Setup

[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).

## Type Support for `.vue` Imports in TS

TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) to make the TypeScript language service aware of `.vue` types.

## Customize configuration

See [Vite Configuration Reference](https://vitejs.dev/config/).

## Project Setup

```sh
npm install
```

### Compile and Hot-Reload for Development

```sh
npm run dev
```

### Type-Check, Compile and Minify for Production

```sh
npm run build
```

### Lint with [ESLint](https://eslint.org/)

```sh
npm run lint
```
File renamed without changes.
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite App</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
Loading

0 comments on commit 0c74f2f

Please sign in to comment.