#!/bin/bash

set -eux

rm app/assets/javascripts/app/controllers/layout_ref.coffee
rm -rf app/assets/javascripts/app/views/layout_ref/
rm app/assets/javascripts/app/controllers/karma.coffee

# tests
rm -rf test spec app/frontend/tests .cypress
find app/frontend/ -type d -name __tests__ -exec rm -rf {} +
rm .rspec

# Storybook
rm -rf .storybook
find app/frontend/ -name '*.stories.ts' -exec rm {} +

# CI
rm -rf .github .gitlab
rm .gitlab-ci.yml

# linting
# Since the .eslint-plugin-zammad folder is a dependency in package.json (required by assets:precompile), it cannot be removed.
rm .rubocop.yml
rm -rf .rubocop
rm .stylelintrc.json .eslintignore .eslintrc .eslintrc.js .prettierrc.json
rm coffeelint.json
rm -rf .coffeelint
rm .overcommit.*

# misc
rm .codeclimate.yml

#!/bin/bash

set -eux

rm app/assets/javascripts/app/controllers/layout_ref.coffee
rm -rf app/assets/javascripts/app/views/layout_ref/
rm app/assets/javascripts/app/controllers/karma.coffee

# tests
rm -rf test spec app/frontend/tests .cypress
find app/frontend/ -type d -name __tests__ -exec rm -rf {} +
rm .rspec

# Storybook
rm -rf .storybook
find app/frontend/ -name '*.stories.ts' -exec rm {} +

# Remove our customized .yarnrc to let yarn use the global cache
#   instead of .yarn/cache which would go into the packages.
rm .yarnrc

# CI
rm -rf .github .gitlab
rm .gitlab-ci.yml

# linting
# Since the .eslint-plugin-zammad folder is a dependency in package.json (required by assets:precompile), it cannot be removed.
rm .rubocop.yml
rm -rf .rubocop
rm .stylelintrc.json .eslintignore .eslintrc .eslintrc.js .prettierrc.json
rm coffeelint.json
rm -rf .coffeelint
rm .overcommit.*

# misc
rm .codeclimate.yml

Fix the Zammad binary package build size.
Maintenance: Fix the Zammad binary package build size.
