Forum Discussion

Jake_N's avatar
Jake_N
Mentor
7 years ago

Is there a local version of Studio we can view things on?

Hey guys. Is there a way we can view the SDK studio plugin locally before submitting the plugin to the studio environment. I have a VMWare Linux CentOS environment but each change can take up to 5-10 mins to submit depending on the day.

Are there any suggestions? Otherwise, I will keep editing things directly into the Studio user interface, which takes just as long to save things.

7 Replies

  • Jake_N  -

    Unfortunately, you can not view the changes before submitting the plugin, you must need to submit in order to view changes. However, you can view the CSS changes without submitting the plugin. 

  • Jake_N's avatar
    Jake_N
    Mentor
    7 years ago

    Are you able to point me to the source where I can view the CSS changes locally?

  • luk's avatar
    luk
    Boss
    7 years ago

    Jake_N Besides making Lithium look for your locally compiled CSS in Studio (as TariqHussain wrote above) you will need to tell the SDK to serve/compile the SASS with

    li serve-sass

    that is because your skin usually depends on other skins (e.g. responsive peak, base, whatever) that you do not automatically download with

    li export-studio-plugin
    // or
    li export-plugin

    see here: https://community.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=responsive#l::{"p":"%2Fsection-developerguide.html","h":"%23localSkinDev"}

    To speed up the time it takes to submit the plugin, I would recommend you to only export the stuff you often work on, e.g. limit the plugin points as much as you can, the more is inside the plugin each time it is submitted, the longer it takes...this can be done with the points flag, e.g.

    li export-studio-plugin --points "skin,component,macro"

    if you want to keep track of everything with version control I'd advise you to create a separate "develop" branch where you to the above, within the "master" branch or "full" branch you can have a complete export of studio still... but limiting your plugin points will help a bit with the speed issues...as you say, it doesn't make much of a difference if you save trough studio or submit an SDK plugin, both are painfully slow...

    Guess you know the SDK docs already, but here they are anyways =): https://community.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=sdk

  • luk

    I tried to do Local Responsive Development Options through sdk  as mentioned in this post  and also as per the sdk document. But i am not able to see the UI properly as it is when run on studio. Need help to get the proper results.

     screen shot reference. 

     

     

  • luk's avatar
    luk
    Boss
    7 years ago

    Yap, that's how a community looks without CSS =)...therefore: I do assume you enabled "local CSS" in the SDK tab in studio right? So it's looking for a CSS file from your //localhost:<someport>, can you verify that?

    If that's the case it means either the local CSS URL you set in studio is wrong (port?) or your local CSS is not compiled for some reason, did you run

    li serve-sass

    ?

  • luk

    Yes i did, please find the screenshots what i did, correct me if anything went wrong.responive_local_sdK_setup.JPG

    responive_local_sdK_setup1.JPG

    responive_local_sdK_setup2.JPGAfter i used my dev community url to run and found what i said earlier.