How to perform local development and debugging - techmovie/easy-upload GitHub Wiki

The project uses vite-plugin-monkey. To avoid Content-Security-Policy errors on some sites, it is recommended to install the Disable-CSP extension at first.

  • Run yarn to install the dependencies.
  • Use yarn dev to start the project. On the first run, the script will be installed automatically. If there are any file changes, the browser will automatically refresh.

Commands

  • yarn dev: start the project, and watch the files changes under src folder.
  • yarn commit: Commit your changes and normalize the commit message.
  • yarn icon [file name of site under src/config folder]: update the icon field
  • yarn support: update the SUPPORTED.md file, should be executed whenever a site config file is added or removed
  • yarn build: In most of the scenarios, no need to run this command. DO NOT commit the changes for the dist folder.