Created
October 3, 2016 08:15
-
-
Save zhiyao/97ef6a36d574f122580ccabeb5beec54 to your computer and use it in GitHub Desktop.
Rename jade extension to pug extension
This file contains 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 characters
jade_files = Dir.glob("../**/*.jade") | |
jade_files.each do |jade_file| | |
puts "Renaming #{jade_file}" | |
pug_file = jade_file.gsub(/.jade$/, '.pug') | |
puts "> #{pug_file}" | |
File.rename(jade_file, pug_file) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment