diff --git a/.circleci/config.yml b/.circleci/config.yml index 65117ffe925..d90a808532f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -131,24 +131,28 @@ jobs: - attach_workspace: at: ~/plotly.js - run: - name: Update plot-schema.json - command: node tasks/bundle_plot_schema.js + name: Build dist/ + command: npm run build - store_artifacts: - path: build/plotly.js - destination: /plotly.js - - store_artifacts: - path: dist/plotly.min.js - destination: /plotly.min.js + path: dist + destination: dist + - run: + name: Pack tarball + command: | + npm pack + version=$(node -e "console.log(require('./package.json').version)") + mv plotly.js-$version.tgz plotly.js.tgz - store_artifacts: - path: dist/plot-schema.json - destination: /plot-schema.json + path: plotly.js.tgz + destination: /plotly.js.tgz - run: name: Show URLs to build files command: | PROJECT_NUM=45646037 - echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/plotly.js - echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/plotly.min.js - echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/plot-schema.json + echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/plotly.js.tgz + echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plotly.js + echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plotly.min.js + echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plot-schema.json workflows: version: 2 diff --git a/tasks/bundle_plot_schema.js b/tasks/bundle_plot_schema.js deleted file mode 100644 index 6a5aa71bd5b..00000000000 --- a/tasks/bundle_plot_schema.js +++ /dev/null @@ -1,19 +0,0 @@ -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)(); -});