fortana-co / react-dropzone-uploader

React file dropzone and uploader
https://react-dropzone-uploader.js.org/
MIT License
447 stars 183 forks source link

Is this repo abandoned? #133

Open jordie23 opened 3 years ago

jordie23 commented 3 years ago

Looks like there's been no commits or releases for at least a year?

jordie23 commented 3 years ago

@kylebebak Are there plans to continue work on this package?

ilyakam commented 3 years ago

It appears like this repo is abandoned. Here are the instructions how to maintain a copy of this package for your own project. It ended up taking just a bit of extra effort.


Prerequisites

  1. Install and set up patch-package in your project
  2. Fork this repo; we'll use example as its new destination

Set Up

In a new terminal window:

  1. git clone git@github.com:example/react-dropzone-uploader.git
  2. cd react-dropzone-uploader
  3. npm install

Develop

  1. Make the necessary changes to the files in src
  2. npm run build

Patch

  1. Switch to the terminal window at the root of your project
  2. Copy the freshly-built dist/ folder to your project's node_modules/react-dropzone-uploader:
    rm -rf node_modules/react-dropzone-uploader/dist
    cp -r path/to/react-dropzone-uploader/dist node_modules/react-dropzone-uploader
  3. npm run postinstall -- react-dropzone-uploader

Share

  1. Commit your changes to the forked react-dropzone-uploader
  2. Push your changes

I also recommend turning off the minifier on the newly forked repo. This way your patches are more obvious:

 webpack.build.config.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/webpack.build.config.js b/webpack.build.config.js
index 6636b27..7bff398 100644
--- a/webpack.build.config.js
+++ b/webpack.build.config.js
@@ -12,7 +12,7 @@ function createConfig(entry, output) {
     entry,
     output,
     optimization: {
-      minimizer: [new UglifyJSPlugin()],
+      minimize: false,
     },
     module: {
       rules: [
prmichaelsen commented 3 years ago

welp looks like im gonna be switching to a diff project