From b76a0c84a978d6d005acfd54c8527319406b5db8 Mon Sep 17 00:00:00 2001 From: AlitaBernachot Date: Thu, 4 Jul 2024 14:40:32 +0200 Subject: [PATCH] fix: add cmd for codesandbox in package.json --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c67fcbbeb..8de7fd828 100644 --- a/package.json +++ b/package.json @@ -4,14 +4,14 @@ "description": "OpenLayers Cesium integration and plugin library", "scripts": { "test": "node --enable-source-maps --import @swc-node/register/esm-register --test src/olcs/*.test.ts", - "build-examples": "rm -rf dist; parcel build --dist-dir dist/examples && npm run copy-static-dist", - "build-examples-sandbox": "rm -rf dist; parcel build; mkdir -p dist/examples/node_modules/ol; mkdir -p dist/examples/node_modules/cesium/Build/; mkdir -p dist/examples/rawjs/; cp -r examples/* dist/examples/rawjs; cp examples/inject_ol_cesium.js dist/examples/; cp node_modules/ol/ol.css dist/examples/node_modules/ol/; cp -R node_modules/cesium/Build/CesiumUnminified node_modules/cesium/Build/Cesium dist/examples/node_modules/cesium/Build/; cp -R examples/data dist/examples/", + "build-examples": "rm -rf dist; parcel build --dist-dir dist/examples && npm run copy-static-dist && npm run copy-rawjs-sandbox", "prepare": "tsc --pretty && node buildtools/fix_paths_recast.js; npm run doc", "typecheck": "tsc --pretty --noEmit", "lint": "eslint src buildtools examples", "checks": "npm run lint && npm run typecheck", "doc": "typedoc --name ol-cesium --excludeExternals --out apidoc --entryPoints src/olcs.ts --tsconfig ./tsconfig.json", "copy-static-dist": "mkdir -p dist/examples/node_modules/ol; mkdir -p dist/examples/node_modules/cesium/Build/; cp examples/inject_ol_cesium.js dist/examples/; cp node_modules/ol/ol.css dist/examples/node_modules/ol/; cp -R node_modules/cesium/Build/CesiumUnminified node_modules/cesium/Build/Cesium dist/examples/node_modules/cesium/Build/; cp -R examples/data dist/examples/", + "copy-rawjs-sandbox": "mkdir -p dist/examples/rawjs/; cp -r examples/* dist/examples/rawjs; ", "prestart": "rm -rf dist; npm run copy-static-dist", "start": "parcel serve ./examples/index.html --dist-dir dist/examples --no-autoinstall & tsc --watch", "serve-built-examples": "python3 -m http.server --directory dist 12345"