Skip to content

Instantly share code, notes, and snippets.

@marknadig
Created March 2, 2020 17:14
Show Gist options
  • Save marknadig/9b2726de012a4ef75301aa2a4500536c to your computer and use it in GitHub Desktop.
Save marknadig/9b2726de012a4ef75301aa2a4500536c to your computer and use it in GitHub Desktop.
@echo off
if not exist C:\Temp\hard-source\ GOTO 30
@echo Cleaning hard source
rmdir /s /q C:\Temp\hard-source
:30
if not exist C:\Development\Vantagepoint\ GOTO 20
@echo Cleaning 30
rmdir /s /q C:\Development\Vantagepoint\code\client\DeltekNavigator\Web\dist
rmdir /s /q C:\Development\Vantagepoint\code\client\DeltekNavigator\Web\node_modules
:20
if not exist C:\Development\Vantagepoint20\ GOTO 35
@echo Cleaning 20
rmdir /s /q C:\Development\Vantagepoint20\code\client\DeltekNavigator\Web\dist
rmdir /s /q C:\Development\Vantagepoint20\code\client\DeltekNavigator\Web\node_modules
:35
if not exist C:\Development\Vantagepoint35 GOTO npm
@echo Cleaning 35
rmdir /s /q C:\Development\Vantagepoint35\code\client\DeltekNavigator\Web\dist
rmdir /s /q C:\Development\Vantagepoint35\code\client\DeltekNavigator\Web\node_modules
:npm
npm cache clear --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment