Skip to content

Instantly share code, notes, and snippets.

@RStankov
Last active January 17, 2020 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RStankov/5d6fa6e25d221829e96e45df07784d38 to your computer and use it in GitHub Desktop.
Save RStankov/5d6fa6e25d221829e96e45df07784d38 to your computer and use it in GitHub Desktop.
# 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