Sha256: c7f74a720d6a4864b5fdae180a09e16fb317cb99e09142cc958519f34d39c7f9
Contents?: true
Size: 603 Bytes
Versions: 73
Compression:
Stored size: 603 Bytes
Contents
# frozen_string_literal: true require 'avm/executables' 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
73 entries across 73 versions & 4 rubygems