Skip to content

Commit

Permalink
chore(projects): perf template-vue
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Dec 9, 2023
1 parent fec98a6 commit 5043307
Show file tree
Hide file tree
Showing 14 changed files with 93 additions and 54 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
registry=https://registry.npmmirror.com/
shamefully-hoist=true
ignore-workspace-root-check=true
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
},
"eslint.experimental.useFlatConfig": true,
"editor.formatOnSave": false,
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact", "json", "jsonc", "json5"],
"eslint.validate": ["jsonc"],
"prettier.enable": false
}
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { defineConfig } from '@soybeanjs/eslint-config';

export default defineConfig();
export default defineConfig({ vue: true });
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,13 @@
"@types/crypto-js": "4.2.1",
"@types/node": "20.10.4",
"eslint": "8.55.0",
"eslint-plugin-vue": "9.19.2",
"lint-staged": "15.2.0",
"simple-git-hooks": "2.9.0",
"tsx": "4.6.2",
"typescript": "5.3.3",
"unbuild": "2.0.0"
"unbuild": "2.0.0",
"vue-eslint-parser": "9.3.2"
},
"simple-git-hooks": {
"commit-msg": "pnpm soy git-commit-verify",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
},
"eslint.experimental.useFlatConfig": true,
"editor.formatOnSave": false,
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact", "json", "jsonc", "json5"],
"eslint.validate": ["jsonc"],
"prettier.enable": false
}
4 changes: 0 additions & 4 deletions packages/create-soybean/template-ts-lib/_gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,3 @@ coverage
*.njsproj
*.sln
*.sw?

package-lock.json
yarn.lock
pnpm-lock.yaml
10 changes: 4 additions & 6 deletions packages/create-soybean/template-ts-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"type": "module",
"version": "0.8.5",
"private": true,
"packageManager": "[email protected]",
"exports": {
".": {
"types": "./dist/index.d.ts",
Expand All @@ -15,15 +16,13 @@
"types": "dist/index.d.ts",
"files": ["dist"],
"scripts": {
"build": "run-s typecheck build-only",
"build-only": "unbuild",
"build": "unbuild",
"cleanup": "soy cleanup",
"commit": "soy git-commit",
"lint": "eslint . --fix",
"prepare": "simple-git-hooks",
"publish-pkg": "pnpm publish --access public",
"release": "run-s release-pkg build publish-pkg",
"release-pkg": "soy release",
"release": "soy release",
"typecheck": "tsc --noEmit --skipLibCheck",
"update-pkg": "soy ncu"
},
Expand All @@ -36,13 +35,12 @@
"ofetch": "1.3.3"
},
"devDependencies": {
"@soybeanjs/cli": "0.8.5",
"@soybeanjs/cli": "0.8.6",
"@soybeanjs/eslint-config": "1.0.9",
"@types/cli-progress": "3.11.5",
"@types/node": "20.10.4",
"eslint": "8.55.0",
"lint-staged": "15.2.0",
"npm-run-all": "4.1.5",
"simple-git-hooks": "2.9.0",
"tsx": "4.6.2",
"typescript": "5.3.3",
Expand Down
7 changes: 7 additions & 0 deletions packages/create-soybean/template-vue/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Vue debugger",
"url": "http://localhost:9527",
"webRoot": "${workspaceFolder}"
},
{
"type": "node",
"request": "launch",
Expand Down
15 changes: 1 addition & 14 deletions packages/create-soybean/template-vue/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,6 @@
},
"editor.formatOnSave": false,
"eslint.experimental.useFlatConfig": true,
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"html",
"css",
"json",
"jsonc",
"yaml",
"toml",
"markdown"
],
"eslint.validate": ["html", "css", "jsonc"],
"prettier.enable": false
}
4 changes: 0 additions & 4 deletions packages/create-soybean/template-vue/_gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,3 @@ coverage
*.njsproj
*.sln
*.sw?

