diff options
Diffstat (limited to 'new/splash/bin/build.rb')
-rwxr-xr-x | new/splash/bin/build.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/new/splash/bin/build.rb b/new/splash/bin/build.rb new file mode 100755 index 0000000..404431f --- /dev/null +++ b/new/splash/bin/build.rb @@ -0,0 +1,11 @@ +#!/usr/bin/env ruby +# frozen_string_literal: true + +require_relative '../lib/splash' +require_relative '../../bin/builder' + +builder_class = Crys::Splash::Builder +output_dir = "#{File.dirname(File.dirname(__FILE__))}/output" +file_path = "#{File.dirname(File.dirname(__FILE__))}/pages/#{@options[:filepath]}" + +Crys::BuilderRunner.new(file_path: file_path, output_dir: output_dir, builder_class: builder_class).run |