faststore
faststore copied to clipboard
feat: Add watch capability to dev command
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.
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) |
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 |