alleyinteractive / alley-scripts

A collection of scripts and utilities for Alley projects.
https://alley-scripts.alley.dev/
6 stars 1 forks source link

Provide fast refresh when developing for scripts in package plugin #582

Open stevenslack opened 6 months ago

stevenslack commented 6 months ago

Description

I would like to be able to run dev mode in any of the alley-scripts/packages/* while also running dev mode in the alley-scripts/plugin so that I can work on the scripts without having to run npm run build and refresh the page in order to see the changes.

Documentation also needs to be provided in order to for developers to properly get set up to develop in the plugin accordingly.

Use Case

Example: In the directory alley-scripts/packages/block-editor-tools run npm run dev in the command line to run Webpack development mode with the watch flag so that the files will recompile whenever they change. webpack --mode=development --watch.

Simultaneously in the alley-scripts/plugin directory I want to run npm run dev or npm run start while importing or linking with npm link the block-editor-tools to see my changes when the files change.