clasp
clasp copied to clipboard
Workflow for creating project and pushing existing code
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 What do you think of the solution proposed in #991?
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.
Yep, glad to hear you like the proposal! Could you also voice your support in #991 for visibility? Thanks!