- | Sandcastle |
+ Sandcastle |
Cesium's live code editor and example gallery. Browse examples
highlighting features of the Cesium API and edit and run them
From 75e1e34d7428d190ed90e9e51e5addbe07d1558a Mon Sep 17 00:00:00 2001
From: jjspace <8007967+jjspace@users.noreply.github.com>
Date: Tue, 30 Sep 2025 15:56:45 -0400
Subject: [PATCH 4/9] don't include dev sandcastles in prod
---
packages/sandcastle/sandcastle.config.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/packages/sandcastle/sandcastle.config.js b/packages/sandcastle/sandcastle.config.js
index 19f74d2b23d5..a9e6103e4bdc 100644
--- a/packages/sandcastle/sandcastle.config.js
+++ b/packages/sandcastle/sandcastle.config.js
@@ -1,3 +1,5 @@
+import process from "process";
+
const config = {
root: ".",
sourceUrl: "https://github.com/CesiumGS/cesium/blob/main/packages/sandcastle",
@@ -19,7 +21,7 @@ const config = {
labels: [],
development: false,
},
- includeDevelopment: true,
+ includeDevelopment: !process.env.PROD,
},
};
From 8e75bfc2d94f5224482f0418ccb397fa3923c6b8 Mon Sep 17 00:00:00 2001
From: jjspace <8007967+jjspace@users.noreply.github.com>
Date: Tue, 30 Sep 2025 16:10:06 -0400
Subject: [PATCH 5/9] revert release sandcastle link
---
index.release.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.release.html b/index.release.html
index ef8ad8a45484..0cf60e9f9de2 100644
--- a/index.release.html
+++ b/index.release.html
@@ -90,7 +90,7 @@ Local links
|
- | Sandcastle |
+ Sandcastle |
Cesium's live code editor and example gallery. Browse examples
highlighting features of the Cesium API and edit and run them
From 8aab6dfd199baf5c0f81b0fc52c20de5c4730835 Mon Sep 17 00:00:00 2001
From: jjspace <8007967+jjspace@users.noreply.github.com>
Date: Tue, 30 Sep 2025 16:35:54 -0400
Subject: [PATCH 6/9] deploy new sandcastle in prod
---
.github/workflows/prod.yml | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/prod.yml b/.github/workflows/prod.yml
index baa75bb0d8f3..628d8890ac5e 100644
--- a/.github/workflows/prod.yml
+++ b/.github/workflows/prod.yml
@@ -1,8 +1,8 @@
name: prod
-on:
+on:
push:
- branches:
- - 'cesium.com'
+ branches:
+ - "cesium.com"
jobs:
lint:
runs-on: ubuntu-latest
@@ -11,7 +11,7 @@ jobs:
- name: install node 22
uses: actions/setup-node@v5
with:
- node-version: '22'
+ node-version: "22"
- name: npm install
run: npm install
- name: lint *.js
@@ -36,13 +36,17 @@ jobs:
- name: install node 22
uses: actions/setup-node@v5
with:
- node-version: '22'
+ node-version: "22"
- name: npm install
run: npm install
- name: build website release
run: npm run website-release
- name: build apps
run: npm run build-apps
+ - name: build types
+ run: npm run build-ts
+ - name: build prod sandcastle
+ run: npm run build-prod -w packages/sandcastle -- -l warn
- name: deploy to cesium.com
if: ${{ env.AWS_ACCESS_KEY_ID != '' }}
run: |
@@ -51,4 +55,4 @@ jobs:
aws s3 sync Build/release/ s3://cesium-website/cesiumjs/releases/$(cat package.json | jq -r '.version' | sed 's/\.0$//')/ --cache-control "public, max-age=1800" --delete
aws s3 sync Build/Documentation/ s3://cesium-website/cesiumjs/ref-doc/ --cache-control "public, max-age=1800" --delete
aws s3 sync Build/CesiumViewer/ s3://cesium-website/cesiumjs/cesium-viewer/ --cache-control "public, max-age=1800" --delete
- aws s3 sync Build/Sandcastle/ s3://cesium-sandcastle-website/ --cache-control "public, max-age=1800" --delete
+ aws s3 sync Build/Sandcastle2/ s3://cesium-sandcastle-website/ --cache-control "public, max-age=1800" --delete
From 28719ef9190ea627ec119b9c40730a744fe695aa Mon Sep 17 00:00:00 2001
From: jjspace <8007967+jjspace@users.noreply.github.com>
Date: Tue, 30 Sep 2025 16:52:22 -0400
Subject: [PATCH 7/9] exclude gallery from the zip
---
gulpfile.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/gulpfile.js b/gulpfile.js
index 3108effc626d..21e896ce804a 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -663,6 +663,7 @@ export const makeZip = gulp.series(release, async function createZipFile() {
"!**/*.gitignore",
"!Specs/e2e/*-snapshots/**",
"!Apps/Sandcastle/gallery/development/**",
+ "!Apps/Sandcastle2/**",
],
{
encoding: false,
From cbb08839fe8ff0fba003bbe1713724d5de67ac29 Mon Sep 17 00:00:00 2001
From: jjspace <8007967+jjspace@users.noreply.github.com>
Date: Tue, 30 Sep 2025 17:18:50 -0400
Subject: [PATCH 8/9] backport extra build during website-release from
cesium.com branch
---
gulpfile.js | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/gulpfile.js b/gulpfile.js
index 21e896ce804a..50cddce9cba2 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -447,6 +447,13 @@ export const websiteRelease = gulp.series(
node: false,
});
},
+ function () {
+ return buildCesium({
+ minify: true,
+ removePragmas: true,
+ node: false,
+ });
+ },
combineForSandcastle,
buildDocs,
);
From 74c943dec63a92b2f7745076237d32969dfb176a Mon Sep 17 00:00:00 2001
From: ggetz
Date: Wed, 1 Oct 2025 10:22:58 -0400
Subject: [PATCH 9/9] Update CHANGES.md
---
CHANGES.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/CHANGES.md b/CHANGES.md
index 0afa5f0dbc30..2a55e3800e91 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -2,6 +2,8 @@
## 1.134 - 2025-10-01
+- [Sandcastle](https://sandcastle.cesium.com/) has been updated at `https://sandcastle.cesium.com`! The [legacy Sandcastle app](https://cesium.com/downloads/cesiumjs/releases/1.134/Apps/Sandcastle/index.html) will remain available through November 3, 2025.
+
### @cesium/engine
#### Fixes :wrench:
|