Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0a310c9

Browse filesBrowse files
authored
Merge pull request plotly#3160 from plotly/3159-ci-plot-schema
circleci update plot-schema.json during publish job
2 parents fdcdd22 + a5e979f commit 0a310c9
Copy full SHA for 0a310c9

File tree

Expand file treeCollapse file tree

2 files changed

+22
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+22
-0
lines changed

‎.circleci/config.yml

Copy file name to clipboardExpand all lines: .circleci/config.yml
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ jobs:
130130
- checkout
131131
- attach_workspace:
132132
at: ~/plotly.js
133+
- run:
134+
name: Update plot-schema.json
135+
command: node tasks/bundle_plot_schema.js
133136
- store_artifacts:
134137
path: build/plotly.js
135138
destination: /plotly.js

‎tasks/bundle_plot_schema.js

Copy file name to clipboard
+19Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
var constants = require('./util/constants');
2+
var _bundle = require('./util/browserify_wrapper');
3+
var makeSchema = require('./util/make_schema');
4+
5+
/*
6+
* Trimmed down version of ./bundle.js for CI testing
7+
*
8+
* Outputs:
9+
*
10+
* - plotly-with-meta.js bundle in dist/
11+
* - plot-schema.json in dist/ (for reference)
12+
*/
13+
14+
_bundle(constants.pathToPlotlyIndex, constants.pathToPlotlyDistWithMeta, {
15+
standalone: 'Plotly',
16+
noCompress: true
17+
}, function() {
18+
makeSchema(constants.pathToPlotlyDistWithMeta, constants.pathToSchema)();
19+
});

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.