Sha256: ebcaa76bf6e04a692966104c3123d781098444cdeda975dcfb77bf9445418909

Contents?: true

Size: 434 Bytes

Versions: 1

Compression:

Stored size: 434 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

# path to your application root.
APP_ROOT = File.expand_path('..', __dir__)

def system!(*args)
  system(*args) || abort("\n\e[31m== Command #{args} failed ==\e[0m")
end

Dir.chdir(APP_ROOT) do
  puts "\e[36m\n== Running RuboCop static code analysis ==\e[0m"
  system!("bundle exec rubocop -P")

  puts "\e[36m\n== Running Prettier style check ==\e[0m"
  system!("pnpm run lint")
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
practical-pig-1.0.0 lib/template/bin/test