Skip to content

Instantly share code, notes, and snippets.

@brackendev
Last active November 23, 2020 12:40
Show Gist options
  • Save brackendev/6b3d3aac1452a834e97444bf4eb5ddeb to your computer and use it in GitHub Desktop.
Save brackendev/6b3d3aac1452a834e97444bf4eb5ddeb to your computer and use it in GitHub Desktop.
[Shell] AngularDart pub clean
#!/bin/sh
# AngularDart pub clean
rm -rf "$HOME/.pub-cache"
rm -rf .dart_tool
rm -f .packages
rm -f .pub
rm -f pubspec.lock
git rm -f .packages
git rm -f .pub
pub cache repair
pub get
pub global activate webdev
pub run build_runner build --delete-conflicting-outputs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment