12-22-2020, 11:21 AM
In the git repo dir other/build is a manual for how to use gulp for several scenarios.
You can even do the frontend development on your windows machine and start a local web server with gulp, backend calls are then directed to the pi (al least if everyhthing is setup correctly ...).
Or you can do it local on the pi.
Under Windows I recomment to use mobaxterm in combination with Visual Code for either local development or using the pi as remote target.
You can then edit the files directly on the Pi without the need of uploading.
If you think that using gulp is a bridge to far (I recomment the usage of it), you can work arround it by:
It that case you can just edit the files in /var/www. No minifications or other gulp stuff is applied.
And btw the map files doesn contain any editable source. Those are just generated files by gulp to make the minifies css and js readable again. Little bit like symbol files for c/c++. When no developer toolbar is active those aren´t even loaded by the browser.
You can even do the frontend development on your windows machine and start a local web server with gulp, backend calls are then directed to the pi (al least if everyhthing is setup correctly ...).
Or you can do it local on the pi.
Under Windows I recomment to use mobaxterm in combination with Visual Code for either local development or using the pi as remote target.
You can then edit the files directly on the Pi without the need of uploading.
If you think that using gulp is a bridge to far (I recomment the usage of it), you can work arround it by:
Code:
git clone https://github.com/moode-player/moode.git
sudo mv /var/www /var/www.org
sudo cp ~/moode/www /var/www
moodeutl -r
It that case you can just edit the files in /var/www. No minifications or other gulp stuff is applied.
And btw the map files doesn contain any editable source. Those are just generated files by gulp to make the minifies css and js readable again. Little bit like symbol files for c/c++. When no developer toolbar is active those aren´t even loaded by the browser.