Please consider adding an "offline" mode for installing wallaby.js
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.
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).
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
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?
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!
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\wallabyfolder (so that<SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.WebstormX\system\wallaby\wallabyfolder 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/wallabyfolder (whereXis 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\wallabyfolder on your Windows machine, then open thephantomjs_v2.1.1subfolder and rename thephantomjsfile tophantomjs.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\wallabyfolder on your Windows machine, then open thenode_v8.5.0subfolder, delete thenodefile 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.
Hey Artem, this works a treat. Thank you so much for your prompt assistance! T
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 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>\.wallabyfolder from the unrestricted environment to the corresponding folder in the restricted environment.
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.
We have no plans to add a separate offline installation kit, but instructions for offline installation are detailed in our docs.