Skip to content

Commit

Permalink
feat: add vue devtools and upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
yugasun committed Jun 20, 2024
1 parent 4b380fc commit 31b6ecc
Show file tree
Hide file tree
Showing 25 changed files with 9,199 additions and 6,703 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ module.exports = {
rules: {
// override/add rules settings here, such as:
'vue/multi-word-component-names': 'off',
'@typescript-eslint/no-explicit-any': 'warn',
},
};
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ dist-ssr
*.sln
*.sw?

.turbo

public/mockServiceWorker.js

auto-imports.d.ts
Expand Down
103 changes: 97 additions & 6 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,104 @@
module.exports = {
extends: [
'stylelint-config-standard',
'stylelint-config-prettier',
'stylelint-config-standard-scss',
'stylelint-config-property-sort-order-smacss',
],
plugins: ['stylelint-order', 'stylelint-prettier'],
// customSyntax: 'postcss-html',
overrides: [
{
files: ['**/*.(css|html|vue)'],
customSyntax: 'postcss-html',
},
{
files: ['*.less', '**/*.less'],
customSyntax: 'postcss-less',
extends: [
'stylelint-config-standard',
'stylelint-config-recommended-vue',
],
},
{
files: ['*.scss', '**/*.scss'],
customSyntax: 'postcss-scss',
extends: [
'stylelint-config-standard-scss',
'stylelint-config-recommended-vue/scss',
],
rule: {
'scss/percent-placeholder-pattern': null,
'scss/dollar-variable-pattern': null,
},
},
],
customSyntax: 'postcss-scss',
rules: {
indentation: 4,
'string-quotes': 'single',
'scss/dollar-variable-pattern': null,
'prettier/prettier': true,
'media-feature-range-notation': null,
'selector-not-notation': null,
'import-notation': null,
'function-no-unknown': null,
'selector-class-pattern': null,
'selector-pseudo-class-no-unknown': [
true,
{
ignorePseudoClasses: ['global', 'deep'],
},
],
'selector-pseudo-element-no-unknown': [
true,
{
ignorePseudoElements: ['v-deep'],
},
],
'at-rule-no-unknown': [
true,
{
ignoreAtRules: [
'tailwind',
'apply',
'variants',
'responsive',
'screen',
'function',
'if',
'each',
'include',
'mixin',
'extend',
'forward',
'use',
],
},
],
'no-empty-source': null,
'named-grid-areas-no-invalid': null,
'no-descending-specificity': null,
'font-family-no-missing-generic-family-keyword': null,
'rule-empty-line-before': [
'always',
{
ignore: ['after-comment', 'first-nested'],
},
],
'unit-no-unknown': [true, { ignoreUnits: ['rpx'] }],
'order/order': [
[
'dollar-variables',
'custom-properties',
'at-rules',
'declarations',
{
type: 'at-rule',
name: 'supports',
},
{
type: 'at-rule',
name: 'media',
},
'rules',
],
{ severity: 'error' },
],
},
ignoreFiles: ['**/*.js', '**/*.jsx', '**/*.tsx', '**/*.ts'],
};
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"json",
],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"editor.formatOnSave": false,
"editor.guides.bracketPairs": "active",
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Vue template for starter using Vue3 + TypeScript + Vite + Pinia + Unocss 🚀
- [x] [Vue Router](https://github.com/vuejs/router)
- [x] [TypeScript](https://www.typescriptlang.org/)
- [x] [Vite](https://vitejs.dev/) Next Generation Frontend Tooling
- [x] [Vue DevTools](https://devtools-next.vuejs.org) Vue DevTools - Unleash Vue Developer Experience
- [x] [vite-plugin-pwa](https://github.com/antfu/vite-plugin-pwa) Zero-config PWA for Vite
- [x] [Pinia](https://pinia.vuejs.org/) The Vue Store that you will enjoy using
- [x] ⚙️ [Vitest](https://github.com/vitest-dev/vitest) Unit Testing with Vitest
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<link rel="apple-touch-icon" href="/pwa-192x192.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><%- title %></title>
<title>vue-ts-starter</title>
</head>

<body>
Expand Down
121 changes: 67 additions & 54 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,82 +4,95 @@
"version": "1.0.0",
"scripts": {
"dev": "vite",
"build": "vite build && vue-tsc --noEmit",
"build": "vite build",
"build:analyze": "cross-env vite build --mode analyze",
"preview": "vite preview",
"lint": "eslint --ext .js,.ts,.vue --fix src",
"prettier": "prettier --write --ignore-unknown '**/*'",
"stylelint": "stylelint --fix 'src/**/*.{scss,less,css}'",
"lint": "pnpm run lint:eslint && pnpm run lint:stylelint && pnpm run lint:prettier",
"lint:eslint": "cross-env eslint --cache --ext=.js,.jsx,.ts,.tsx,.vue --fix --config=./eslint.config.js src",
"lint:prettier": "prettier --write .",
"lint:stylelint": "stylelint \"src/**/*.{vue,css,less,scss}\" --fix --cache --cache-location node_modules/.cache/stylelint/",
"commit": "git-cz",
"release": "npx bumpp --push --tag --commit 'release: v'",
"postinstall": "npx msw init public --save",
"prepare": "husky install",
"test": "pnpm run test:unit",
"test:unit": "vitest run",
"test:unit:update": "vitest run --update"
"test:unit:update": "vitest run --update",
"type:check": "vue-tsc --noEmit --skipLibCheck"
},
"dependencies": {
"@element-plus/icons-vue": "^2.1.0",
"@element-plus/icons-vue": "^2.3.1",
"@unocss/reset": "^0.53.6",
"@vueuse/core": "^10.5.0",
"@vueuse/integrations": "^10.5.0",
"axios": "^1.5.1",
"element-plus": "^2.4.0",
"@vueuse/core": "^10.11.0",
"@vueuse/integrations": "^10.11.0",
"axios": "^1.7.2",
"element-plus": "^2.7.5",
"pinia": "^2.1.7",
"universal-cookie": "^4.0.4",
"vue": "^3.3.4",
"vue-i18n": "^9.5.0",
"vue-router": "^4.2.5",
"workbox-core": "^7.0.0",
"workbox-precaching": "^7.0.0",
"workbox-routing": "^7.0.0",
"workbox-window": "^7.0.0"
"vue": "^3.4.29",
"vue-i18n": "^9.13.1",
"vue-router": "^4.3.3",
"workbox-core": "^7.1.0",
"workbox-precaching": "^7.1.0",
"workbox-routing": "^7.1.0",
"workbox-window": "^7.1.0"
},
"devDependencies": {
"@commitlint/cli": "^17.8.0",
"@commitlint/config-conventional": "^17.8.0",
"@iconify-json/carbon": "^1.1.21",
"@intlify/unplugin-vue-i18n": "^0.11.0",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@iconify-json/carbon": "^1.1.36",
"@intlify/unplugin-vue-i18n": "^4.0.0",
"@pinia/testing": "^0.1.3",
"@rollup/plugin-replace": "^5.0.4",
"@types/node": "^20.8.6",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@vitejs/plugin-vue": "^4.4.0",
"@vue/test-utils": "^2.4.1",
"autoprefixer": "^10.4.16",
"bumpp": "^9.2.0",
"@rollup/plugin-replace": "^5.0.7",
"@types/node": "^20.14.6",
"@typescript-eslint/eslint-plugin": "^7.13.1",
"@typescript-eslint/parser": "^7.13.1",
"@vitejs/plugin-vue": "^5.0.5",
"@vue/test-utils": "^2.4.6",
"autoprefixer": "^10.4.19",
"bumpp": "^9.4.1",
"commitizen": "^4.3.0",
"commitlint-config-cz": "^0.13.3",
"cross-env": "^7.0.3",
"cz-conventional-changelog": "^3.3.0",
"cz-customizable": "^7.0.0",
"eslint": "^8.51.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-vue": "^9.17.0",
"husky": "^8.0.3",
"jsdom": "^22.1.0",
"lint-staged": "^13.3.0",
"msw": "^1.3.2",
"postcss": "^8.4.31",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-simple-import-sort": "^12.0.0",
"eslint-plugin-vue": "^9.21.1",
"husky": "^9.0.11",
"jsdom": "^24.1.0",
"lint-staged": "^15.2.7",
"msw": "^1.3.3",
"postcss": "^8.4.38",
"postcss-scss": "^4.0.9",
"prettier": "^2.8.8",
"rollup": "^3.29.4",
"sass": "^1.69.3",
"prettier": "^3.3.2",
"prettier-plugin-packagejson": "^2.5.0",
"rollup": "^4.18.0",
"sass": "^1.77.6",
"standard-version": "^9.5.0",
"stylelint": "^15.10.3",
"stylelint-config-standard": "^33.0.0",
"stylelint-config-standard-scss": "^9.0.0",
"tailwindcss": "^3.3.3",
"typescript": "^4.9.5",
"unocss": "^0.53.6",
"unplugin-auto-import": "^0.16.6",
"unplugin-vue-components": "^0.25.2",
"unplugin-vue-macros": "^2.6.1",
"vite": "^4.4.11",
"vite-plugin-html": "^3.2.0",
"vite-plugin-pwa": "^0.16.5",
"stylelint": "^16.4.0",
"stylelint-config-property-sort-order-smacss": "^10.0.0",
"stylelint-config-recommended-scss": "^14.0.0",
"stylelint-config-recommended-vue": "^1.5.0",
"stylelint-config-standard": "^36.0.0",
"stylelint-config-standard-scss": "^13.1.0",
"stylelint-order": "^6.0.4",
"stylelint-prettier": "^5.0.0",
"tailwindcss": "^3.4.4",
"typescript": "^5.4.5",
"unocss": "^0.61.0",
"unplugin-auto-import": "^0.17.6",
"unplugin-vue-components": "^0.27.0",
"unplugin-vue-macros": "^2.9.5",
"vite": "^5.3.1",
"vite-plugin-pwa": "^0.16.7",
"vite-plugin-vue-devtools": "^7.3.2",
"vitest": "^0.34.6",
"vue-tsc": "^1.8.19"
"vue-eslint-parser": "^9.4.3",
"vue-tsc": "^2.0.14"
},
"config": {
"commitizen": {
Expand Down
Loading

0 comments on commit 31b6ecc

Please sign in to comment.