uncompressed Javascript

429 views
Skip to first unread message

rbu...@nfbconsulting.com

unread,
Apr 18, 2018, 12:32:10 PM4/18/18
to Blockly
I've beautified  the unminified Javascript file and I'm having a bit of trouble deciphering it. I'm trying to take pieces of the script for a similar language. Does anyone have a copy of the unminified javascript by chance? I didn't see it anywhere on the github repo or docs.

Warmly,

Ryan Busby

Andrew n marshall

unread,
Apr 18, 2018, 1:05:26 PM4/18/18
to blo...@googlegroups.com
blockly_compress.js is composed of all the files in core.
blocks_compressed.js is composed of all the files in blocks.
Each of the generators (javascript_compressed.js, etc) comes from files in generators.

--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ryan Busby

unread,
Apr 18, 2018, 2:04:38 PM4/18/18
to blo...@googlegroups.com
Andrew,


Thanks for your quick response. It appears what I'm trying to do is on blocks rather than Javascript. I'm trying to prefix all variable names with a '$'. It appears that that might exists in  variables however I tried commenting out parts and it still works. Would you by chance know where to look for that?

Warmly,

Ryan Busby
--

Ryan Busby Software Engineer

Description: Description: Description: Description: NFB Consulting Logo

2501 East 28th Street  Suite 111  Signal Hill, CA 90755

310.526.3425  f 310.405.0838

gbe...@nfbconsulting.com www.nfbconsulting.com

Please consider the environment before printing this e-mail.

Important Confidentiality Notice: This email is intended for the use of the addressee(s) only and may contain privileged, confidential, or proprietary information that is exempt from disclosure under law.  If you have received this message in error, please inform us promptly by reply e-mail, then delete the e-mail, and destroy any printed copy.  Thank you for your cooperation.

picklesrus

unread,
Apr 18, 2018, 2:38:40 PM4/18/18
to Blockly
What is your underlying setup for Blockly?  If you are changing the file you pointed to, but including blocks_compressed.js in your html file, you won't see your changes since there is a build step to make blocks_compressed.  See https://developers.google.com/blockly/guides/modify/web/building

-picklesrus


On Wednesday, April 18, 2018 at 2:04:38 PM UTC-4, Ryan Busby wrote:
Andrew,


Thanks for your quick response. It appears what I'm trying to do is on blocks rather than Javascript. I'm trying to prefix all variable names with a '$'. It appears that that might exists in  variables however I tried commenting out parts and it still works. Would you by chance know where to look for that?

Warmly,

Ryan Busby
On Wed, Apr 18, 2018 at 10:05 AM, Andrew n marshall <a...@anm.me> wrote:
blockly_compress.js is composed of all the files in core.
blocks_compressed.js is composed of all the files in blocks.
Each of the generators (javascript_compressed.js, etc) comes from files in generators.
On Wed, Apr 18, 2018 at 9:32 AM, <rbu...@nfbconsulting.com> wrote:
I've beautified  the unminified Javascript file and I'm having a bit of trouble deciphering it. I'm trying to take pieces of the script for a similar language. Does anyone have a copy of the unminified javascript by chance? I didn't see it anywhere on the github repo or docs.

Warmly,

Ryan Busby

--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Ryan Busby

unread,
Apr 18, 2018, 2:49:48 PM4/18/18
to blo...@googlegroups.com
Picklesrus,

My underlying setup consists of a copy of the demos/code folder and I'm modifying a locally sourced blocks file.

  <script src="./scripts/blockly_compressed.js"></script>
  <!-- <script src="./scripts/blocks_compressed.js"></script> -->
   <script src="./scripts/blocks_uncompressed.js"></script>
  <!-- <script src="./scripts/javascript_compressed.js"></script> -->
    <script src="./scripts/javascript_uncompressed.js"></script>


Warmly,


Ryan Busby

To unsubscribe from this group and stop receiving emails from it, send an email to blockly+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

picklesrus

unread,
Apr 18, 2018, 5:01:24 PM4/18/18
to Blockly
Are you making your changes directly to blocks_uncompressed.js?  If not, you'll need to run the build script mentioned on this page:  https://developers.google.com/blockly/guides/modify/web/building.  To avoid the compilation step during development, you can also replace your <script src="./scripts/blocks_uncompressed.js"></script> with the individual block files as described in this section: https://developers.google.com/blockly/guides/modify/web/building#blocks
Reply all
Reply to author
Forward
0 new messages