-
Notifications
You must be signed in to change notification settings - Fork 5
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
Introduce tests & CI #15
Merged
Changes from 6 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
9b3f86c
Introduce tests
dy aff219d
Add travis, baselines
dy bf01db0
Fix readme
dy 0339a48
Fix test ref
dy 58f7aa6
Separate tests
dy ca2d23f
Increase threshold
dy 266fb25
Add bundling instead of bubleify
dy eed634b
Add bundling
dy 8502d26
Bundle glslify as well
dy 8b1b250
Fix typo
dy 74a1e44
Fix palette issue; Add test
dy 4b5a08f
Update tester
dy 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 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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
index.html | ||
preview.png | ||
fixture | ||
baseline |
This file contains 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,17 @@ | ||
language: node_js | ||
os: linux | ||
sudo: required | ||
dist: trusty | ||
addons: | ||
apt: | ||
packages: | ||
- libxi-dev | ||
- mesa-utils | ||
- xvfb | ||
- libgl1-mesa-dri | ||
- libglapi-mesa | ||
- libosmesa6 | ||
node_js: | ||
- '10' | ||
before_script: | ||
- export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 |
---|---|---|
|
@@ -4,7 +4,8 @@ | |
"description": "Scatter2d plot built with regl", | ||
"main": "./index.js", | ||
"scripts": { | ||
"test": "budo test", | ||
"test": "node test", | ||
"test-browser": "budo test", | ||
"build": "browserify test.js -g bubleify | indexhtmlify | metadataify | github-cornerify | mobilify > gh-pages/no-snapping.html" | ||
}, | ||
"repository": { | ||
|
@@ -17,8 +18,7 @@ | |
], | ||
"browserify": { | ||
"transform": [ | ||
"glslify", | ||
"bubleify" | ||
"glslify" | ||
] | ||
}, | ||
"author": "Dima Yv <[email protected]>", | ||
|
@@ -30,12 +30,12 @@ | |
"dependencies": { | ||
"array-range": "^1.0.1", | ||
"array-rearrange": "^2.2.2", | ||
"bubleify": "^1.0.0", | ||
"clamp": "^1.0.1", | ||
"color-id": "^1.1.0", | ||
"color-normalize": "^1.0.3", | ||
"flatten-vertex-data": "^1.0.0", | ||
"glslify": "^6.1.1", | ||
"glslify": "^7.0.0", | ||
"image-palette": "^2.1.0", | ||
"is-iexplorer": "^1.0.0", | ||
"object-assign": "^4.1.1", | ||
"parse-rect": "^1.1.0", | ||
|
@@ -46,22 +46,16 @@ | |
}, | ||
"devDependencies": { | ||
"array-bounds": "^1.0.1", | ||
"bitmap-sdf": "^1.0.1", | ||
"canvas-fit": "^1.5.0", | ||
"draw-svg-path": "^1.0.0", | ||
"enable-mobile": "^1.0.7", | ||
"fps-indicator": "^1.1.2", | ||
"gauss-random": "^1.0.1", | ||
"gl": "^4.1.1", | ||
"image-equal": "^4.1.2", | ||
"image-output": "^2.2.3", | ||
"image-pixels": "^2.2.0", | ||
"mobilify": "^1.0.1", | ||
"mouse-change": "^1.4.0", | ||
"mouse-wheel": "^1.2.0", | ||
"nanoraf": "^3.0.1", | ||
"next-pow-2": "^1.0.0", | ||
"nice-color-palettes": "^2.0.0", | ||
"normalize-svg-coords": "^1.0.7", | ||
"pan-zoom": "^2.0.0", | ||
"parse-svg-path": "^0.1.2", | ||
"regl": "^1.3.0", | ||
"svg-path-bounds": "^1.0.1" | ||
"seed-random": "^2.2.0", | ||
"tape": "^4.9.1" | ||
} | ||
} |
This file contains 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
Oops, something went wrong.
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.
Hmm. You no longer convert es6 -> es5?
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.
bubleify does not do async/await bublejs/buble#125, and seems there is no more maintenance.
I wished there was a way for browserify to indicate this transform for main export, but ignore that for running tests.
Probably I should include babelify. Or just simply rewrite the thing in ES5, that is not a lot of hassle. Rollup maybe?