New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please consider adding an "offline" mode for installing wallaby.js #571

Open
tsawan opened this Issue Apr 28, 2016 · 9 comments

Comments

Projects
None yet
5 participants
@tsawan

tsawan commented Apr 28, 2016

Feature request

Please consider adding a configure option so wallaby can work in offline mode. This will help using wallaby on machines with limited/no internet access by manually copying required dependencies.

@ArtemGovorov ArtemGovorov changed the title from Please consider adding an "offline" mode. to Please consider adding an "offline" mode for installing wallaby.js Apr 28, 2016

@ArtemGovorov

This comment has been minimized.

Show comment
Hide comment
@ArtemGovorov

ArtemGovorov Apr 28, 2016

Member

Just to make it clear, wallaby can work without internet access, but to install it the first time the internet may still be required (as it downloads some dependencies, as you know).

Member

ArtemGovorov commented Apr 28, 2016

Just to make it clear, wallaby can work without internet access, but to install it the first time the internet may still be required (as it downloads some dependencies, as you know).

@terwalsh

This comment has been minimized.

Show comment
Hide comment
@terwalsh

terwalsh Jun 8, 2016

Hi Artem, I am behind a corporate firewall that will not allow any outside connections (I know - groan). Is there any way possible to do it manually? I can copy and paste files/dependencies across if it helps. At the moment I am doing a lot of sketching on my laptop with a licensed copy of Wallaby, which is fantastic btw but this is becoming unworkable. Cheers, T

terwalsh commented Jun 8, 2016

Hi Artem, I am behind a corporate firewall that will not allow any outside connections (I know - groan). Is there any way possible to do it manually? I can copy and paste files/dependencies across if it helps. At the moment I am doing a lot of sketching on my laptop with a licensed copy of Wallaby, which is fantastic btw but this is becoming unworkable. Cheers, T

@ArtemGovorov

This comment has been minimized.

Show comment
Hide comment
@ArtemGovorov

ArtemGovorov Jun 8, 2016

Member

@terwalsh

I can copy and paste files/dependencies across if it helps

This may work if your laptop has the same OS as the target machine. What OS are you using and what editor?

Member

ArtemGovorov commented Jun 8, 2016

@terwalsh

I can copy and paste files/dependencies across if it helps

This may work if your laptop has the same OS as the target machine. What OS are you using and what editor?

@terwalsh

This comment has been minimized.

Show comment
Hide comment
@terwalsh

terwalsh Jun 8, 2016

Webstorm with Mac on my laptop and I can use Webstorm but on Windows for work.

I thought I could achieve an offline install as I specified electron in my wallaby.config of the project I'm currently working on and I can install this locally but Wallaby still wants to download phantom. I built a Windows 8 VM this morning hoping to simulate an offline install so I have this ready to go if it helps.

Thanks for the speedy reply Artem!

terwalsh commented Jun 8, 2016

Webstorm with Mac on my laptop and I can use Webstorm but on Windows for work.

I thought I could achieve an offline install as I specified electron in my wallaby.config of the project I'm currently working on and I can install this locally but Wallaby still wants to download phantom. I built a Windows 8 VM this morning hoping to simulate an offline install so I have this ready to go if it helps.

Thanks for the speedy reply Artem!

@ArtemGovorov

This comment has been minimized.

Show comment
Hide comment
@ArtemGovorov

ArtemGovorov Jun 8, 2016

Member

If you are installing Wallaby for JetBrains IDE offline from the scratch on Windows:

  • Download wallaby version file from https://update.wallabyjs.com/wallaby.json,
  • Download the https://s3.amazonaws.com/wallaby-downloads/wallaby-vNNN.zip file, where NNN is latestServer[0] value in the downloaded wallaby.json file,
  • Unzip the downloaded file to the <SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.WebstormX\system\wallaby folder (so that <SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.WebstormX\system\wallaby\wallaby folder is created),
  • Download the latest PhantomJs,
    extract the downloaded archive and place the PhantomJs executable to the <SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.WebstormX\system\wallaby\phantomjs_v2.1.1\ folder,
  • Download the latest node, and place the node executable to the <SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.WebstormX\system\wallaby\node_v8.5.0\ folder (the name of the folder should be as specified above regardless of the actual downloaded node version),
  • Start your IDE and start Wallaby.

