-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Create vendor folder and fresh dist as a target only without extras including mathjax #5487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
86c6e10
move dist/extras and dist/topojson to vendor folder
archmoj 7a99bf8
ignore vendor folder in eslint
archmoj e03aac2
add script to copy vendor over to dist
archmoj bd3f44a
run vendor_to_dist in preporcess before preprocess.js
archmoj 0a38963
use vendor in tasks
archmoj d981b3d
use vendor in tests
archmoj 198d46d
provide dist_readme at root, clear dist and do not commit dist
archmoj ef081bf
remove require js fixture - for now
archmoj a45bff4
use build folder for plotly.js.min for jasmine test
archmoj 3cb18e3
keep cibuild for image test in build - do not pollute dist
archmoj af1f032
run duplicate key test last
archmoj 335e6b4
specify node options for no-dup-keys test in config.yml
archmoj 2f80ee5
move sane-topojson to dev-dependencies
archmoj fd427ec
bring back dist folder without extras and mathjax
archmoj 0642fe8
replace vendor_to_dist shell script with add empty_dist.js and topojs…
archmoj 3781b57
no longer need to exclude mathjax in no-new-func test
archmoj 80d3090
add a publish test for requirejs
archmoj 3fd1534
update stats task to point to where to find mathjax files
archmoj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
var JSDOM = require('jsdom').JSDOM; | ||
global.document = new JSDOM('<!DOCTYPE html><head></head><html><body></body></html>').window.document; | ||
global.window = document.defaultView; | ||
global.window.document = global.document; | ||
global.self = global.window; | ||
global.Blob = global.window.Blob; | ||
global.DOMParser = global.window.DOMParser; | ||
global.getComputedStyle = global.window.getComputedStyle; | ||
global.window.URL.createObjectURL = function() {}; | ||
|
||
// see: Building node modules with AMD or RequireJS https://requirejs.org/docs/node.html | ||
if(typeof define !== 'function') { | ||
var define = require('amdefine')(module); | ||
} | ||
|
||
define(function(require) { | ||
var plotly = require('../dist/plotly.min.js'); | ||
|
||
if(plotly) { | ||
console.log(plotly); | ||
} else { | ||
console.error('Error: loading with requirejs'); | ||
} | ||
|
||
// The value returned from the function is | ||
// used as the module export visible to Node. | ||
return function() {}; | ||
}); |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://www.npmjs.com/package/canvas