cesium-in-use
cesium-in-use copied to clipboard
useful cesium development environment
常用的 cesium 开发环境
刚开始使用的 cesium 踩过的坑,希望对你有用
:tada: Cesium国内镜像源
https://gitee.com/amluck/cesiumGS 由于使用Cesium源码比较频繁,用gitee搞了一个镜像,一周内会手动同步3-5次
:rocket: 更新
20200708
- Cesium版本更新到了1.71.0
- 部分依赖包的版本更新
分支介绍
不同的分支代表不同的环境
1. webpack
参照 cesium 官方 GitHub 库cesium-webpack-example ,添加了@znemz/cesium-navigation。
开箱即用
git clone -b webpack https://github.com/amluck/cesium-in-use.git
npm install
npm start
脚本介绍
-
npm start
- Runs a webpack build withwebpack.config.js
and starts a development server -
npm run build
- Runs a webpack build withwebpack.config.js
-
npm run release
- Runs an optimized webpack build withwebpack.release.config.js
-
npm run serve-release
- Runs an optimized webpack build withwebpack.release.config.js
and starts a development server
2. vuecli2
使用Vue Cli 2
构建,工程使用了 eslint+prettier
进行代码格式化
开箱即用
git clone -b vuecli2 https://github.com/amluck/cesium-in-use.git
npm install
npm run dev
脚本介绍
-
npm run dev
- Runs a serve with hot reload atlocalhost:8080
-
npm run build
- Build for production with minification -
npm run lint
- Lint code by eslint
3. vuecli3+
使用Vue Cli 4.05
构建,工程使用了 eslint+prettier
进行代码格式化
开箱即用
git clone -b vuecli3+ https://github.com/amluck/cesium-in-use.git
yarn install
yarn serve
脚本介绍
-
yarn serve
- Runs a serve with hot reload atlocalhost:9099
-
yarn build
- Build for production with minification -
yarn lint
- Lint code by eslint