Skip to content

Commit

Permalink
build(projects): update config
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Nov 2, 2022
1 parent bf56a69 commit 48cf58f
Show file tree
Hide file tree
Showing 5 changed files with 1,611 additions and 62 deletions.
36 changes: 36 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"recommendations": [
"afzalsayed96.icones",
"antfu.iconify",
"antfu.unocss",
"christian-kohler.path-intellisense",
"dbaeumer.vscode-eslint",
"DotJoshJohnson.xml",
"eamodio.gitlens",
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
"formulahendry.auto-complete-tag",
"formulahendry.auto-close-tag",
"formulahendry.auto-rename-tag",
"formulahendry.code-runner",
"kisstkondoros.vscode-gutter-preview",
"jock.svg",
"josee9988.minifyall",
"lokalise.i18n-ally",
"mariusalchimavicius.json-to-ts",
"mhutchie.git-graph",
"mikestead.dotenv",
"ms-ceintl.vscode-language-pack-zh-hans",
"naumovs.color-highlight",
"piyushvscode.nodejs-snippets",
"pkief.material-icon-theme",
"sdras.vue-vscode-snippets",
"steoates.autoimport",
"vue.volar",
"vue.vscode-typescript-vue-plugin",
"whtouche.vscode-js-console-utils",
"xabikos.javascriptsnippets",
"yzhang.markdown-all-in-one",
"zhuangtongfa.material-theme"
]
}
89 changes: 89 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.fontLigatures": true,
"editor.formatOnSave": false,
"editor.guides.bracketPairs": "active",
"editor.quickSuggestions": {
"strings": true
},
"editor.tabSize": 2,
"eslint.alwaysShowStatus": true,
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"html",
"json",
"jsonc",
"json5",
"yaml",
"yml",
"markdown"
],
"files.associations": {
"*.env.*": "dotenv"
},
"files.eol": "\n",
"git.enableSmartCommit": true,
"gutterpreview.paths": {
"@": "/src",
"~@": "/src"
},
"material-icon-theme.activeIconPack": "angular",
"material-icon-theme.files.associations": {},
"material-icon-theme.folders.associations": {
"src-tauri": "src",
"enum": "typescript",
"enums": "typescript",
"store": "context",
"stores": "context",
"composable": "hook",
"composables": "hook",
"directive": "tools",
"directives": "tools",
"business": "core",
"request": "api",
"adapter": "middleware"
},
"path-intellisense.mappings": {
"@": "${workspaceFolder}/src",
"~@": "${workspaceFolder}/src"
},
"terminal.integrated.cursorStyle": "line",
"terminal.integrated.fontSize": 14,
"terminal.integrated.fontWeight": 500,
"terminal.integrated.tabs.enabled": true,
"workbench.iconTheme": "material-icon-theme",
"workbench.colorTheme": "One Dark Pro",
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.defaultFormatter": "yzhang.markdown-all-in-one"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[vue]": {
"editor.defaultFormatter": "Vue.volar"
}
}
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@
},
"scripts": {
"build": "tsup",
"cleanup": "rm -rf ./node_modules ./**/node_modules ./dist ./**/dist ./pnpm-lock.yaml ./**/pnpm-lock.yaml",
"commit": "soybean git-commit",
"esno": "esno",
"lint": "eslint . --fix",
"update-pkg": "ncu --deep -u",
"update-version": "bumpp package.json",
"publish-pkg": "pnpm -r publish --access public",
"release": "pnpm update-version && pnpm publish-pkg",
"prepare": "husky install",
"commit": "soybean git-commit"
"sync-pkg": "esno ./scripts/sync.ts",
"prepare": "husky install"
},
"dependencies": {
"commander": "^9.4.1",
Expand All @@ -31,13 +34,14 @@
"prompts": "^2.4.2"
},
"devDependencies": {
"@soybeanjs/cli": "^0.0.1",
"@soybeanjs/cli": "^0.1.0",
"@types/prompts": "^2.4.1",
"bumpp": "^8.2.1",
"eslint": "^8.26.0",
"eslint-config-soybeanjs": "0.1.1",
"esno": "^0.16.3",
"husky": "^8.0.1",
"npm-check-updates": "^16.3.16",
"tsup": "^6.3.0",
"typescript": "^4.8.4",
"zx": "^7.1.1"
Expand Down
Loading

0 comments on commit 48cf58f

Please sign in to comment.