package-lock.json
yarn.lock
pnpm-lock.yaml
4 changes: 3 additions & 1 deletion packages/create-soybean/template-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"type": "module",
"version": "0.8.5",
"private": true,
"packageManager": "[email protected]",
"scripts": {
"build": "run-s typecheck build-only",
"build-only": "vite build",
Expand All @@ -27,11 +28,12 @@
"@vitejs/plugin-vue": "4.5.2",
"@vitejs/plugin-vue-jsx": "3.1.0",
"eslint": "8.55.0",
"eslint-plugin-vue": "9.19.2",
"lint-staged": "15.2.0",
"npm-run-all": "4.1.5",
"simple-git-hooks": "2.9.0",
"typescript": "5.3.3",
"vite": "5.0.7",
"vue-eslint-parser": "9.3.2",
"vue-tsc": "1.8.25"
},
"simple-git-hooks": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ defineProps<{
<h1 class="green">{{ msg }}</h1>
<h3>
You’ve successfully created a project with
<a href="https://vitejs.dev/" target="_blank" rel="noopener">Vite</a>
<a href="https://vitejs.dev/" target="_blank" rel="noopener noreferrer">Vite</a>
+
<a href="https://vuejs.org/" target="_blank" rel="noopener">Vue 3</a>
<a href="https://vuejs.org/" target="_blank" rel="noopener noreferrer">Vue 3</a>
. What's next?
</h3>
</div>
Expand Down
34 changes: 18 additions & 16 deletions packages/create-soybean/template-vue/src/components/TheWelcome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import SupportIcon from './icons/IconSupport.vue';
<template #heading>Documentation</template>

Vue’s
<a href="https://vuejs.org/" target="_blank" rel="noopener">official documentation</a>
<a href="https://vuejs.org/" target="_blank" rel="noopener noreferrer">official documentation</a>
provides you with all information you need to get started.
</WelcomeItem>

Expand All @@ -26,15 +26,15 @@ import SupportIcon from './icons/IconSupport.vue';
<template #heading>Tooling</template>

This project is served and bundled with
<a href="https://vitejs.dev/guide/features.html" target="_blank" rel="noopener">Vite</a>
<a href="https://vitejs.dev/guide/features.html" target="_blank" rel="noopener noreferrer">Vite</a>
. The recommended IDE setup is
<a href="https://code.visualstudio.com/" target="_blank" rel="noopener">VSCode</a>
<a href="https://code.visualstudio.com/" target="_blank" rel="noopener noreferrer">VSCode</a>
+
<a href="https://github.com/johnsoncodehk/volar" target="_blank" rel="noopener">Volar</a>
<a href="https://github.com/johnsoncodehk/volar" target="_blank" rel="noopener noreferrer">Volar</a>
. If you need to test your components and web pages, check out
<a href="https://www.cypress.io/" target="_blank" rel="noopener">Cypress</a>
<a href="https://www.cypress.io/" target="_blank" rel="noopener noreferrer">Cypress</a>
and
<a href="https://on.cypress.io/component" target="_blank">Cypress Component Testing</a>
<a href="https://on.cypress.io/component" target="_blank" rel="noopener noreferrer">Cypress Component Testing</a>
.

<br />
Expand All @@ -51,15 +51,15 @@ import SupportIcon from './icons/IconSupport.vue';
<template #heading>Ecosystem</template>

Get official tools and libraries for your project:
<a href="https://pinia.vuejs.org/" target="_blank" rel="noopener">Pinia</a>
<a href="https://pinia.vuejs.org/" target="_blank" rel="noopener noreferrer">Pinia</a>
,
<a href="https://router.vuejs.org/" target="_blank" rel="noopener">Vue Router</a>
<a href="https://router.vuejs.org/" target="_blank" rel="noopener noreferrer">Vue Router</a>
,
<a href="https://test-utils.vuejs.org/" target="_blank" rel="noopener">Vue Test Utils</a>
<a href="https://test-utils.vuejs.org/" target="_blank" rel="noopener noreferrer">Vue Test Utils</a>
, and
<a href="https://github.com/vuejs/devtools" target="_blank" rel="noopener">Vue Dev Tools</a>
<a href="https://github.com/vuejs/devtools" target="_blank" rel="noopener noreferrer">Vue Dev Tools</a>
. If you need more resources, we suggest paying
<a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">Awesome Vue</a>
<a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener noreferrer">Awesome Vue</a>
a visit.
</WelcomeItem>

Expand All @@ -70,13 +70,15 @@ import SupportIcon from './icons/IconSupport.vue';
<template #heading>Community</template>

Got stuck? Ask your question on
<a href="https://chat.vuejs.org" target="_blank" rel="noopener">Vue Land</a>
<a href="https://chat.vuejs.org" target="_blank" rel="noopener noreferrer">Vue Land</a>
, our official Discord server, or
<a href="https://stackoverflow.com/questions/tagged/vue.js" target="_blank" rel="noopener">StackOverflow</a>
<a href="https://stackoverflow.com/questions/tagged/vue.js" target="_blank" rel="noopener noreferrer">
StackOverflow
</a>
. You should also subscribe to
<a href="https://news.vuejs.org" target="_blank" rel="noopener">our mailing list</a>
<a href="https://news.vuejs.org" target="_blank" rel="noopener noreferrer">our mailing list</a>
and follow the official
<a href="https://twitter.com/vuejs" target="_blank" rel="noopener">@vuejs</a>
<a href="https://twitter.com/vuejs" target="_blank" rel="noopener noreferrer">@vuejs</a>
twitter account for latest news in the Vue world.
</WelcomeItem>

Expand All @@ -87,7 +89,7 @@ import SupportIcon from './icons/IconSupport.vue';
<template #heading>Support Vue</template>

As an independent project, Vue relies on community backing for its sustainability. You can help us by
<a href="https://vuejs.org/sponsor/" target="_blank" rel="noopener">becoming a sponsor</a>
<a href="https://vuejs.org/sponsor/" target="_blank" rel="noopener noreferrer">becoming a sponsor</a>
.
</WelcomeItem>
</template>
54 changes: 51 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5043307

Please sign in to comment.