clasp icon indicating copy to clipboard operation
clasp copied to clipboard

Workflow for creating project and pushing existing code

Open multimeric opened this issue 5 years ago • 3 comments

Issue Description

I'm after a workflow when I already have some AppsScript code from an external source (e.g. from GitHub), and I want to create a new Google project and push the code there.

I had hoped I could do something like this:

clasp create --empty # Note, this flag doesn't exist
git clone SomeAppsScriptRepo
clasp push

Currently the only way to do this, as far as I can tell is:

clasp create --type TYPE --title TITLE
rm appsscript.json # We don't need this
git clone SomeAppsScriptRepo
clasp push

Specifications

  • Node version (node -v): v11.15.0
  • Version (clasp -v): 2.3.0
  • OS (Mac/Linux/Windows): Ubuntu 18.04

multimeric avatar Mar 31 '20 13:03 multimeric

@multimeric What do you think of the solution proposed in #991?

HoldYourWaffle avatar Nov 19 '23 16:11 HoldYourWaffle

So after this PR, the workflow would be:

git clone SomeAppsScriptRepo
clasp remote create <name>

Is that right? Because that would be better than even what I suggested.

multimeric avatar Nov 19 '23 22:11 multimeric

Yep, glad to hear you like the proposal! Could you also voice your support in #991 for visibility? Thanks!

HoldYourWaffle avatar Nov 20 '23 16:11 HoldYourWaffle