don't remove compressed files from client app symlinks
Change-Id: Ib26d7865dd68a53e3dc7b6ea424965939c07ca0e Reviewed-on: https://gerrit.instructure.com/64579 Reviewed-by: Rob Orton <rob@instructure.com> Tested-by: Jenkins Product-Review: Cody Cutrer <cody@instructure.com> QA-Review: Cody Cutrer <cody@instructure.com>
This commit is contained in:
parent
6c30ea57cf
commit
674045addb
|
@ -38,7 +38,9 @@ Gemfile.lock4
|
|||
/public/javascripts/jst/
|
||||
/public/javascripts/jsx/
|
||||
/public/javascripts/translations/
|
||||
/public/javascripts/**/*.gz
|
||||
/public/optimized/
|
||||
/public/vendor/tinymce_themes/**/*.gz
|
||||
/spec/javascripts/compiled/
|
||||
/spec/javascripts/requirejs_config.js
|
||||
/spec/javascripts/runner.html
|
||||
|
|
|
@ -33,6 +33,8 @@ def maintain_client_app_symlinks
|
|||
dir = dir.dirname
|
||||
end
|
||||
end
|
||||
# compressing assets can generate .gz versions of files; don't remove them
|
||||
valid_files.merge(valid_files.map { |f| Pathname.new(f.to_s + '.gz') })
|
||||
|
||||
# remove any unnecessary links
|
||||
Pathname.glob("public/javascripts/client_apps/**/*").each do |file|
|
||||
|
|
Loading…
Reference in New Issue