Prettier
Make your code a little Prettier
Used 20 times
E
Emmanuel LOUISY-GABRIEL
Usage
Run this command in your Rails app directory in the terminal:
rails app:template LOCATION="https://railsbytes.com/script/Vqqs5K"
Template Source
Review the code before running this template on your machine.
run 'yarn add --dev prettier'
create_file '.prettierrc.json' do <<-JSON
{}
JSON
end
create_file '.prettierignore' do <<-YAML
# Ignore this file!
.prettierignore
# Ignore bundler config.
/.bundle
# Ignore rake tasks
lib/tasks/*.rake
# Ignore Ruby files
**/*.rb
# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep
# Ignore pidfiles, but keep the directory.
/tmp/pids/*
!/tmp/pids/
!/tmp/pids/.keep
# Ignore uploaded files in development.
/storage/*
!/storage/.keep
/public/assets
.byebug_history
# Ignore master key for decrypting credentials and more.
/config/master.key
/public/packs
/public/packs-test
/node_modules
/yarn-error.log
yarn-debug.log*
.yarn-integrity
# Ignore .env file containing credentials.
.env*
# Ignore Mac and Linux file system files
*.swp
.DS_Store
# Ignore dumps
*.dump
.idea/*
coverage/*
YAML
end