Open rmlevangelio opened 2 years ago
Use GitHub or another repo. Everyone works out of the repo and some kind of action/automation on the repo will push to GAS.
@imthenachoman
I don't think you understand the question. Of course we use github for version control.
As mentioned above, we use typescript compiler for clasp so that we don't need to deal with google apps script. When we run clasp push
, it transforming the .ts
files into .gs
files and pushed into scripts.google.com
.
So if we are multiple devs working at the same time, obviously we cannot use clasp pull
since it will pull the gs files. and of course we also don't want to make pull request with our changes everytime we wanted to test it.
That's why I am saying to use GitHub/GitLab or some other source code repo in the middle.
Everyone pushes/pulls from the repo.
One person pulls from the repo and pushes with clasp.
GAS should be treated only as a deployment target.
If individual developers need to test code they can configure their own GAS project file and push to that. If the GAS project is linked to a GCP project, all "copies" can be linked to the same GCP project if needed.
Hello Everyone, I have the same issue, unfortunate you can have different devs for a same project, but each push request does overwrite in all files in apps script. It would be better we have the possibility to do pull request for separate, I mean for spared files without overwrite all project in app script.
Hello Everyone, I have the same issue, unfortunate you can have different devs for a same project, but each push request does overwrite in all files in apps script. It would be better we have the possibility to do pull request for separate, I mean for spared files without overwrite all project in app script.
These are limitations with Google Apps Script, not clasp
.
Hello Everyone, I have the same issue, unfortunate you can have different devs for a same project, but each push request does overwrite in all files in apps script. It would be better we have the possibility to do pull request for separate, I mean for spared files without overwrite all project in app script.
We have a multi-developer application and here's how we handle this.
Adding to comment of schulzj01 We have 2 different folders for this whole process,
The only downside we see in this is copy pasting files/code from dev folder to test folder but that is once in a week kind of activity so it's managable for us to use this approach.
The scenario is that in my team, we want to have a good developer workflow for Apps scripts project. Then we decided to use clasp with Typescript on it.
When we run
clasp push
, the.ts
files get transformed in.gs
files in scripts.google.com.If there are multiple devs working on one project and do push simultaneously, I'm pretty sure the first push will be overwritten by the second push and we will lose the progress.
Can you recommend a good developer workflow in this type of scenario?