This is a Bower package for amazing Cesium JavaScript library for creating 3D globes and 2D maps in a web browser without a plugin.
The package contains source files from original Source
directory under src
directory and built minified files
from Build/Cesium
directory under dist
directory.
In order to install Cesium with Bower run:
bower install cesium.js
-
Install recent Node.js and Node Package Manager. Using NVM installation script is a preferable way to do this. Git is also required to clone repositories.
-
Clone this repository:
git clone [email protected]:solarpatrol/cesium-bower /path/to/cesium-bower
-
Switch to
dev
branch:git checkout dev
-
Install development dependencies:
cd /path/to/cesium-bower npm install
-
Run update script passing Cesium version to update to (say, to
1.27
):npm run update 1.27.0
This one will do the following steps:
- update version fields in
package.json
file of this repository; - install corresponding version of official Cesium package in
node_modules
; - copy source and build files from Cesium package to
src
anddist
directories; - commit all changes to current (
dev
) branch.
If you get a message like
Bower package is already @1.27.0
but want to continue update anyway then run:
npm run update 1.27.0 -- --force
- update version fields in
-
If you are a maintainer of this repository then merge all changes to
master
branch:git checkout master git merge --no-ff dev -m "Version 1.27.0." git tag -a 1.27.0 -m "Version 1.27.0."
If you are a contributor then create a pull request to
dev
branch.
Before making a pull request, please, be sure that your changes are rebased to dev
branch.