summaryrefslogtreecommitdiff
path: root/new/splash/bin/build.rb
blob: 404431f29b9099f2e82de1a98a944bf121b1812e (plain)
1
2
3
4
5
6
7
8
9
10
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