shipmnts / editor-hub

Powerful and customizable rich text editor component for React applications
10 stars 5 forks source link

Added watch script and configured watchOptions for development #16

Closed RameezIbrahimOfficial closed 2 days ago

RameezIbrahimOfficial commented 2 days ago

Description

This PR adds a watch script to the package.json to automate the rebuild process upon file changes, which will improve development workflow. The webpack.config.js file was also updated to configure the watchOptions, optimizing performance and ensuring that file changes trigger automatic rebuilds without including unnecessary files. This change eliminates the need for manual rebuilds during development. Also Documentation is updated to include usage instructions for the new watch command

Relevant Motivation & Context

Developers previously needed to manually rebuild the project after every change, which slowed down the development process. Adding a watch script and configuring watchOptions will improve efficiency by automatically rebuilding on changes.

Dependencies Required

No additional dependencies are required for this change.

Fixes

Fixes #11

Type of change

How Has This Been Tested?

This change has been tested by:

  1. Running yarn watch and observing automatic rebuilds upon file changes.
  2. Verifying that the dist folder is updated correctly after changes.
  3. Running yarn start to confirm that the Webpack Dev Server serves the updated project with hot-reloading.

Steps to Reproduce:

Checklist:

Screenshots

N/A for this change


devdcodes9 commented 2 days ago

@RameezIbrahimOfficial I can just see the changes in the Readme file, don't you also need to add code changes too?

RameezIbrahimOfficial commented 2 days ago

@devdcodes9 Firstly i have created a PR without changing the Readme then i closed the PR and updated the Readme And then sent PR again

Modifled files:- webpack.config.js ( Added watchOptions ) package.json ( Added Watch Commands )

Rest of the things i mentioned in PR Description

devdcodes9 commented 2 days ago

@RameezIbrahimOfficial there is no package.json in the file diff of this PR. Please check again image

RameezIbrahimOfficial commented 2 days ago

Ok I will sent PR again its bacause of the Merge issue in Forked Repo Sorry for the inconviniece