You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[deck.gl API design guidelines](/dev-docs/deckgl-api-guidelines.md)
35
35
36
+
## Testing examples with modified deck.gl source
37
+
38
+
Each example can be run so that it is built against the deck.gl source code in this repo instead of building against the installed version of deck.gl. This enables using the examples to debug the main deck.gl library source.
39
+
40
+
To do so use the `yarn start-local` command present in each example's directory. See [webpack.config.local.js](https://github.com/visgl/deck.gl/blob/master/examples/webpack.config.local.js) for details.
41
+
42
+
### Working with other vis.gl dependencies
43
+
44
+
Deck.gl has a number of dependencies that fall under vis.gl, and there may be times when it is necessary to make a change in one of these.
45
+
Thus for development it is necessary to checkout a copy of such a dependency and make local changes.
46
+
47
+
When running an example using `yarn start-local` you can use local version of [luma.gl](https://github.com/visgl/luma.gl/) or [math.gl](https://github.com/uber-web/math.gl) by appending the `--env.local-luma` or `--env.local-math` option.
48
+
49
+
### Specific module overrides
50
+
51
+
To get the local build of deck.gl to pick up the local code rather than the modules from npm, there are two important config files:
52
+
53
+
-[ocular-dev-tools.config.js](https://github.com/visgl/deck.gl/blob/master/ocular-dev-tools.config.js) - See [Ocular documentation for details](https://uber-web.github.io/docs/dev-tools)
Copy file name to clipboardExpand all lines: examples/webpack.config.local.js
+35-7Lines changed: 35 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,14 @@
4
4
//
5
5
// This enables using the examples to debug the main deck.gl library source
6
6
// without publishing or npm linking, with conveniences such hot reloading etc.
7
+
// To use a local copy of luma.gl or math.gl when using
8
+
// `yarn start-local` use the following options:
9
+
// --env.local-luma
10
+
// --env.local-math
11
+
//
12
+
// To specify more fine-grained overrides you can add to the aliases
13
+
// below. For example if you have the `loaders.gl` repo checked out at the same level as deck.gl and want to work with a local copy of the `mvt` module, you would add the following `alias` to the configuration:
0 commit comments