DEV Community

loading...

Discussion on: Add Destroy Script 🔥💻 To package.json

Collapse
elabftw profile image
eLabFTW

Instead of "destroy" you should use "clean" like in "make clean" ;) Destroy sounds too harshful imho!

Collapse
deadlybyte profile image
Carl Saunders Author

I usually have a "clean" script that deletes just the build artifacts. Hence the reasoning behind the name "destroy", as hopefully devs will know it applies to destroying all artifacts and dependencies.

Collapse
elabftw profile image
eLabFTW

then go with "cleanall", as destroy implies removing something that cannot be recuperated easily. My 2 cents ;)