npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

tg-map-vue3

v3.7.12

Published

封装 百度地图, Google地图, Here地图(未完成) 的Vue3组件库

Downloads

206

Readme

tg-map-vue3

封装 百度地图, Google地图, Here地图(未完成) 的Vue3组件库

使用

pnpm install tg-map-vue3

发布

修改package.json的版本号, 并推送到github, 则会自动发布新版

开发

初始化仓库

# 拉取本仓库
git clone https://github.com/TranscodeGroup/tg-map.git
# 进入本地仓库目录
cd tg-map
# 安装依赖
pnpm install
# 往npm中注册@@transcodegroup\tg-map
pnpm link
# 进入需要依赖@transcodegroup\tg-map的仓库目录($REPO_MAIN_PATH替换成你自己的路径)
cd $REPO_MAIN_PATH
# 链接之前注册的@tg/map到该仓库
pnpm link @transcodegroup\tg-map

修改一些第三方库的package.json

TypeScript/VSCode默认只会读取package.json中的main字段, 而webpack默认依次读取[brower, module, main], 通常main中都是xxx.umd.js, TypeScript/VSCode并不能使用它的JSDoc生成类型信息, 可以手动把package.json中的main改成和module相同的内容, 以获取智能提示.

以下是推荐手动修改的包:

  1. @google/markerclusterer

修改第三方库的代码

有些不影响功能的小问题, 懒得fork, 直接修改代码来的快点_(:3」∠)_

  1. 目前没有要改的代码

修改VSCode配置

用户配置:

{
    // 统一使用项目中的TS版本
    "typescript.tsdk": "node_modules/typescript/lib",
}

构建

# 修改代码后要重新构建
pnpm run build

其他

pnpm install

Compile and Hot-Reload for Development

pnpm run dev

Type-Check, Compile and Minify for Production

pnpm run build

Lint with ESLint

pnpm run lint

Customize configuration

See Vite Configuration Reference.

参考文档