-
Notifications
You must be signed in to change notification settings - Fork 52
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
polywrap create template
command
#1529
Conversation
packages/cli/src/lib/project/templates/downloadProjectTemplate.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is super clean @krisbitney, amazing & quick work. Only thing I'd like to be different is the treatment of the cache directory. Let's quickly make that more uniform and use a user-level cache within the operating system. That way other functionality can make use of it in the future too! (ex: import caching, etc)
packages/cli/src/lib/project/templates/downloadProjectTemplate.ts
Outdated
Show resolved
Hide resolved
…plate-from-url # Conflicts: # packages/cli/src/__tests__/e2e/create.spec.ts # packages/cli/src/commands/create.ts # packages/cli/src/lib/project/templates/index.ts # yarn.lock
…h setup in create.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing 👏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
This PR adds the
template
command to the CLI'spolywrap create
. Thetemplate
command lets users provide a url and downloads the template for them.As described in #768 , the initial implementation only supports
.git
URLs. I implemented it with the assumption that additional URL formats will be added now or in the future.Closes #768