1- require_relative 'lib/ madness'
1+ require ' madness'
22require "sasstool"
33require "slim"
44require "pretty_trace/enable-trim"
5- require "runfile-tasks"
65
76title "Madness Runfile"
87summary "Runfile tasks for building the Madness gem"
98version Madness::VERSION
109
11- RunfileTasks::RubyGems.all 'madness '
12- RunfileTasks::Testing.rspec
10+ import_gem 'runfile-tasks/gem '
11+ import 'debug'
1312
1413help "Generate public CSS"
1514usage 'css [--watch]'
16- option '-w , --watch ', 'Watch for changes and regenerate'
15+ option '--watch , -w ', 'Watch for changes and regenerate'
1716action :css do |args|
1817 if args['--watch']
1918 exec "filewatcher --immediate 'app/styles/*.scss' 'bundle exec run css'"
3231
3332usage "(server|s) [--sample]"
3433help "Run server with spec docroot or the sample docroot"
35- option "-s , --sample ", "Use the 'sample' folder instead of the fixture"
34+ option "--sample , -s ", "Use the 'sample' folder instead of the fixture"
3635action :server, :s do |args|
3736 folder = args['--sample'] ? 'sample' : 'spec/fixtures/docroot'
3837 exec "bundle exec bin/madness server #{folder}"
@@ -92,5 +91,3 @@ action :site do
9291 File.write 'docs/index.html', html
9392 puts 'Saved docs/index.html'
9493end
95-
96- require_relative 'debug.rb' if File.exist? 'debug.rb'
0 commit comments