summaryrefslogtreecommitdiff
path: root/new/splash/bin/build.rb
blob: 1439dd6f03ee8fcbe84bf6979118ba3b973288c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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]}"
image_dir = "#{File.dirname(File.dirname(File.expand_path(__FILE__)))}/assets/images"

file_path=@options[:filepath]

Crys::BuilderRunner.new(
  file_path: file_path,
  output_dir: output_dir,
  builder_class: builder_class,
  image_dir: image_dir
).run