blockpy-edu / blockpy

Blockly that's more Python than JavaScript, powered with Skulpt
Apache License 2.0
391 stars 130 forks source link

How to build skulpt-pedal.js skulpt-curriculum-ctvt.js and skulpt-curriculum-sneks.js? #106

Closed alexwenbj closed 3 years ago

alexwenbj commented 3 years ago

How to build skulpt-pedal.js/skulpt-curriculum-ctvt.js/skulpt-curriculum-sneks.js?I ran the npm run dev in blockpy folder,but can not get these 3 files. Thank you.

lukesg08 commented 3 years ago

So you should actually run npm run devbuild in the skulpt directory, not the blockpy directory. And you need to specify the path to your directories pedal, curriculum-ctvt, and curriculum-sneks. You'll need to download the directories for those repos separately as well. Curriculum-ctvt is at https://github.com/pedal-edu/curriculum-ctvt, curriculum-sneks is at https://github.com/pedal-edu/curriculum-sneks, and pedal is at https://github.com/pedal-edu/pedal.

acbart commented 3 years ago

For convenience, the latest compiled version of the extra files you need are here: dependencies.zip

acbart commented 3 years ago

Long term, we need a more trivial way to get the latest version of those files; I manually composed that zip file, which is a little silly.

acbart commented 3 years ago

Oh and just to clarify something confusing:

You need to run npm run devbuild in the Skulpt directory to build the skulpt files. If you are making modifications to the BlockPy client, you also run npm run dev in the Blockpy directory to have it rebuild itself.

alexwenbj commented 3 years ago

Thank you. @acbart @lukesg08

yaohuarun commented 2 years ago

pedal

how to specify the path to the directories pedal, curriculum-ctvt, and curriculum-sneks?

Utilitycoder commented 1 year ago

I can't seem to get blockpy to run locally. I have tried all the methods suggested here but none is working yet. How do I specify path to pedal, curriculum-ctvt, and curriculum-sneks?

lukesg08 commented 1 year ago

Have you followed the instructions here: https://github.com/blockpy-edu/blockpy? While earlier in this thread I said that you need to specify the file path, it's more of you need to make sure your directory structure ends up like in the installation instructions.

Utilitycoder commented 1 year ago

Yes I did. What I understand from the installation instructions is that blockpy-edu and pedal-edu should be subdirectories in a directory. I have done that and ran skulpt in the blockpy-edu directory.

Here's what I got after following the instruction:

Output after running skulpt and blockpy