Skip to content

Commit

Permalink
Merge pull request #3160 from plotly/3159-ci-plot-schema
Browse files Browse the repository at this point in the history
circleci update plot-schema.json during publish job
  • Loading branch information
antoinerg authored Oct 25, 2018
2 parents fdcdd22 + a5e979f commit 0a310c9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ jobs:
- checkout
- attach_workspace:
at: ~/plotly.js
- run:
name: Update plot-schema.json
command: node tasks/bundle_plot_schema.js
- store_artifacts:
path: build/plotly.js
destination: /plotly.js
Expand Down
19 changes: 19 additions & 0 deletions tasks/bundle_plot_schema.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
var constants = require('./util/constants');
var _bundle = require('./util/browserify_wrapper');
var makeSchema = require('./util/make_schema');

/*
* Trimmed down version of ./bundle.js for CI testing
*
* Outputs:
*
* - plotly-with-meta.js bundle in dist/
* - plot-schema.json in dist/ (for reference)
*/

_bundle(constants.pathToPlotlyIndex, constants.pathToPlotlyDistWithMeta, {
standalone: 'Plotly',
noCompress: true
}, function() {
makeSchema(constants.pathToPlotlyDistWithMeta, constants.pathToSchema)();
});

0 comments on commit 0a310c9

Please sign in to comment.