Last active
January 17, 2020 10:12
-
-
Save RStankov/5d6fa6e25d221829e96e45df07784d38 to your computer and use it in GitHub Desktop.
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
# frozen_string_literal: true | |
# NOTE(rstankov): styles ignored intentionally | |
files = %w(components routes utils layouts hooks).map { |dir| Dir["frontend/#{dir}/**/*.css"] }.flatten | |
files.each do |file| | |
next if file.end_with?('.module.css') | |
`git mv #{file} #{file.gsub('.css', '.module.css')}` | |
`git mv #{file + '.d.ts'} #{file.gsub('.css', '.module.css.d.ts')}` | |
print "- #{file}\n" | |
end | |
print "\n~ fin ~\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment