The current build setup does not efficiently handle watching files for changes across different parts of the project, such as the main codebase and the demo example. This results in a fragmented development workflow where developers need to manually start and monitor multiple watch tasks.
Solution
The PR introduces the following changes to streamline the development workflow:
Added a watch:demo script to navigate to the example directory and run its watch script.
Combined the watch, watch:demo, and watch:serve scripts into a single watch:web script using run-p for parallel execution.
Added a watch:serve script to start a live server on port 9000 serving the example/dist directory.
These changes enable developers to start all necessary watch tasks with a single command, ensuring a more efficient and cohesive development experience.
Problem
The current build setup does not efficiently handle watching files for changes across different parts of the project, such as the main codebase and the demo example. This results in a fragmented development workflow where developers need to manually start and monitor multiple watch tasks.
Solution
The PR introduces the following changes to streamline the development workflow:
watch:demo
script to navigate to theexample
directory and run its watch script.watch
,watch:demo
, andwatch:serve
scripts into a singlewatch:web
script usingrun-p
for parallel execution.watch:serve
script to start a live server on port 9000 serving theexample/dist
directory.These changes enable developers to start all necessary watch tasks with a single command, ensuring a more efficient and cohesive development experience.
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.