How to avoid ./skulpt.py dist command every time I make change to the src/lib folder

40 views
Skip to first unread message

Novice Programmer

unread,
Oct 22, 2016, 1:57:22 PM10/22/16
to Skulpt

Hi,

I have a question regarding building Skulpt.
I created a simple module which does basic maths calculation. I created a new JS module file in "Skulpt/src/lib" as instructed in the documents. However, every time I make change to the file I have to rebuild the whole program by navigating to the repository and running ./skulpt.py dist.


This tends to take a minute or two which can be annoying as I am constantly changing and adding new functions and they need to be tested.
Is there anyway which I can do to avoid building the whole program every time I modify the source code or add anything? Apologise in advance if this question has been answered before.

Thanks

Brad Miller

unread,
Oct 23, 2016, 3:26:31 PM10/23/16
to sku...@googlegroups.com
The most efficient is probably to  have your test code in a .py file.  then you can simply ./skulpt.py run mytestfile.py    without need to rebuild the dist.  If you have created a webpage and are linking to the files in dist, then a rebuild will always be necessary.

Brad

Bradley Miller, PhD
Professor, Dept. Chair, Computer Science, Data Science
Luther College
Founder, Runestone Interactive
Blog: A Reputable Journal

--

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

Muthukrishnan Tr

unread,
Mar 8, 2019, 2:57:34 AM3/8/19
to Skulpt
Hi,

I have integrated Skulpt editor in my project. I'm using Visual Studio 2017 to develop a project. As of now, I have created Skulpt/src/lib/test.py file manually. But I want this test.py file to include in skulpt-stdlib.js file dynamically. How to do this ?? Please help me.

Thanks,
MuthuTR
Reply all
Reply to author
Forward
0 new messages