Skip to content

Commit 60220a5

Browse files
committed
add tsc watch for local server and document olcs import
1 parent 5198dbf commit 60220a5

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CONTRIBUTING.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ npm start
1818
browse http://localhost:1234
1919
```
2020

21+
### OLCesium import
22+
The examples use a compiled version of OLCesium. If you want to use the source code directly you can change the import to '../src/olcs.ts'
23+
24+
```typescript
25+
import OLCesium from 'olcs'; // or '../src/olcs.ts' for source code
26+
```
27+
2128
### The `check` target
2229

2330
```bash

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"doc": "typedoc --name ol-cesium --excludeExternals --out apidoc --entryPoints src/olcs.ts --tsconfig ./tsconfig.json",
1313
"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/",
1414
"prestart": "rm -rf dist; npm run copy-static-dist",
15-
"start": "parcel serve ./examples/index.html --dist-dir dist/examples --no-autoinstall",
15+
"start": "parcel serve ./examples/index.html --dist-dir dist/examples --no-autoinstall & tsc --watch",
1616
"serve-built-examples": "python3 -m http.server --directory dist 12345"
1717
},
1818
"targets": {

0 commit comments

Comments
 (0)