Skip to content

Commit

Permalink
chore: 移除无用 dev依赖, 增加 prettier 格式化
Browse files Browse the repository at this point in the history
  • Loading branch information
yue1123 committed Oct 22, 2022
1 parent ad3576e commit a92793c
Show file tree
Hide file tree
Showing 5 changed files with 195 additions and 863 deletions.
21 changes: 21 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
arrowParens: 'always',
bracketSpacing: true,
endOfLine: 'lf',
htmlWhitespaceSensitivity: 'ignore',
insertPragma: false,
singleAttributePerLine: false,
bracketSameLine: false,
jsxBracketSameLine: false,
jsxSingleQuote: true,
printWidth: 120,
proseWrap: 'preserve',
quoteProps: 'as-needed',
requirePragma: false,
semi: false,
singleQuote: true,
tabWidth: 2,
trailingComma: 'none',
useTabs: false,
vueIndentScriptAndStyle: true
}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,11 @@ app.mount('#app')
- [ ] 贝塞尔曲线
- [ ] 彩虹渐变线
- [ ] 叠加层
- [x] 路况叠加层
- [ ] 地面图片叠加层
- [ ] canvas 叠加层
- [ ] video 叠加层
- [ ] 路况叠加层
- [ ] MapVgl 叠加层
- [x] 信息窗口
- [ ] 右键菜单
- [ ] 大地路线书
Expand Down
250 changes: 122 additions & 128 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,130 +1,124 @@
{
"name": "vue3-baidu-map-gl",
"description": "A Vue 3 baidu map gl Component Library. ",
"version": "0.0.25",
"main": "es/index.js",
"module": "es/index.js",
"types": "es/index.d.ts",
"unpkg": "dist/index.prod.js",
"jsdelivr": "dist/index.prod.js",
"author": "yue1123",
"license": "MIT",
"exports": {
"./es": "./es/index.js",
"./*": "./*",
".": {
"import": "./es/index.js",
"types": "./es/index.d.ts"
},
"./package.json": "./package.json"
},
"files": [
"es",
"dist",
"types",
"volar.d.ts",
"README.md"
],
"scripts": {
"clean": "rimraf es dist",
"dev": "pnpm clean && rollup -c",
"build": "pnpm clean && vue-tsc && rollup -c --environment NODE_ENV:production && rollup -c ./scripts/build-package.js && rimraf *.tsbuildinfo && pnpm gen-volar-dts",
"docs:dev": "vitepress dev docs",
"test": "vitest",
"docs:build": "vitepress build docs",
"link:pnpm": "pnpm link --global",
"fix-dot": "fixdot docs/zh/base/* docs/zh/control/* docs/zh/guide/* docs/zh/overlay/* docs/index.md -d -p",
"gen-volar-dts": "esbuild scripts/gen-component-declaration.js --bundle --platform=node | node"
},
"dependencies": {
"mitt": "^3.0.0",
"vue": "^3.2.40"
},
"peerDependencies": {
"vue": "^3.0.0"
},
"devDependencies": {
"@babel/core": "^7.17.9",
"@commitlint/cli": "^16.2.3",
"@commitlint/config-conventional": "^16.2.1",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^21.0.3",
"@rollup/plugin-node-resolve": "^14.1.0",
"@rollup/plugin-replace": "^4.0.0",
"@types/ws": "^8.5.3",
"@vitejs/plugin-vue": "3.1.0",
"@vue/test-utils": "^2.0.2",
"deepmerge": "^4.2.2",
"esbuild": "^0.15.10",
"husky": "^7.0.4",
"jsdom": "^20.0.0",
"rimraf": "^3.0.2",
"rollup": "^2.70.1",
"rollup-plugin-css-porter": "^1.0.2",
"rollup-plugin-esbuild": "^4.10.1",
"rollup-plugin-node-externals": "^5.0.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript": "^1.0.1",
"rollup-plugin-typescript2": "^0.34.1",
"rollup-plugin-vue": "^6.0.0",
"tslib": "^2.4.0",
"typescript": "^4.6.3",
"vite": "3.1.4",
"vitepress": "1.0.0-alpha.21",
"vitest": "^0.23.4",
"vue-tsc": "^1.0.0"
},
"sideEffects": false,
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
"@algolia/client-search"
]
}
},
"packageManager": "pnpm",
"engines": {
"pnpm": ">=6.0.0",
"node": ">=12.0.0"
},
"keywords": [
"vue3",
"vue",
"baidu map",
"baidu map gl",
"vue3-baidu-map-gl",
"vue3-bmap-gl"
],
"husky": {
"hooks": {
"pre-commit": "echo commit",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"*.js": [
"prettier --write",
"eslint --fix"
],
"*.ts": [
"prettier --write",
"eslint --fix"
],
"*.tsx": [
"prettier --write",
"eslint --fix"
],
"*.vue": [
"prettier --parser=vue --write",
"eslint --fix"
],
"*.css": [
"prettier --write"
],
"*.md": [
"prettier --write --parser markdown --prose-wrap never",
"eslint --fix"
]
}
"name": "vue3-baidu-map-gl",
"description": "A Vue 3 baidu map gl Component Library. ",
"version": "0.0.25",
"main": "es/index.js",
"module": "es/index.js",
"types": "es/index.d.ts",
"unpkg": "dist/index.prod.js",
"jsdelivr": "dist/index.prod.js",
"author": "yue1123",
"license": "MIT",
"exports": {
"./es": "./es/index.js",
"./*": "./*",
".": {
"import": "./es/index.js",
"types": "./es/index.d.ts"
},
"./package.json": "./package.json"
},
"files": [
"es",
"dist",
"types",
"volar.d.ts",
"README.md"
],
"scripts": {
"clean": "rimraf es dist",
"dev": "pnpm clean && rollup -c",
"build": "pnpm clean && vue-tsc && rollup -c --environment NODE_ENV:production && rollup -c ./scripts/build-package.js && rimraf *.tsbuildinfo && pnpm gen-volar-dts",
"docs:dev": "vitepress dev docs",
"test": "vitest",
"docs:build": "prettier -w docs/zh/* && vitepress build docs",
"link:pnpm": "pnpm link --global",
"fix-dot": "fixdot docs/zh/base/* docs/zh/control/* docs/zh/guide/* docs/zh/overlay/* docs/index.md -d -p",
"gen-volar-dts": "esbuild scripts/gen-component-declaration.js --bundle --platform=node | node",
"format": "prettier -w docs/zh/* packages/*"
},
"dependencies": {
"mitt": "^3.0.0",
"vue": "^3.2.40"
},
"peerDependencies": {
"vue": "^3.0.0"
},
"devDependencies": {
"@babel/core": "^7.17.9",
"@commitlint/cli": "^16.2.3",
"@commitlint/config-conventional": "^16.2.1",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^21.0.3",
"@rollup/plugin-node-resolve": "^14.1.0",
"@rollup/plugin-replace": "^4.0.0",
"@types/ws": "^8.5.3",
"@vitejs/plugin-vue": "3.1.0",
"deepmerge": "^4.2.2",
"husky": "^7.0.4",
"prettier": "^2.7.1",
"rimraf": "^3.0.2",
"rollup": "^2.70.1",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript": "^1.0.1",
"rollup-plugin-vue": "^6.0.0",
"tslib": "^2.4.0",
"typescript": "^4.6.3",
"vite": "3.1.4",
"vitepress": "1.0.0-alpha.21",
"vue-tsc": "^1.0.0"
},
"sideEffects": false,
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
"@algolia/client-search"
]
}
},
"packageManager": "pnpm",
"engines": {
"pnpm": ">=6.0.0",
"node": ">=12.0.0"
},
"keywords": [
"vue3",
"vue",
"baidu map",
"baidu map gl",
"vue3-baidu-map-gl",
"vue3-bmap-gl"
],
"husky": {
"hooks": {
"pre-commit": "echo commit",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"*.js": [
"prettier --write",
"eslint --fix"
],
"*.ts": [
"prettier --write",
"eslint --fix"
],
"*.tsx": [
"prettier --write",
"eslint --fix"
],
"*.vue": [
"prettier --parser=vue --write",
"eslint --fix"
],
"*.css": [
"prettier --write"
],
"*.md": [
"prettier --write --parser markdown --prose-wrap never",
"eslint --fix"
]
}
}
Loading

0 comments on commit a92793c

Please sign in to comment.