Commit graph

1796 commits

Author SHA1 Message Date
Christopher Willis-Ford
0fcc248ac1 Add tests for message dispatch system; fix bugs
The tests run using TinyWorker, which emulates web workers on Node.
There are quite a few quirks in that situation due to the differences
between Node and Webpack as well as the differences between TinyWorker
and real Web Workers.

The tests also exposed a few bugs in the dispatch system, which have now
been fixed. Most notably, if a method called through the dispatch system
throws an exception that exception will now be passed back to the
caller. Previously the exception would escape the dispatch system and
the caller would never hear any response at all.
2017-07-21 13:23:52 -07:00
Christopher Willis-Ford
09d3fe330f Implement message dispatch system
This message dispatch system allows a "service" to register itself under
a particular name, and then anyone can call any method on that service
from any context (the main "window" thread or any worker). Return values
are passed back through promise resolution.
2017-07-21 13:22:14 -07:00
Ray Schamp
e249c5c252 Merge pull request #649 from rschamp/travis/fix-deploy
Finish configuring npm deploy
2017-07-19 13:49:27 -04:00
Ray Schamp
e0e10b61c5 Finish configuring npm deploy
More followup fixes on #567, wasn't possible to test npm deployments really.
2017-07-19 13:48:55 -04:00
Ray Schamp
a115d1d51e Merge pull request #648 from rschamp/travis/fix-deploy
Build the vm so we can deploy it
2017-07-19 12:05:28 -04:00
Ray Schamp
7eae7e1957 Build the vm so we can deploy it
Whoops.

