vtex / faststore

Digital commerce toolkit for frontend developers
https://faststore.dev
MIT License
182 stars 57 forks source link

feat(cli): add support for the `init` command #2373

Closed vaporwavie closed 2 weeks ago

vaporwavie commented 3 weeks ago

What's the purpose of this pull request?

Adds initial support for the init command, which aims to boostrap (and scaffold) Discovery from the starter.store template.

How it works?

It creates a new oclif command that wraps the discovery composition using degit.

How to test it?

vercel[bot] commented 3 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **faststore-site** | ⬜️ Ignored ([Inspect](https://vercel.com/faststore/faststore-site/ChybnDszPkedqh9Mp7ffzRmMTP55)) | [Visit Preview](https://faststore-site-git-feature-discovery-init-command-faststore.vercel.app) | | Jul 10, 2024 0:57am |
codesandbox-ci[bot] commented 3 weeks ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

vaporwavie commented 2 weeks ago

@lariciamota @gvc I'll do a file move commit, so /commands/discovery/init.ts becomes /commands/init.ts to make it consistent with the existing commands.

PS: This is also considering that the platform CLI will already prefix discovery, so this redundancy is not needed.

gvc commented 2 weeks ago

@eduardoformiga the goal is to have people use only the fsp CLI directory as their main CLI and only go to the faststore CLI if they need something specific on the discovery part.