Skip to content

Instantly share code, notes, and snippets.

@TylerSustare
Last active January 17, 2023 17:31
Show Gist options
  • Select an option

  • Save TylerSustare/9d0bf8ac4dfef8c9f74dce7da9386ab4 to your computer and use it in GitHub Desktop.

Select an option

Save TylerSustare/9d0bf8ac4dfef8c9f74dce7da9386ab4 to your computer and use it in GitHub Desktop.

Revisions

  1. TylerSustare renamed this gist Jan 17, 2023. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. TylerSustare revised this gist Jan 17, 2023. 3 changed files with 6 additions and 4 deletions.
    5 changes: 5 additions & 0 deletions clean
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    #!/usr/bin/ruby

    require 'fileutils'
    FileUtils.rm_r Dir.glob './**/node_modules'
    FileUtils.rm_r Dir.glob './**/dist'
    4 changes: 0 additions & 4 deletions clean_dist.rb
    Original file line number Diff line number Diff line change
    @@ -1,4 +0,0 @@
    #!/usr/bin/ruby

    require 'fileutils'
    FileUtils.rm_r Dir.glob './packages/**/dist'
    1 change: 1 addition & 0 deletions clean_dist.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    #!/bin/bash

    find . -name node_modules -type d -print0 | xargs -0 rm -r --;
    find . -name dist -type d -print0 | xargs -0 rm -r --
  3. TylerSustare revised this gist Dec 23, 2022. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions clean_dist.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    #!/bin/bash

    find . -name dist -type d -print0 | xargs -0 rm -r --
  4. TylerSustare created this gist Dec 23, 2022.
    4 changes: 4 additions & 0 deletions clean_dist.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    #!/usr/bin/ruby

    require 'fileutils'
    FileUtils.rm_r Dir.glob './packages/**/dist'