Sha256: a8fb13a6e62305f661a6fb7a51c541b8b581e288422f224874a932d70feb79ec
Contents?: true
Size: 577 Bytes
Versions: 6
Compression:
Stored size: 577 Bytes
Contents
# frozen_string_literal: true require 'avm/files/formatter/formats/generic_plain' module Avm module Files class Formatter module Formats class Javascript < ::Avm::Files::Formatter::Formats::GenericPlain VALID_BASENAMES = %w[*.js].freeze VALID_TYPES = [].freeze def internal_apply(files) ::Avm::Executables.js_beautify.command.append( ['--indent-size=2', '--end-with-newline', '--replace', *files] ).system! super(files) end end end end end end
Version data entries
6 entries across 6 versions & 2 rubygems