Should Google App Scripts be stored in version control like GitHub [closed]

You can star issue 217 and issue 1959 if that is important to you.

Update: Take a look at Advanced Development Process with Apps Script


Here is how I did. I used the command line tool, gdcmdtools, to import and export my GAS project.
And stored the exported project in github.
Example:

  • gdget.py FILE_ID -f json # down files associated with GAS project with id FIELD_ID, you will get PROJECT_NAME.json and the source files.

  • store the files to version control, like: github.

  • gdput.py -t gas PROJECT_NAME.json # update GAS project with project file 'PROJECT_NAME.json'

For more information, check Manage-Google-Apps-Script(GAS)-with-gdcmdtools


I just published an npm module for import/export. It's a simpler version of gdcmdtools linked above. Example usage:

  • gaps init
  • gaps download <fileId> clones complete project in current working directory
  • cd into project folder and run gaps upload to push it back up to Google

Run npm install -g node-google-apps-script or check it out here: https://github.com/danthareja/node-google-apps-script. In the next version I'm planning to add a "sync with github" feature.