Last active
May 19, 2020 17:35
-
-
Save jamesmfriedman/cc8ef976888962b3d9a0d252cf7ec2d0 to your computer and use it in GitHub Desktop.
Revisions
-
jamesmfriedman revised this gist
May 19, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ rm -rf temp \ && mkdir temp \ && git mv src/* temp \ && find ./temp -name '*' -type f -exec sh -c "echo '{}' \ | sed 's/\([a-z]\)\([A-Z]\)/\1-\2/g'\ | sed 's/\([A-Z]\{2,\}\)\([A-Z]\)/\1-\2/g' \ | sed 's/\.ts$/\.tsx/g' \ -
jamesmfriedman revised this gist
May 19, 2020 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,12 +1,12 @@ rm -rf temp \ && mkdir temp \ && git mv src/* temp \ && find ./temp -name '*.*' -exec sh -c "echo '{}' \ | sed 's/\([a-z]\)\([A-Z]\)/\1-\2/g'\ | sed 's/\([A-Z]\{2,\}\)\([A-Z]\)/\1-\2/g' \ | sed 's/\.ts$/\.tsx/g' \ | sed 's/\.\/temp/\.\/src/g' \ | tr '[:upper:]' '[:lower:]' \ | xargs -I newName sh -c 'dirname newName | xargs mkdir -p && git mv --force {} newName' " \; \ && rm -rf temp -
jamesmfriedman created this gist
May 19, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ rm -rf temp \ && mkdir temp \ && git mv src/* temp \ && find ./temp -name '*.ts*' -exec sh -c "echo '{}' \ | sed 's/\([a-z]\)\([A-Z]\)/\1-\2/g'\ | sed 's/\([A-Z]\{2,\}\)\([A-Z]\)/\1-\2/g' \ | sed 's/\.ts$/\.tsx/g' \ | sed 's/\.\/temp/\.\/src/g' \ | tr '[:upper:]' '[:lower:]' \ | xargs -I newName sh -c 'mkdir -p dirname newName && git mv --force {} newName' " \; \ && rm -rf temp