Sha256: ddf7e20e474833e4802719d2d330bfe10231f0aeebba235773bafbf925b14ac0
Contents?: true
Size: 1.05 KB
Versions: 22
Compression:
Stored size: 1.05 KB
Contents
# frozen_string_literal: true require "json" unless defined?(JSON) package = JSON.parse(File.read(File.join(__dir__, "package.json"))) Gem::Specification.new do |spec| spec.name = "prettier" spec.version = package["version"] spec.authors = [package["author"]] spec.summary = package["description"] spec.homepage = package["homepage"] spec.license = package["license"] spec.files = Dir.chdir(__dir__) do %w[LICENSE package.json rubocop.yml] + Dir["{{exe,lib,src}/**/*,*.md}"] + Dir[ "node_modules/prettier/{package.json,index.js,cli.js,doc.js,bin-prettier.js,third-party.js,parser-*.js}" ] end spec.required_ruby_version = ">= 2.7.3" spec.bindir = "exe" spec.executables = "rbprettier" spec.require_paths = %w[lib] spec.add_dependency "syntax_tree", ">= 2.7.1" spec.add_dependency "syntax_tree-haml", ">= 1.1.0" spec.add_dependency "syntax_tree-rbs", ">= 0.2.0" spec.add_development_dependency "bundler" spec.add_development_dependency "minitest" spec.add_development_dependency "rake" end
Version data entries
22 entries across 22 versions & 1 rubygems