Creating a new project takes 8-10 minutes. The first prepare, build and deploy may take up to 25-30 minutes. Even when the app is already running, a refresh and restart takes 3-6 minutes. I am spending the best of my time with merely waiting for the changes to appear.
It’s NOT the emulator, because I am using a real device. (Got to emphasize it because I already got a lot of answers on how to speed up my emulator… no, there is NO emulator!)
It’s also not the complexity of the project because it’s a blank Hello World project.
I tried turning off the antivirus. It’s also not my Internet connection speed. I am using an USB cable.
Here are some parameters:
tns version: 3.3.1 Java JRE version: 1.8.0 OS: Windows 7 Home 64-bit CPU: Intel B940, 2 GHz RAM: 8 GB Phone: Samsung J-120W Android version: 6.0.1, stock ROM
I just measured how long it takes to run a fresh, new project.
tns prepare android took 15:03 minutes after
tns-android was installed. Granted, it has to install some stuff, but this still seems a bit excessive.
tns build android took 16:18 minutes.
tns deploy android took another 03:55 minutes.
All together this was 34 minutes and 16 seconds, which is really terrible.
After that I tried
tns run android and it took another 5 minutes to finish.
When I change the code,
tns does a full rebuild and restarts the app on the device. Probably that’s the problem, but how to prevent this? I don’t have hours to fix a simple CSS misalignment just because the compiler goes throught the entire app every time I press a key.