Saving js scripts from the Espruino IDE

Posted on
  • Dear all,

    I am using Espruino for many years and I really appreciate it, however I still struggle at ensuring I always work on the latest script. I usually debug on multiple targets and depending my location I use different computers to connect. I usually save my work on a dropbox so that I am always able to retrieve the latest file at anytime at any location but still, I sometimes forget to save the file. When it is the case, I try always to retrieve it from the Storage of the Espruino target I think I worked with the last time, and overall, 95% of the time it is enough, but... I am sure you guys have better methods, could you share it with me?

    Furthermore, Is there a way of automatically adding a timestamp to the file name when saving a js file from Espruino IDE?

  • Maybe you can configure your editor to save automatically at some interval or on (virtually) every change to the file?

    Do you use git?

  • That's an interesting idea - yes, it'd be reasonably easy to add a plugin to the Web IDE that added the upload date.

    I tend to use git here and I just have a folder of random bits of code that I keep in Git and so synced between PCs. If there's a project where I want to know if things are up to date I just add const VERSION = 0.2; or similar to the head of the program.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Saving js scripts from the Espruino IDE

Posted by Avatar for Jean-Philippe_Rey @Jean-Philippe_Rey

Actions