Also move the git deploy setup to before_deploy.
2017-07-19 12:04:22 -04:00
Ray Schamp
b4d95cdcaf Merge pull request #647 from rschamp/travis/fix-deploy
Convert multi-entry script to single scalar
2017-07-19 11:55:42 -04:00
Ray Schamp
55d0b2650c Convert multi-entry script to single scalar
Multi-entries aren't supported
https://docs.travis-ci.com/user/deployment/script
2017-07-19 11:54:51 -04:00
Ray Schamp
5ef540be1c Merge pull request #646 from rschamp/travis/fix-deploy
Fix provider 'on' key being converted to 'true'
2017-07-19 10:42:14 -04:00
Ray Schamp
0e11ff1c23 Fix provider 'on' key being converted to 'true' 2017-07-19 10:28:54 -04:00
Paul Kaplan
01ed85facf Merge pull request #641 from paulkaplan/fix-variable-importing
Fix variable import scoping
2017-07-19 10:04:57 -04:00
Ray Schamp
7ce3092875 Merge pull request #567 from rschamp/travis/stages
Use stages rather than travis-after-all to deploy
2017-07-18 16:51:03 -04:00
Paul Kaplan
bd3a29650b Fix variable import scoping 2017-07-17 12:28:44 -04:00
DD Liu
912e7daa81 Merge pull request #636 from fsih/deleteMonitors
Update monitors when deleting or renaming variables
2017-07-17 11:06:29 -04:00
Paul Kaplan
0e33d061fe Merge pull request #633 from paulkaplan/fix-sound-indexing
Fix sound indexing and add tests
2017-07-13 15:08:05 -04:00
Paul Kaplan
eb04fcab57 Merge pull request #634 from paulkaplan/sound-costume-renaming
Add public API for costume and sound renaming
2017-07-13 09:00:19 -04:00
greenkeeper[bot]
c5aa32b5bb chore(package): update promise to version 8.0.1
Closes #613
2017-07-12 20:38:41 +00:00
DD Liu
3722aefb17 fix greater than hat block click activation, and also event activation which was only on half the time 2017-07-12 15:46:23 -04:00
DD Liu
01db5da8ce fix value 2017-07-11 13:08:18 -04:00
DD Liu
4b1307bb11 fix test 2017-07-11 11:51:47 -04:00
DD Liu
7f1f9079e3 support rename variable 2017-07-10 18:29:25 -04:00
Paul Kaplan
a83c0808a0 Add public API for costume and sound renaming with tests 2017-07-07 08:19:32 -04:00
Paul Kaplan
7ec45d9519 Satisfy linter 2017-07-06 17:23:25 -04:00
Paul Kaplan
2ddb6215fd Add tests and fixes for set instrument and play drum 2017-07-06 14:56:46 -04:00
Paul Kaplan
1b6baf8114 Make playSound use one indexing 2017-07-06 14:28:11 -04:00
Paul Kaplan
6fa49b1e7a Merge pull request #629 from marisaleung/develop
ChangeBlock uses id's of variable instead of name.
2017-06-30 08:10:55 -04:00
Chris Willis-Ford
47fc38fd9a Merge pull request #619 from cwillisf/clone-custom-state
Clone custom state
2017-06-27 22:37:30 -07:00
marisaleung
22f87e32f8 ChangeBlock uses id's of variable instead of name. 2017-06-27 16:28:37 -07:00
Ray Schamp
e173a0ae2c Fix NPM_SCRIPT vars 2017-06-27 09:28:56 -04:00
Ray Schamp
3f53c3fd5c Allow condition alone to control release 2017-06-27 09:28:56 -04:00
Ray Schamp
3431fb39c8 Don't run prepublish on install 2017-06-27 09:28:56 -04:00
Ray Schamp
28dae39ddd Use stages instead of travis-after-all
Also, parallelize tap tests
2017-06-27 09:26:40 -04:00
Paul Kaplan
b0fb4f0b55 Merge pull request #614 from marisaleung/develop_cherry-picks
Updated variables and var_fire event listener.
2017-06-23 13:05:03 -04:00
marisaleung
875ccf5b88 Updated variables and var_fire event listener. 2017-06-23 09:57:01 -07:00
Eric Rosenbaum
524d99db65 Merge pull request #621 from ericrosenbaum/feature/remove-most-audio-effects
Remove all audio effects except pitch and pan
2017-06-19 17:11:19 -04:00
Eric Rosenbaum
01f801a2a2 Remove all audio effects except pitch and pan 2017-06-19 14:56:29 -04:00
Christopher Willis-Ford
6275710e47 Add test case for pen state cloning 2017-06-16 16:29:12 -07:00
Christopher Willis-Ford
06d5994a32 Use targetWasCreated event to clone pen state
Remove explicit cloning of `_customState` in favor of smarter,
state-specific cloning.
2017-06-16 14:22:51 -07:00
Christopher Willis-Ford
04871e24d6 Move RenderedTarget.runtime into Target
Some code in `Target` was already assuming a `runtime` property was
available, so this change just makes it official.
2017-06-16 13:16:13 -07:00
DD Liu
b9aefa780f Merge pull request #611 from fsih/refreshWorkspace
Add ability to refresh workspace for current editing target
2017-06-15 16:40:14 -04:00
DD Liu
2fb502fb70 add ability to refresh workspace for current editing target 2017-06-15 11:53:30 -04:00
Ray Schamp
55b4b3fca7 Merge pull request #609 from rschamp/docs/readme-install
Update README for current process
2017-06-15 11:28:24 -04:00
Ray Schamp
f9708b2046 Update README for current process
The README has gotten a bit out of date and inaccurate. Clarify how to work with scratch-vm in the current state of the project.
2017-06-15 11:26:40 -04:00
Paul Kaplan
93bac9ad85 Merge pull request #608 from paulkaplan/unshadow-variable-dropdown
Use variable field instead of input shadow
2017-06-15 10:02:08 -04:00
Chris Willis-Ford
89db8d3d23 Merge pull request #602 from cwillisf/remember-data-format
Remember data format after image or sound import
2017-06-14 14:09:40 -07:00
Ray Schamp
f3cb892df8 Merge pull request #587 from rschamp/bugfix/npm-install
Pin to `latest` for 3.0 modules
2017-06-14 17:04:38 -04:00
Ray Schamp
908c34bcf4 Merge branch 'develop' into bugfix/npm-install 2017-06-14 17:04:19 -04:00
Paul Kaplan
5df4456c4a Use variable field directly 2017-06-14 16:31:29 -04:00
Christopher Willis-Ford
884ba19aab Add support for older SB3 JSON
If the `dataFormat` field is absent, fall back on the older `assetType`
field. That can at least help us tell if something is a vector or bitmap
image, though it doesn't tell us which kind of bitmap.
2017-06-13 14:56:06 -07:00
Christopher Willis-Ford
1bf1808826 Clarify "flattening" step in SB3 roundtrip test 2017-06-13 13:58:34 -07:00