Skip to content

Instantly share code, notes, and snippets.

@obecny
Last active November 27, 2020 21:14
Show Gist options
  • Save obecny/d4358fce87a862b6b3f6ba54398ac30e to your computer and use it in GitHub Desktop.
Save obecny/d4358fce87a862b6b3f6ba54398ac30e to your computer and use it in GitHub Desktop.
"clean": "lerna run clean",
"clean:examples": "find examples -name 'node_modules' -type d -prune -exec rm -rf '{}' +",
"clean:packages": "lerna clean -y",
"clean:examples:locks": "find examples -name 'yarn.lock' -type f -exec rm '{}' + && find examples -name 'package-lock.json' -type f -exec rm '{}' +",
"clean:packages:locks": "find packages -name 'yarn.lock' -type f -exec rm '{}' + && find packages -name 'package-lock.json' -type f -exec rm '{}' +",
"clean:plugins:locks": "find plugins -name 'yarn.lock' -type f -exec rm '{}' + && find plugins -name 'package-lock.json' -type f -exec rm '{}' +",
"clean:propagators:locks": "find propagators -name 'yarn.lock' -type f -exec rm '{}' + && find propagators -name 'package-lock.json' -type f -exec rm '{}' +",
"clean:main:locks": "rm -fr 'yarn.lock' && rm -fr 'package-lock.json'",
"clean:all": "npm run clean:packages:locks && npm run clean:examples:locks && npm run clean:main:locks && npm run clean:plugins:locks && npm run clean:propagators:locks && npm run clean && npm run clean:examples && npm run clean:packages && rm -fr node_modules",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment