faststore icon indicating copy to clipboard operation
faststore copied to clipboard

feat: Add watch capability to dev command

Open icazevedo opened this issue 1 year ago • 2 comments

What's the purpose of this pull request?

This PR adds watch capability to the dev command.

How it works?

It uses chokidar, a library that wraps the default fs.watch function and fixes its issues. We followed the same logic VTEX Toolbelt uses to watch for file changes while a project is linked.

Currently, it does nothing with those changes besides logging it into the terminal.

How to test it?

Build the project, add the bin folder to the PATH variable of your terminal and then execute run dev on your FastStore Store. Whenever you change your code, you'll be able to see the path of the file you changed logged in the terminal. The same is valid for file creation and removal.

icazevedo avatar Oct 06 '22 20:10 icazevedo

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

Name Status Preview Updated
faststore ✅ Ready (Inspect) Visit Preview Oct 26, 2022 at 1:30PM (UTC)

vercel[bot] avatar Oct 06 '22 20:10 vercel[bot]

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.

Latest deployment of this branch, based on commit c88caaefa69f34ebeb4ef5d69f6a5276884a2fa9:

Sandbox Source
Store UI Typescript Configuration

codesandbox-ci[bot] avatar Oct 06 '22 20:10 codesandbox-ci[bot]