Skip to content

lasalvavida/node-cesium-experimental

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-cesium-experimental

Cesium libraries in CommonJS format for use with Node.js

!!! Experimental !!!

This is not an official release of Cesium and is not guaranteed to be stable.

What is this for?

This library separates Cesium into separate npm modules for node. This means that if you only use the Core library of Cesium, you can get the files you need without including all of Cesium.

Browserify and Webpack

Cesium uses the AMD format for its dependencies in the main release, so npm modules load it using the requirejs module for Node, since Node uses the CommonJS format and doesn't support AMD natively. This can make it difficult to bundle npm modules that depend on Cesium.

This library uses browserify-ftw to put Cesium in a format that node understands and that can be bundled easily.

Usage

Get cesium-core-experimental

npm install cesium-core-experimental --save
var CesiumCore = require('cesium-core-experimental');
var defaultValue = CesiumCore.defaultValue;
var defined = CesiumCore.defined;

See the main Cesium release for additional usage and licensing information.

Build cesium-core-experimental

// Get Cesium
git submodule update --init
// Build Cesium Core
npm install
npm run build-core

About

Experimental top level project for building Cesium libraries in CommonJS format for use with Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published