Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] Best practices for managing Apps Script monorepos #740

Open
PopGoesTheWza opened this issue Feb 25, 2020 · 4 comments
Open

[RFC] Best practices for managing Apps Script monorepos #740

PopGoesTheWza opened this issue Feb 25, 2020 · 4 comments

Comments

@PopGoesTheWza
Copy link
Collaborator

Purpose of this issue is to discuss and exchange on how one handle Apps Script monorepos:

  • current solutions
  • key features/functionalities
  • missing features/functionalities
@imthenachoman
Copy link

I'm curious how this ties or is dependent to clasp. Are you talking about if someones got many projects in one GAS file or if someone is putting many projects into a single GitHub/GitLab repo?

@PopGoesTheWza
Copy link
Collaborator Author

Typically, a single repository composed of several projects which share common resources (i.e. code)

I have this starter template which I'll be updating for v8 support soon.

@imthenachoman
Copy link

I see. So multiple GAS projects in one TS project that each get pushed to their own GAS project? I se great value in this. Especially for "common libraries".

@oshliaer
Copy link
Contributor

If you allow me.

I use an approach based on the clasp. It uses gulp & cli flows.

I do not know the current version supports multiple project files, so I just swap the .clasp.json file to redirect the stream to a project https://github.com/hedgehogsburrows/empty-google-apps-script-project/blob/master/gulpfile.js#L63-L74.

Based on this approach I also use the spread distribution of one code for several projects, when I create a series of consecutive pushes.

I also use "reverse code support" so that the customer can make changes directly to the project.

I try to avoid monorepos for transparent and lightweight projection.

I also use classes (or old-style modules) from external loosely coupled sources for assembly or bundles https://github.com/contributorpw/google-apps-script-snippets/blob/master/gulpfile.js#L35

If any of this is helpful let me know I will do a practice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants