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
This downloads new versions of `plot-schema.json` and `plotly.min.js` from the `plotly/plotly.js` GitHub repository
276
-
and places them in `plotly/package_data`.
277
-
It then regenerates all of the `graph_objs` classes based on the new schema,
278
-
and finally runs `npm install` in `js/` to refresh `js/package-lock.json` against the new `plotly.js`.
279
-
Commit the updated `js/package-lock.json` along with the regenerated files.
276
+
and places them in `codegen/resources/` and `plotly/package_data/`, respectively.
280
277
281
-
The JupyterLab extension and FigureWidget bundles in `plotly/labextension` and `plotly/package_data/widgetbundle.js`
282
-
are rebuilt as part of the release flow (see [RELEASE.md](RELEASE.md)) rather than on every plotly.js bump.
278
+
It then does the following:
279
+
- Regenerates all of the `graph_objs` classes based on the new schema
280
+
- Runs `npm install` in `js/`to refresh `js/package-lock.json` against the new `plotly.js`
281
+
- Runs `npm run build` to rebuild the JupyterLab extension and FigureWidget bundles in `plotly/labextension` and `plotly/package_data/widgetbundle.js`.
283
282
284
-
If you need to skip the `npm install` step entirely (e.g. `npm` isn't available),
283
+
Commit the updated files under `js/`, `plotly/graph_objs/`, `plotly/offline/``codegen/resources/`, and `plotly/package_data/`.
284
+
285
+
If you need to skip the `npm` steps entirely (e.g. `npm` isn't available),
285
286
set the `SKIP_NPM=1` environment variable:
286
287
287
288
```bash
288
289
SKIP_NPM=1 python commands.py updateplotlyjs
289
290
```
290
291
291
-
If you do skip it, you'll need to run `npm install` in `js/` yourself before committing so the lockfile stays in sync.
292
+
If you do skip it, you'll need to find a way to manually run `npm install && npm run build` in `js/` before committing,
293
+
so that the lockfile and build artifacts stay in sync with `js/package.json`.
0 commit comments