Skip to content

Commit 0a310c9

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

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.circleci/config.yml

+3
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

+19
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)