Sha256: 3684f2528c79a06726abf9ee81ba0e3e54e72ccbf6bca2aa813b3187f405e777

Contents?: true

Size: 545 Bytes

Versions: 2

Compression:

Stored size: 545 Bytes

Contents

#!/usr/bin/env ruby

require 'fileutils'
require 'json'

# Example setup tasks
puts "Setting up the HtmlScssClassChecker gem..."

# Create a default configuration file if it doesn't exist
config_path = File.join(Dir.pwd, 'config.json')
unless File.exist?(config_path)
  default_config = {
    'known_classes' => [],
    'html_directories' => ['_includes', '_layouts'],
    'scss_directories' => ['_sass']
  }

  File.write(config_path, JSON.pretty_generate(default_config))
  puts "Created default config.json file."
end

puts "Setup complete."

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
html_scss_class_checker-0.2.1 bin/setup
html_scss_class_checker-0.2.0 bin/setup