提交 22307362 作者: 方治民

fix: 移除无用依赖

上级 a4c3d4d7
流水线 #444 已失败 于阶段
in 7 秒
......@@ -16,7 +16,6 @@ import { configThemePlugin } from './theme'
import { configSvgIconsPlugin } from './svgSprite'
import { configOptimizePlugin } from './optimize'
import { configAutoImportPlugin } from './autoImport'
import { configMarsCesiumPlugin } from './mars'
export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
const { VITE_USE_MOCK, VITE_LEGACY, VITE_BUILD_COMPRESS, VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE } = viteEnv
......@@ -66,9 +65,6 @@ export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
// vite-plugin-auto-import
vitePlugins.push(configAutoImportPlugin())
// mars3d
vitePlugins.push(configMarsCesiumPlugin())
// The following plugins only work in the production environment
if (isBuild) {
// vite-plugin-imagemin
......
/**
* CesiumJS
* https://github.com/nshen/vite-plugin-cesium
*/
import marsCesium from 'vite-plugin-mars3d'
export function configMarsCesiumPlugin() {
return marsCesium()
}
<p align="center">
<img src="https://muyao1987.gitee.io/cdn/mars3d.cn/logo.png" width="300px" />
</p>
<p align="center">🌎 一款基于WebGL技术实现的三维地球客户端开发平台</p>
<p align="center">
<a target="_black" href="https://www.npmjs.com/package/mars3d">
<img alt="Npm version" src="https://img.shields.io/npm/v/mars3d.svg?style=flat&logo=npm&label=version"/>
</a>
<a target="_black" href="https://www.npmjs.com/package/mars3d">
<img alt="Npm downloads" src="https://img.shields.io/npm/dt/mars3d?style=flat&logo=npm">
</a>
<a target="_black" href="https://github.com/marsgis/mars3d">
<img alt="GitHub stars" src="https://img.shields.io/github/stars/marsgis/mars3d?style=flat&logo=github">
</a>
<a href='https://gitee.com/marsgis/mars3d/stargazers'><img src='https://gitee.com/marsgis/mars3d/badge/star.svg?theme=dark' alt='star'></img></a>
</p>
[**English**](./README_EN.md) |[**中文**](./README.md)
当前仓库包含 SDK 更新日志、和其他仓库导航。
Github:[https://github.com/marsgis/mars3d](https://github.com/marsgis/mars3d)
国内 Gitee:[https://gitee.com/marsgis/mars3d](https://gitee.com/marsgis/mars3d)
## 功能示例
对平台每个功能编写的案例代码,可以阅读每个示例代码来学习各功能,与官网功能示例一致效果。
| 说明 | 教程 | 视频 | Github 源码 | 国内 Gitee 源码 |
| --- | --- | --- | --- | --- |
| 原生 JS 版 | [查看](http://mars3d.cn/dev/guide/project/example-es5.html) | [查看](https://www.bilibili.com/video/BV1Hg411o7Js/) | [mars3d-es5-example](https://github.com/marsgis/mars3d-es5-example) | [mars3d-es5-example](https://gitee.com/marsgis/mars3d-es5-example) |
| Vue 版 | [查看](http://mars3d.cn/dev/guide/project/example-vue.html) | [查看](https://www.bilibili.com/video/BV1PL41177SS/) | [mars3d-vue-example](https://github.com/marsgis/mars3d-vue-example) | [mars3d-vue-example](https://gitee.com/marsgis/mars3d-vue-example) |
| React 版 | [查看](http://mars3d.cn/dev/guide/project/example-react.html) | [查看](https://www.bilibili.com/video/BV1xY4y1t7NR/) | [mars3d-react-example](https://github.com/marsgis/mars3d-react-example) | [mars3d-react-example](https://gitee.com/marsgis/mars3d-react-example) |
## 最简项目模板
提供了面向不同技术栈的最简项目模板,您可以直接使用或参考这些项目模板,了解 SDK 类库在不同技术栈项目中如何引入使用,快速搭建开发自己的项目。
| 说明 | 视频 | Github 源码 | 国内 Gitee 源码 |
| --- | --- | --- | --- |
| 原生 JS 技术栈 | [查看](https://www.bilibili.com/video/BV1za41177ZW/) | [mars3d-es5-template](https://github.com/marsgis/mars3d-es5-template) | [mars3d-es5-template](https://gitee.com/marsgis/mars3d-es5-template) |
| Vue 技术栈 | [查看](https://www.bilibili.com/video/BV17P4y1F7gv/) | [mars3d-vue-template](https://github.com/marsgis/mars3d-vue-template) | [mars3d-vue-template](https://gitee.com/marsgis/mars3d-vue-template) |
| React 技术栈 | [查看](https://www.bilibili.com/video/BV1nZ4y1b7W7/) | [mars3d-react-template](https://github.com/marsgis/mars3d-react-template) | [mars3d-react-template](https://gitee.com/marsgis/mars3d-react-template) |
| Angular 技术栈 | 暂无 | [mars3d-angular-template](https://github.com/marsgis/mars3d-angular-template) | [mars3d-angular-template](https://gitee.com/marsgis/mars3d-angular-template) |
| CS 桌面端程序 | 暂无 | [mars3d-electron](https://github.com/marsgis/mars3d-electron) | [mars3d-electron](https://gitee.com/marsgis/mars3d-electron) |
| APP 移动端程序 | [查看](https://www.bilibili.com/video/BV18F41157qR/) | [mars3d-uni-app](https://github.com/marsgis/mars3d-uni-app) | [mars3d-uni-app](https://gitee.com/marsgis/mars3d-uni-app) |
## 基础项目
基础项目是具备一个 GIS 项目常见功能的项目模板,只用更换数据及叠加业务即可完成项目交付。如果需要更多功能可以考虑购买[付费项目模板](http://mars3d.cn/template.html)
| 说明 | 教程 | 视频 | Github 源码 | 国内 Gitee 源码 |
| --- | --- | --- | --- | --- |
| 基础项目 原生 JS 版 | [查看](http://mars3d.cn/dev/guide/project/jcxm-es5.html) | [查看](https://www.bilibili.com/video/BV1nF41157Rn/) | [mars3d-es5-project](https://github.com/marsgis/mars3d-es5-project) | [mars3d-es5-project](https://gitee.com/marsgis/mars3d-es5-project) |
| 基础项目 Vue 版 | [查看](http://mars3d.cn/dev/guide/project/jcxm-vue.html) | [查看](https://www.bilibili.com/video/BV1JF411q7Ut/) | [mars3d-vue-project](https://github.com/marsgis/mars3d-vue-project) | [mars3d-vue-project](https://gitee.com/marsgis/mars3d-vue-project) |
| 基础项目 Vue 版+admin 管理 | 无 | 无 | [mars3d-vue-project-admin](https://github.com/marsgis/mars3d-vue-project-admin) | [mars3d-vue-project-admin](https://gitee.com/marsgis/mars3d-vue-project-admin) |
| 基础项目 React 版 | [查看](http://mars3d.cn/dev/guide/project/jcxm-react.html) | 暂无 | [mars3d-react-project](https://github.com/marsgis/mars3d-react-project) | [mars3d-react-project](https://gitee.com/marsgis/mars3d-react-project) |
| 三维地球 APP 项目 | [查看](http://mars3d.cn/dev/guide/project/app-vue.html) | [查看](https://www.bilibili.com/video/BV1iY4y1t7jk/) | [付费提供](http://mars3d.cn/details.html?id=app-vue) | [付费提供](http://mars3d.cn/details.html?id=app-vue) |
## 第 3 方平台融合
Mars3D 支持结合 Cesium 相关的各类平台来兼容使用,方便结合不同平台的优点来达到完成各种项目需求。
| 说明 | Github | 国内 Gitee |
| --- | --- | --- |
| 与 supermap 平台融合示例 | [mars3d-link-supermap](https://github.com/marsgis/mars3d-link-supermap) | [mars3d-link-supermap](https://gitee.com/marsgis/mars3d-link-supermap) |
| 与 earthsdk 平台融合示例 | [mars3d-link-earthsdk](https://github.com/marsgis/mars3d-link-earthsdk) | [mars3d-link-earthsdk](https://gitee.com/marsgis/mars3d-link-earthsdk) |
## 其他
| 说明 | Github | 国内 Gitee |
| --- | --- | --- |
| 部分开源插件 | [mars3d-plugin](https://github.com/marsgis/mars3d-plugin) | [mars3d-plugin](https://gitee.com/marsgis/mars3d-plugin) |
## 平台介绍
`Mars3D平台`[火星科技](http://marsgis.cn/)研发的一款基于 WebGL 技术实现的三维客户端开发平台,基于[Cesium](https://cesium.com/cesiumjs/)优化提升与 B/S 架构设计,支持多行业扩展的轻量级高效能 GIS 开发平台,能够免安装、无插件地在浏览器中高效运行,并可快速接入与使用多种 GIS 数据和三维模型,呈现三维空间的可视化,完成平台在不同行业的灵活应用。
## 学习资料
- 开发教程:[http://mars3d.cn/dev/](http://mars3d.cn/dev/)
- API 文档:[http://mars3d.cn/api/](http://mars3d.cn/api/)
- Mars3D 官网:[http://mars3d.cn](http://mars3d.cn)
### 反馈问题
为了方便交流及留存,所有 bug 及建议均统一提交至:[github issues](https://github.com/marsgis/mars3d/issues)[国内 gitee issues](https://gitee.com/marsgis/mars3d/issues)
## 平台相关效果
功能示例: ![image](https://muyao1987.gitee.io/cdn/mars3d.cn/xm/example/1.jpg)
基础项目:[在线体验](http://mars3d.cn/project/es5/jcxm.html)
![image](https://muyao1987.gitee.io/cdn/mars3d.cn/xm/jcxm/1.jpg)
电子沙盘项目:[在线体验](http://mars3d.cn/project/es5/dzsp.html)
![image](https://muyao1987.gitee.io/cdn/mars3d.cn/xm/dzsp/1.jpg)
综合态势项目:[在线体验](http://mars3d.cn/project/es5/theme/login.html)
![image](https://muyao1987.gitee.io/cdn/mars3d.cn/xm/zhts/1.jpg)
## 版权说明
1. Mars3D 平台由[火星科技](http://marsgis.cn/)自主研发,拥有所有权利。
2. 任何个人或组织可以在遵守相关要求下可以免费无限制使用。
{
"name": "mars3d",
"version": "3.3.12",
"description": "Mars3D三维可视化平台",
"keywords": [
"marsgis",
"mars3d",
"cesium",
"webgl",
"gis",
"3dgis",
"webgis"
],
"homepage": "http://mars3d.cn",
"bugs": {
"url": "https://github.com/marsgis/mars3d/issues",
"email": "wh@marsgis.cn"
},
"repository": {
"type": "git",
"url": "https://github.com/marsgis/mars3d.git"
},
"license": "Apache-2.0",
"author": "火星科技",
"main": "dist/mars3d.js",
"types": "dist/mars3d.d.ts",
"files": [
"dist"
],
"scripts": {
"lint": "eslint ./src/**/*.{js,ts} --fix"
},
"dependencies": {
"@turf/turf": "^6.5.0",
"mars3d-cesium": "^1.93.0"
},
"devDependencies": {},
"build": {
"plugin": false,
"globals": {
"@turf/turf": "turf",
"mars3d-cesium": "Cesium"
},
"importCss": {
"mars3d-cesium": "mars3d-cesium/Build/Cesium/Widgets/widgets.css"
},
"minify": "obfuscator"
}
}
......@@ -79,12 +79,6 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
// },
// },
// Turning off brotliSize display can slightly reduce packaging time
brotliSize: false,
chunkSizeWarningLimit: 2000,
commonjsOptions: {
//默认内部只处理了node_modules,需要将"packages/"也标识处理
include: /node_modules|packages/,
},
},
define: {
// setting vue-i18-next
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论