Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup the base for tauri, vite and vuejs #186

Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

10 changes: 0 additions & 10 deletions .editorconfig

This file was deleted.

8 changes: 5 additions & 3 deletions .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
BROWSER=none
ELECTRON_SNOWPACK_PORT=5752
ELECTRON_PRINT_CALLSITE=true
# https://vitejs.dev/guide/env-and-mode.html
# .env # loaded in all cases
# .env.local # loaded in all cases, ignored by git
# .env.[mode] # only loaded in specified mode
# .env.[mode].local # only loaded in specified mode, ignored by git
10 changes: 10 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.vscode/
.yarn/
coverage/
dist/
js/
node_module/
src-tauri/
src/assets/
tsconfig.*.json
vendor/
110 changes: 110 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
{
"root": true,
"env": {
"browser": true,
"es2022": true,
"node": false
},
"extends": [
"eslint:recommended",
"google",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:markdown/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:jsdoc/recommended",
"plugin:prettier/recommended",
"plugin:vue/vue3-recommended",
"plugin:vuetify/base",
"plugin:yaml/recommended",
"@vue/eslint-config-prettier"
],
"plugins": [
"@typescript-eslint",
"jsdoc",
"tsdoc",
"html",
"yaml",
"vue"
],
"parser": "vue-eslint-parser",
"parserOptions": {
"ecmaVersion": "latest",
"parser": "@typescript-eslint/parser",
"sourceType": "module",
"createDefaultProgram": true
},
"rules": {
"new-cap": "off",
"no-invalid-this": "off",
"no-unused-vars": "warn",
"no-console": "off",
"require-jsdoc": "off",
"valid-jsdoc": "off",
"jsdoc/require-param-type": "off",
"jsdoc/require-param": [
"off",
{
"enableRootFixer": false
}
],
"jsdoc/require-returns-description": "off",
"jsdoc/require-returns-type": "off",
"jsdoc/require-returns": "off",
"tsdoc/syntax": "warn",
"jsdoc/tag-lines": "off",
"vue/html-self-closing": [
"error",
{
"html": {
"void": "always"
}
}
],
"vue/multi-word-component-names": "warn",
"vuetify/no-deprecated-components": "off"
},
"overrides": [
{
"files": [
"*.html"
],
"processor": "vue/.vue"
}
],
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [
"*.ts",
"*.tsx"
],
"vue-eslint-parser": [
"*.vue"
]
},
"import/resolver": {
"typescript": true,
"node": true,
"alias": {
"map": [
[
"@",
"./src"
]
],
"extensions": [
".cjs",
".js",
".jsx",
".mjs",
".ts",
".tsx",
".vue"
]
}
},
"vite": {
"configPath": "./vite.config.ts"
}
}
}
78 changes: 0 additions & 78 deletions .eslintrc.js

This file was deleted.

34 changes: 30 additions & 4 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,30 @@
*.js text eol=crlf
*.ts text eol=crlf
*.jsx text eol=crlf
*.tsx text eol=crlf
* text=auto eol=lf

*.vue eol=lf encoding=UTF-8
*.css eol=lf encoding=UTF-8
*.html eol=lf encoding=UTF-8
*.js eol=lf encoding=UTF-8
*.jsx eol=lf encoding=UTF-8
*.md eol=lf encoding=UTF-8
*.scss eol=lf encoding=UTF-8
*.ts eol=lf encoding=UTF-8
*.tsx eol=lf encoding=UTF-8
*.txt eol=lf encoding=UTF-8
*.xml eol=lf encoding=UTF-8

# Images
*.gif binary
*.ico binary
*.jpg binary
*.png binary
*.svg eol=lf encoding=UTF-8
*.ai eol=lf encoding=UTF-8
*.webp binary
*.avif binary
*.icns binary

# Fonts
*.eot binary
*.otf binary
*.ttf binary
*.woff binary
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
on: [push]
on:
push:
branches:
# for now, only run on master
- master

name: 'CI'

Expand Down
25 changes: 9 additions & 16 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,33 +1,26 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js


# testing
/coverage

# production
/build
/dist
.cache
# Build output
node_modules
dist

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local
# Local env files
*.local

# Log files
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Editor directories and files
.idea
.vscode
.vscode/*
!.vscode/extensions.json
*.suo
*.ntvs*
*.njsproj
Expand Down
8 changes: 8 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.vscode/
.yarn/
coverage/
dist/
index.html
node_module/
src-tauri/
src/assets/
6 changes: 0 additions & 6 deletions .prettierrc.json

This file was deleted.

11 changes: 11 additions & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
printWidth: 80
tabWidth: 2
useTabs: false
semi: true
singleQuote: true
trailingComma: es5
bracketSpacing: true
bracketSameLine: false
arrowParens: avoid
htmlWhitespaceSensitivity: ignore
endOfLine: lf
8 changes: 8 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.vscode/
.yarn/
coverage/
dist/
node_module/
src-tauri/
src/assets/
tsconfig.*.json
15 changes: 15 additions & 0 deletions .stylelintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
customSyntax: postcss-html
extends:
- stylelint-config-html/vue
- stylelint-config-recommended-scss
- stylelint-config-recommended-vue/scss
plugins:
- stylelint-order
- stylelint-scss
ignoreFiles:
- 'dist/**/*'
rules:
color-function-notation: legacy
function-no-unknown: null
no-descending-specificity: null
scss/no-global-function-names: null
14 changes: 14 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"stylelint.vscode-stylelint",
"Vue.volar",
"Vue.vscode-typescript-vue-plugin",
"tauri-apps.tauri-vscode",
"rust-lang.rust-analyzer"
],
"unwantedRecommendations": [
"octref.vetur"
]
}
Loading