If you have Wallaby for JetBrains IDE installed on your Mac, follow these steps:

  • Copy the ~/Library/Caches/WebStormX/wallaby folder (where X is your Webstorm version) to the <SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.WebstormX\system\ folder on your Windows machine.
  • Open the <SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.WebstormX\system\wallaby folder on your Windows machine, then open the phantomjs_v2.1.1 subfolder and rename the phantomjs file to phantomjs.exe. It doesn't matter that we're just renaming OSX built phantom, because you're using Electron runner, but if you ever need Phantom runner, you will need to download the one for Windows and place it there.
  • Open the <SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.WebstormX\system\wallaby folder on your Windows machine, then open the node_v8.5.0 subfolder, delete the node file there, download and copy any node.exe compatible with your OS and with version >= 4.2.2. For example, for 64bit Windows, you may use this one or this one for x86. Note that you may override the node version later in your wallaby Run Configuration settings in WebStorm, but even if you do that, it's important to have some node.exe there.
Member

ArtemGovorov commented Jun 8, 2016

If you are installing Wallaby for JetBrains IDE offline from the scratch on Windows:

  • Download wallaby version file from https://update.wallabyjs.com/wallaby.json,
  • Download the https://s3.amazonaws.com/wallaby-downloads/wallaby-vNNN.zip file, where NNN is latestServer[0] value in the downloaded wallaby.json file,
  • Unzip the downloaded file to the <SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.WebstormX\system\wallaby folder (so that <SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.WebstormX\system\wallaby\wallaby folder is created),
  • Download the latest PhantomJs,
    extract the downloaded archive and place the PhantomJs executable to the <SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.WebstormX\system\wallaby\phantomjs_v2.1.1\ folder,
  • Download the latest node, and place the node executable to the <SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.WebstormX\system\wallaby\node_v8.5.0\ folder (the name of the folder should be as specified above regardless of the actual downloaded node version),
  • Start your IDE and start Wallaby.

If you have Wallaby for JetBrains IDE installed on your Mac, follow these steps:

  • Copy the ~/Library/Caches/WebStormX/wallaby folder (where X is your Webstorm version) to the <SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.WebstormX\system\ folder on your Windows machine.
  • Open the <SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.WebstormX\system\wallaby folder on your Windows machine, then open the phantomjs_v2.1.1 subfolder and rename the phantomjs file to phantomjs.exe. It doesn't matter that we're just renaming OSX built phantom, because you're using Electron runner, but if you ever need Phantom runner, you will need to download the one for Windows and place it there.
  • Open the <SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.WebstormX\system\wallaby folder on your Windows machine, then open the node_v8.5.0 subfolder, delete the node file there, download and copy any node.exe compatible with your OS and with version >= 4.2.2. For example, for 64bit Windows, you may use this one or this one for x86. Note that you may override the node version later in your wallaby Run Configuration settings in WebStorm, but even if you do that, it's important to have some node.exe there.
@terwalsh

This comment has been minimized.

Show comment
Hide comment
@terwalsh

terwalsh Jun 8, 2016

Hey Artem, this works a treat. Thank you so much for your prompt assistance! T

terwalsh commented Jun 8, 2016

Hey Artem, this works a treat. Thank you so much for your prompt assistance! T

@andreashoffmann

This comment has been minimized.

Show comment
Hide comment
@andreashoffmann

andreashoffmann Jul 26, 2016

Hi Artem,

I have the same problem in a corporate environment using Visual Studio 2013/2015. Do you have some instructions for that, too?

THX

andreashoffmann commented Jul 26, 2016

Hi Artem,

I have the same problem in a corporate environment using Visual Studio 2013/2015. Do you have some instructions for that, too?

THX

@ArtemGovorov

This comment has been minimized.

Show comment
Hide comment
@ArtemGovorov

ArtemGovorov Jul 27, 2016

Member

@andreashoffmann Should be a bit easier on Windows:

  • Install wallaby extension in some unrestricted environment on Windows for Visual Studio 2013/2015/2017, and run it at least once on any project, so it downloads all the required dependencies.
  • Install wallaby extension in the restricted environment. Copy the <SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.wallaby folder from the unrestricted environment to the corresponding folder in the restricted environment.
Member

ArtemGovorov commented Jul 27, 2016

@andreashoffmann Should be a bit easier on Windows:

  • Install wallaby extension in some unrestricted environment on Windows for Visual Studio 2013/2015/2017, and run it at least once on any project, so it downloads all the required dependencies.
  • Install wallaby extension in the restricted environment. Copy the <SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.wallaby folder from the unrestricted environment to the corresponding folder in the restricted environment.
@kubal5003

This comment has been minimized.

Show comment
Hide comment
@kubal5003

kubal5003 Aug 13, 2018

In corporate network a good solution is to configure Fiddler proxy to forward the traffic to a locally downloaded file (Autoresponder rules). This solution does work if you're able to get those files somehow before, which for me was not really a problem.

kubal5003 commented Aug 13, 2018

In corporate network a good solution is to configure Fiddler proxy to forward the traffic to a locally downloaded file (Autoresponder rules). This solution does work if you're able to get those files somehow before, which for me was not really a problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment