Open joelhellman opened 3 years ago
Hey Joel,
I wasn't able to replicate your issue, are you still experiencing this?
Okay I just tested and I discovered two things.
zcli apps:new --scaffold=react
and zcli apps:new --appName="myapp" --authorEmail="myname@example.com" --authorName="myname" --scaffold=basic --path=myapp
both work now.
I end up with a subfolder myapp with the scaffold.
However the --scaffold=react doesn't return a react app, but the old scaffold app from the Zendesk repo from when you launched V2 apps.
The other thing is that the command behaves weirdly if you try to create an app in the current directoy. I often do this, create the directory first, cd into it, and run the command to put stuff in the current directory.
To recreate :
$ mkdir testapp && cd testapp
$ zcli apps:new
Enter a directory name to save the new app (will create the dir if it does not exist): . # <-- (I put a dot here to indicate the current directory)
Enter this app authors name: joe
Enter this app authors email: joe@example.com
Enter a name for this new app: testapp
Error: ENOTEMPTY: directory not empty, rename '.../test/apps_scaffold_basic-master' -> '.../test'
Code: ENOTEMPTY
If I look in the directory, I then have a zip and a directory:
drwxr-xr-x 4 4096 Aug 19 18:58 apps_scaffold_basic-master
-rw-r--r-- 1 7527 Aug 19 18:58 scaffold.zip
Expectations
zcli apps:new --scaffold=react
works, as per command help examplesThe scaffold=basic flag works:
Reality
But the scaffold=react doesn't:
zcli apps:new --scaffold=react
fails with errorDownload of scaffold structure failed
Steps to Reproduce
$ zcli apps:new --appName="myapp" --authorEmail="myname@example.com" --authorName="myname" --scaffold=basic --path=myapp
$ zcli apps:new --appName="myapp" --authorEmail="myname@example.com" --authorName="myname" --scaffold=react --path=myapp
Issue details