From cc1b942db880a81c34cc621e33bc17c894988c2f Mon Sep 17 00:00:00 2001 From: Luk Date: Fri, 1 Nov 2024 13:24:05 +0800 Subject: [PATCH] add readline-sync, shelljs, shx to package.json --- .gitignore | 125 +++++++++++++++++++++++++++++++++++++++++++++++++ .prettierrc.js | 14 ++++++ package.json | 7 ++- 3 files changed, 145 insertions(+), 1 deletion(-) create mode 100755 .gitignore create mode 100755 .prettierrc.js diff --git a/.gitignore b/.gitignore new file mode 100755 index 0000000..ea2b251 --- /dev/null +++ b/.gitignore @@ -0,0 +1,125 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. +# how to include another gitignore? +# https://stackoverflow.com/questions/7005142/can-i-include-other-gitignore-file-in-a-gitignore-file-like-include-in-c-li +# https://github.com/github/gitignore +# https://github.com/SlideWave/gitignore-include?tab=readme-ov-file#examples +# https://gitignore.io + +### .gitignore.global.txt ### + +# Self defined pattern to ignore +?*.gitignore +?*.gitignore/ +?*.gitignore.* +?*.gitignore.*/ +*.gitomit +*.gitomit.* +*.gitomit/ +*.gitomit.*/ +*.nogit +*.nogit.* +*.nogit/ +*.nogit.*/ +# 保留 +!.gitignore +!.gitignore.* +!.gitkeep + +# 通用 +.svn/ +.deploy_git/ +.idea/ +.sass-cache/ +.wrangler/ +/test/unit/coverage/ +/test/e2e/reports/ +node_modules/ +*.aab +*.apk +*.ipa +*.rar +*.tgz +*.zip +*.min.js +*.min.css +*.min.html +*.iml +*.njsproj +*.ntvs* +*.sw* +*.sln +*.suo +.gitattributes +.umi +.umi-production +npm-debug.log* +yarn-debug.log* +yarn-error.log* +yarn.lock +selenium-debug.log +Thumbs.db +thumbs.db +_desktop.ini + +# vue-cli 项目 +/dist/ + +# 来自 vue-cli 创建项目的 .gitignore +.project + +# hexo +/public/ + +# Hardhat +/artifacts/ +/cache/ + +# seafile 临时文件 +._* + +.$* + +# office 暂存文件 +~$* + +# 用户shell配置脚本 +.bashrc_custom + +# 苹果系统临时文件 +.DS_Store + +# 安卓缓存文件夹 +.thumbnails + +# local env files +.env.local +.env.*.local + +# hexo +/db.json + +# wo +# 服务端 +/_archive/* +/_datastore/* +/_filestore/* +/_logstore/* +/_webroot/* +/_ssl/* +# uniapp 客户端 +/unpackage/* +!/unpackage/res/ +package-lock.json +pages4loader.json5 + +### .gitignore.local.txt ### + +# 被自动复制的文件: +/androidPrivacy.json +/App.html +/App.theme.scss +/cli-pack-config.json +/appenv.json +/manifest.json +/pages.json +*/root/tencent*.txt diff --git a/.prettierrc.js b/.prettierrc.js new file mode 100755 index 0000000..0eba6fc --- /dev/null +++ b/.prettierrc.js @@ -0,0 +1,14 @@ +/* 对 VSCode Prettier 有效;建议一直要有本配置文件,否则不同版本的 Prettier 的默认配置会不同,例如 TrailingComma +对 VSCode Prettier Standard 无效,似乎是集成了不能修改的配置。 */ +module.exports = { + printWidth: 160, // default 80 + tabWidth: 2, // default 2 + useTabs: false, + semi: false, // default true + singleQuote: true, // default false + trailingComma: "es5", // none (default in v 1.*), es5 (default in v2.0.0), all + bracketSpacing: true, // default true + bracketSameLine: true, // default false + arrowParens: "always", // avoid (default in v1.9.0), always (default since v2.0.0) + quoteProps: "as-needed" // as-needed (default), consistent, preserve +}; diff --git a/package.json b/package.json index a56f911..4403974 100644 --- a/package.json +++ b/package.json @@ -12,5 +12,10 @@ }, "keywords": [], "author": "", - "license": "ISC" + "license": "ISC", + "devDependencies": { + "readline-sync": "^1.4.10", + "shelljs": "^0.8.5", + "shx": "^0.3.4" + } }