Sha256: 657bb18917751d6377d12d4c63f912e7c1268df133d201758705f0c1ea81285d

Contents?: true

Size: 761 Bytes

Versions: 3

Compression:

Stored size: 761 Bytes

Contents

#!/usr/bin/env ruby
require "fileutils"

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

def system!(*args)
  system(*args) || abort("\n== Command #{args} failed ==")
end

FileUtils.chdir APP_ROOT do
  # This script is a way to set up or update your development environment automatically.
  # This script is idempotent, so that you can run it at any time and get an expectable outcome.
  # Add necessary setup steps to this file.

  puts "== Installing dependencies =="
  system! "gem install bundler --conservative"
  system("bundle check") || system!("bundle install")

  system! "bundle binstubs --force bundler rubocop rspec-core vite_ruby rake"

  puts "\n== Installing javascript dependencies =="
  system! "yarn install"
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
staticky-0.3.1 site_template/bin/setup
staticky-0.3.0 site_template/bin/setup
staticky-0.2.0 site_template/bin/setup