Steps to build cesium locally from source


I am planning on beginning to modify cesium source code and incorporate WASM modules. I have pulled the code and noticed there are not very clearly laid out build steps for compiling, testing etc.

Does anyone know a resource for this? Also a general overview of the file structure would be much appreciate if there is a blog post or something similar on the subject.

Thank you!

when I run

npm run build
npm start

visit localhost:8080, and try to open the Cesium Viewer link (http://localhost:8080/Apps/CesiumViewer/index.html), I get the following error:

 npm start

> cesium@1.110.0 start
> node server.js

[1/3] Building @cesium/engine...
[2/3] Building @cesium/widgets...
[3/3] Building CesiumJS...
Cesium built in 0.8 seconds.
Cesium development server running locally.  Connect to http://localhost:8080/
ReferenceError: performance is not defined
    at file:///home/shanebenlolo/killmeagain/cesium/scripts/createRoute.js:41:25
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
Error: Failed to generate bundle: index.js
    at serveResult (file:///home/shanebenlolo/killmeagain/cesium/scripts/createRoute.js:21:12)
    at file:///home/shanebenlolo/killmeagain/cesium/scripts/createRoute.js:60:14
    at processTicksAndRejections (internal/process/task_queues.js:95:5)

This was a local issue. I was using Node 14 and it is not supported. updating to Node 18 fixed the problem.