Class: Avm::EacWebappBase0::FileFormats::Javascript

Inherits:
Avm::EacGenericBase0::FileFormats::Base
  • Object
show all
Defined in:
lib/avm/eac_webapp_base0/file_formats/javascript.rb

Constant Summary collapse

VALID_BASENAMES =
%w[*.js].freeze
VALID_TYPES =
[].freeze

Instance Method Summary collapse

Instance Method Details

#internal_apply(files) ⇒ Object



13
14
15
16
17
18
# File 'lib/avm/eac_webapp_base0/file_formats/javascript.rb', line 13

def internal_apply(files)
  ::Avm::EacWebappBase0::Executables.js_beautify.command.append(
    ['--indent-size=2', '--end-with-newline', '--replace', *files]
  ).system!
  super(files)
end