Skip to content

Commit 177842f

Browse files
authored
Merge pull request #5383 from plotly/test-avoid-function-constructors-in-partial-bundles
Add publish test for avoiding function constructors in non-gl(2d|3d) partial bundles
2 parents 6656ca3 + 3249034 commit 177842f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Diff for: .circleci/config.yml

+3
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ jobs:
166166
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plotly.js
167167
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plotly.min.js
168168
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plot-schema.json
169+
- run:
170+
name: Test bundles
171+
command: npm run no-new-func
169172

170173
workflows:
171174
version: 2

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"watch": "node tasks/watch.js",
3232
"lint": "eslint --version && eslint .",
3333
"lint-fix": "eslint . --fix || true",
34+
"no-new-func": "eslint --no-ignore --no-eslintrc --rule '{no-new-func: error}' $(find dist -type f -iname '*.js' | grep -v plotly-gl* | grep -v plotly-with-meta.* | grep -v plotly.js | grep -v plotly.min.js | grep -v MathJax.js)",
3435
"docker": "node tasks/docker.js",
3536
"pretest": "node tasks/pretest.js",
3637
"test-jasmine": "karma start test/jasmine/karma.conf.js",

0 commit comments

Comments
 (0)